Ivan Zub
44b4624e24
Bump core graphics version to 0.18.0
2019-10-26 20:10:54 +02:00
Ivan Zub
0f5dfff5f5
Add wrapper for CGConfigureDisplayMirrorOfDisplay
2019-10-24 23:35:29 +02:00
Ivan Zub
b0145f2c44
Add the null display
...
Value used to reset mirroring settings to default
2019-10-24 23:34:32 +02:00
Ivan Zub
c9410c5fc0
Correct documentation comment
2019-10-24 23:28:44 +02:00
Ivan Zub
580e171e6f
Add wrapper for CGConfigureDisplayOrigin
2019-10-23 10:50:27 +02:00
Aleksi Juvani
552021c096
Fix i686-apple-darwin compile target
2019-08-22 21:56:34 +03:00
atouchet
7430046924
Update Travis CI URLs
2019-07-14 21:16:49 -07:00
Birunthan Mohanathas
1ad4d50d16
Fix use of deprecated libc::(u)int{16,32}_t
...
This fixes warnings like:
>use of deprecated item 'libc::int32_t': Use i32 instead.
2019-07-14 11:57:05 +03:00
yvt
2d5bdcc9b5
Add CGContext::{clip_to_rect, clip_to_rects}
2019-04-29 10:27:49 +09:00
yvt
e012b2051f
Add all missing functions from section "Transforming User Space" to CGContext
...
API documentation: <https://developer.apple.com/documentation/coregraphics/cgcontext >
2019-04-29 09:38:39 +09:00
yvt
e24edb8d2d
Add all missing functions from section "Painting Paths" to CGContext
...
API documentation: <https://developer.apple.com/documentation/coregraphics/cgcontext >
2019-04-29 09:35:38 +09:00
yvt
8debb7c824
Add CGContext::add_quad_curve_to_point
2019-04-29 09:23:46 +09:00
Jeff Muizelaar
a5384658d5
Expose support for clipping to the current path
2019-04-10 09:38:49 -04:00
Bruce Mitchener
9b217c51b0
core-graphics: CGBeginDisplayConfiguration takes *mut.
...
This was incorrectly saying it wanted a *const pointer, but the
value is modified and in the C headers, it is not const.
2019-03-18 16:23:38 +07:00
Bruce Mitchener
3e8acddee2
clippy: Use is_null instead of != ptr::null().
2019-03-14 21:12:12 +07:00
Bruce Mitchener
d2d3b3362a
Refer to macOS rather than OS X.
2019-03-14 17:47:00 +07:00
bors-servo
36d7c972fe
Auto merge of #257 - mtak-:geometry_partialeq, r=jdm
...
Add PartialEq impls for CGSize CGPoint and CGAffineTransform
fixes #256
I was not able to directly use `CGSizeEqualToSize` or `CGPointEqualToPoint` because those are macros.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/257 )
<!-- Reviewable:end -->
2019-01-25 17:23:02 -05:00
Jeff Muizelaar
8b1f1ae9bf
Expose support for even-odd fills.
2019-01-07 09:34:28 -05:00
Jeff Muizelaar
b174773ba6
derive(Clone, Copy, Debug) on Line enums
2019-01-04 18:33:48 -05:00
Jeff Muizelaar
a45f389297
Add some minimal bindings for constructing a path
2019-01-04 17:04:58 -05:00
Jeff Muizelaar
e6e7729b0a
Add binding for CGContextSetRGBStrokeColor
2019-01-04 16:46:54 -05:00
Jeff Muizelaar
a65bf52e87
Fix the spelling of miter
2019-01-04 14:07:06 -05:00
Jeff Muizelaar
128f022a47
Add a binding for CGContextGetClipBoundingBox
2019-01-04 09:57:32 -05:00
Jeff Muizelaar
be6dd330b8
Expose stroking apis on CGContext
2019-01-03 22:17:07 -05:00
Jeff Muizelaar
b55674f65b
Add bindings for CGContextClearRect
2019-01-03 22:08:24 -05:00
Jan Andre Ikenmeyer
77bb7b6cfe
Remove unneeded webhook notification
2018-11-07 00:06:36 +01:00
Patrick Walton
fd4736bb9f
Update version number to 0.17.3
2018-11-01 20:26:29 -07:00
Patrick Walton
ee0ada3d28
Add bindings to Quartz Window Services.
...
This series of functions allows us to take screenshots, which are useful for
integration testing.
2018-11-01 19:53:02 -07:00
Jeff Muizelaar
0b377a959b
Bump the versions of a bunch crates.
2018-09-28 13:19:37 -04:00
Patrick Walton
e0951ae07b
Add initial bindings to Core Animation.
...
Bound types include `CALayer`, `CATransaction`, and `CATransform3D`.
2018-09-27 11:50:14 -07:00
tyler
4450530f46
Add PartialEq impls for CGSize CGPoint and CGAffineTransform
2018-09-21 10:52:59 -07:00
Patrick Walton
77f53a210e
core-graphics 0.17.1
2018-09-19 11:18:45 -07:00
Patrick Walton
7fae6fae0c
Add a binding to CGContextSetBlendMode
2018-09-18 15:14:47 -07:00
bors-servo
27d8f9e190
Auto merge of #253 - bn3t:cgdisplaymode-extensions, r=jdm
...
Cgdisplaymode extensions
I am writing a tool to change resolution on MacOS. For this I needed, more support for CGDisplayMode methods. I also need support for CGConfigureDisplayWithDisplayMode().
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/253 )
<!-- Reviewable:end -->
2018-09-18 08:48:14 -04:00
Bernard Niset
f58e2b6dd9
Changes according to PR remarks.
2018-09-11 23:49:55 +02:00
Bernard Niset
2df2f7297f
Extended CDDisplayMode Doc
2018-09-08 15:07:28 +02:00
Bernard Niset
7cb87e5ba2
Added support for configuring the display mode for a display.
2018-08-26 19:58:35 +02:00
Ryan Leckey
8052ba29e1
Add save, restore, translate, scale, set_fill_color, add_path, close_path, and fill_path to CGContext
2018-08-20 16:36:02 -07:00
Ryan Leckey
071d2c6025
Move methods on CGContext taking &self from to CGContextRef
2018-08-20 16:35:54 -07:00
Bernard Niset
2685bbd05b
Added options to all_display_modes
2018-08-20 21:03:56 +02:00
Bernard Niset
6fc7286b87
Extended CDDisplayMode
...
* Added all_display_modes
* Added io_flags
* Added bit_depth
2018-08-20 00:16:12 +02:00
Daniel Abramov
e6cd2a0aae
Add support for image cropping
2018-08-15 13:20:16 +02:00
Ryan Leckey
9cb1e08f3f
Add CGColor
2018-08-01 09:33:56 -07:00
Patrick Walton
12236ceee7
Add the ability to supply custom data to CGDataProvider.
...
This is useful for opening memory-mapped files.
2018-07-31 15:50:30 -07:00
Patrick Walton
243472042a
Add several new functions to Core Graphics and Core Text for font-kit's use.
...
This bumps the major version of `core-text` since the previous version of
`get_glyphs_for_characters` was unsoundly marked safe before and is now marked
unsafe.
2018-07-25 08:50:35 -07:00
Josh Matthews
a5935351b5
Hide a 10.13+ API behind a cargo feature.
2018-07-20 11:15:53 -04:00
Daniel Abramov
ff9ff84066
Add the posibility to create a provider from slice
2018-05-28 13:46:08 +02:00
Daniel Abramov
1eec1419a9
Add rendering intent constants
2018-05-28 13:46:08 +02:00
Daniel Abramov
c9740e7ddc
Add a constructor for CGImage
2018-05-28 13:46:08 +02:00
Jeff Muizelaar
645779912b
Consistently use std::os::raw::c_void instead of libc::c_void
...
The major versions of cocoa and core-graphics are bumped as I believe
they are the only crates that meaningfully expose c_void.
Fixes #212
2018-05-06 19:00:37 -04:00