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
bors-servo
f5ec68803a
Auto merge of #311 - jrmuizel:clip, r=jdm
...
Expose support for clipping to the current path
<!-- 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/311 )
<!-- Reviewable:end -->
2019-04-10 09:51:46 -04:00
Jeff Muizelaar
a5384658d5
Expose support for clipping to the current path
2019-04-10 09:38:49 -04:00
bors-servo
dd0c57e71a
Auto merge of #310 - ecpost:change-pb-send-to-set, r=jdm
...
Change NSPasteboard sendData to setData to match Apple's API.
Fixes #309
<!-- 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/310 )
<!-- Reviewable:end -->
2019-04-08 12:37:29 -04:00
ecpost
0270070c9d
Change NSPasteboard sendData to setData to match Apple's API.
2019-04-07 16:36:43 -07:00
bors-servo
efb0d28f9e
Auto merge of #308 - jrmuizel:to-mutable, r=jdm
...
Add an unsafe method to convert CFDictionary to CFMutableDictionary
<!-- 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/308 )
<!-- Reviewable:end -->
2019-03-29 15:11:54 -04:00
Jeff Muizelaar
87bd8a4d1a
Add an unsafe method to convert CFDictionary to CFMutableDictionary
2019-03-28 18:02:12 -04:00
bors-servo
b49b02d720
Auto merge of #294 - servo:jdm-patch-2, r=jrmuizel
...
Increase minor version for core-text to 13.2.0.
This includes changes from #293 and #269 which only add new public APIs.
<!-- 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/294 )
<!-- Reviewable:end -->
2019-03-28 17:32:49 -04:00
bors-servo
44c7a29fc5
Auto merge of #307 - waywardmonkeys:use-assert-eq-more, r=jdm
...
Use assert_eq! when possible instead of assert!
<!-- 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/307 )
<!-- Reviewable:end -->
2019-03-21 11:42:21 -04:00
Bruce Mitchener
0fbabb35e9
Use assert_eq! when possible instead of assert!
2019-03-21 21:55:00 +07:00
bors-servo
37b82c5564
Auto merge of #306 - waywardmonkeys:remove-transmute-io-surface, r=jdm
...
io-surface: Remove unnecessary transmutes.
<!-- 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/306 )
<!-- Reviewable:end -->
2019-03-18 12:29:40 -04:00
Bruce Mitchener
5bce19e10a
io-surface: Remove unnecessary transmutes.
2019-03-18 23:24:28 +07:00
bors-servo
cdc7553b98
Auto merge of #304 - waywardmonkeys:remove-core-foundation-transmutes, r=jdm
...
core-foundation: Remove unnecessary transmutes.
<!-- 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/304 )
<!-- Reviewable:end -->
2019-03-18 10:02:20 -04:00
bors-servo
5cbadc5dc8
Auto merge of #305 - waywardmonkeys:missing-mut-pointer-core-graphics, r=jdm
...
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.
<!-- 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/305 )
<!-- Reviewable:end -->
2019-03-18 09:58:03 -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
585437bb3a
core-foundation: Remove unnecessary transmutes.
2019-03-18 15:45:11 +07:00
bors-servo
9da45ba07f
Auto merge of #303 - waywardmonkeys:remove-transmute-core-text, r=emilio
...
core-text: Remove use of mem::transmute.
<!-- 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/303 )
<!-- Reviewable:end -->
2019-03-18 00:24:51 -04:00
Bruce Mitchener
d0a08919f4
core-text: Remove use of mem::transmute.
2019-03-18 09:27:59 +07:00
bors-servo
104fcf8175
Auto merge of #302 - kornelski:patch-1, r=jdm
...
Add keywords to Cargo.toml
<!-- 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/302 )
<!-- Reviewable:end -->
2019-03-17 09:18:11 -04:00
Kornel
68b75cd9fd
Add keywords to Cargo.toml
2019-03-16 21:58:49 +00:00
bors-servo
8564588b37
Auto merge of #301 - waywardmonkeys:clippy-transmute-to-same-type, r=jdm
...
clippy: Remove transmutes to the same type.
<!-- 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/301 )
<!-- Reviewable:end -->
2019-03-16 13:18:20 -04:00
Bruce Mitchener
8632671479
clippy: Remove transmutes to the same type.
2019-03-16 22:07:27 +07:00
bors-servo
058fdd8f43
Auto merge of #300 - waywardmonkeys:clippy-use-is-null, r=jdm
...
clippy: Use is_null instead of != ptr::null().
<!-- 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/300 )
<!-- Reviewable:end -->
2019-03-14 10:24:46 -04:00
bors-servo
920db7be0d
Auto merge of #297 - waywardmonkeys:macro-docs, r=jdm
...
Begin documenting core-foundation macros.
I started doing this after talking through some issues with @raphlinus. Clearly more to do, but would like to get this in sooner rather than later.
<!-- 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/297 )
<!-- Reviewable:end -->
2019-03-14 10:12:14 -04:00
Bruce Mitchener
3e8acddee2
clippy: Use is_null instead of != ptr::null().
2019-03-14 21:12:12 +07:00
bors-servo
348f7de691
Auto merge of #296 - waywardmonkeys:clippy-core-foundation-missing-default, r=jdm
...
clippy: Add missing Default impls.
<!-- 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/296 )
<!-- Reviewable:end -->
2019-03-14 10:03:40 -04:00
bors-servo
f8c1aaa3d3
Auto merge of #295 - waywardmonkeys:clippy-core-foundation-expect-with-function-call, r=jdm
...
clippy: Don't call expect with the result of a function call.
<!-- 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/295 )
<!-- Reviewable:end -->
2019-03-14 09:55:14 -04:00
bors-servo
c209e6cdd3
Auto merge of #299 - waywardmonkeys:refer-to-macos, r=jdm
...
Refer to macOS rather than OS X.
<!-- 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/299 )
<!-- Reviewable:end -->
2019-03-14 09:50:45 -04:00
bors-servo
95a9f7a05b
Auto merge of #298 - waywardmonkeys:fix-typo, r=jrmuizel
...
Fix typo.
<!-- 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/298 )
<!-- Reviewable:end -->
2019-03-14 09:01:36 -04:00
Bruce Mitchener
d2d3b3362a
Refer to macOS rather than OS X.
2019-03-14 17:47:00 +07:00
Bruce Mitchener
e284579031
Fix typo.
2019-03-14 17:42:22 +07:00
Bruce Mitchener
ea446521fb
Begin documenting core-foundation macros.
2019-03-14 15:19:39 +07:00
Bruce Mitchener
291a606fec
clippy: Don't call expect with the result of a function call.
2019-03-14 09:40:33 +07:00
Bruce Mitchener
20d3a3f102
clippy: Add missing Default impls.
2019-03-14 09:36:00 +07:00
Josh Matthews
1a76949f13
Increase minor version for core-text to 13.2.0.
2019-03-11 16:41:52 -04:00
bors-servo
488aa87f21
Auto merge of #275 - acheronfail:chore/add-nsurl, r=jdm
...
add NSURL
This PR adds in the trait for `NSURL` (requested in #183 ).
<!-- 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/275 )
<!-- Reviewable:end -->
2019-03-11 09:01:30 -04:00
acheronfail
b08aa69460
chore: use bitflags to create NSURL constants
2019-03-11 07:54:32 +11:00
bors-servo
dbdbb491c9
Auto merge of #293 - srijs:feat/get-glyph-with-name, r=jdm
...
implement CTFont::get_glyph_with_name
Expose a safe wrapper around `CTFontGetGlyphWithName`.
<!-- 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/293 )
<!-- Reviewable:end -->
2019-02-10 15:48:25 -05:00
Sam Rijs
20348e0b8f
implement CTFont::get_glyph_with_name
2019-02-09 12:30:48 +11: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
bors-servo
2070f4ba75
Auto merge of #290 - jrmuizel:eo, r=jdm
...
Expose support for even-odd fills.
<!-- 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/290 )
<!-- Reviewable:end -->
2019-01-07 09:41:57 -05:00
Jeff Muizelaar
8b1f1ae9bf
Expose support for even-odd fills.
2019-01-07 09:34:28 -05:00
bors-servo
b05b6157bc
Auto merge of #289 - jrmuizel:derive, r=jrmuizel
...
derive(Clone, Copy, Debug) on Line enums
<!-- 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/289 )
<!-- Reviewable:end -->
2019-01-07 09:27:58 -05:00
Jeff Muizelaar
b174773ba6
derive(Clone, Copy, Debug) on Line enums
2019-01-04 18:33:48 -05:00
bors-servo
674bf3bf33
Auto merge of #288 - jrmuizel:path, r=jdm
...
Add some minimal bindings for constructing a path
<!-- 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/288 )
<!-- Reviewable:end -->
2019-01-04 17:23:24 -05:00
Jeff Muizelaar
a45f389297
Add some minimal bindings for constructing a path
2019-01-04 17:04:58 -05:00
bors-servo
4fc0194cd0
Auto merge of #287 - jrmuizel:stroke-color, r=jdm
...
Add binding for CGContextSetRGBStrokeColor
<!-- 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/287 )
<!-- Reviewable:end -->
2019-01-04 16:53:39 -05:00