2186 Commits

Author SHA1 Message Date
bors-servo ae2b59949a Auto merge of #565 - michaelwright235:data, r=jdm
CFData (sys): Add missing functions & sorting

Adds missing functions of CFData and sorts them in Apple docs order. Also missing CFDataSearchFlags type and related consts are added.
2023-05-29 18:16:00 +02:00
michaelwright235 f26a11873a sys: data: Introduce CFMutableData & its functions 2023-05-29 19:02:51 +03:00
michaelwright235 a3f944fbd8 sys: error: Add commented const
Adds commented out kCFErrorLocalizedFailureKey
const to not forget to implement it in the future.
2023-05-29 15:18:50 +03:00
michaelwright235 5f1ee87146 sys: error: Add missing functions & consts, sorting
Adds missing functions and consts of CFError
and sorts them in Apple docs order.
2023-05-29 15:08:52 +03:00
michaelwright235 0c8bef46d5 sys: data: Add missing functions & sorting
Adds missing functions of CFData and sorts them in Apple docs order.
Also missing CFDataSearchFlags type and related consts are added.
2023-05-29 13:46:59 +03:00
michaelwright235 33d5fb7791 sys: characterset: Add missing functions & sorting
Adds missing functions and sorts them in Apple docs order.
CFMutableCharacterSetRef is a mutable pointer now as it should be,
according to CFCharacterSet.h.
2023-05-29 13:35:55 +03:00
michaelwright235 8be8ef8b0c sys: bundle: Add funcs & consts, sorting
Adds missing functions, types and constants from CFBundle.h.
Several inline functions are also rewritten as unsafe Rust functions.
All of them are sorted in Apple docs order.
2023-05-29 13:16:10 +03:00
bors-servo c441d916e1 Auto merge of #560 - fcfangcc:release-0.23.4, r=jdm
Release for core-graphics

Release core-graphics  version to 0.22.4

Include #554 , I urgently need to use it. Thanks 😃
2023-05-29 04:29:36 +02:00
fcfangcc 4c11545a87 release core-graphics 0.22.4 2023-05-29 09:39:15 +08:00
bors-servo 46e8deafc2 Auto merge of #559 - michaelwright235:dict, r=jdm
CFDictionary (sys): add new funcs, sorting

Adds missing functions and one const. All of them are sorted in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfdictionary?language=objc).
2023-05-28 20:54:54 +02:00
bors-servo c849505985 Auto merge of #557 - michaelwright235:attr_str, r=jdm
sys: attributed_string: Adds missing funcs & sorting

Adds missing functions of `CFAttributedString`, sorts them in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfattributedstring?language=objc).
CFMutableAttributedStringRef is converted to a mutable pointer (as it should be) according to CFAttributedString.h.
2023-05-28 20:52:15 +02:00
bors-servo 37c8dbcc66 Auto merge of #558 - michaelwright235:base, r=jdm
sys: base: Add new types & funcs

Adds necessary types for upcoming changes. All of them are defined in MacTypes.h and CFBase.h. Several functions were added. Implements new derive attributes.
2023-05-28 20:49:35 +02:00
michaelwright235 47365abca6 sys: dictionary: Add new funcs, sorting
Adds missing functions and one const. All of them are sorted in Apple
docs order.
2023-05-27 16:09:36 +03:00
michaelwright235 1cb863ea97 sys: base: Add new types & funcs
Adds necessary types for upcoming changes. All of them are defined
in MacTypes.h. Several functions were added. Implements new
derive attributes.
2023-05-26 18:50:54 +03:00
michaelwright235 b3397ecc75 sys: attributed_string: Adds missing funcs & sorting
Adds missing functions of CFAttributedString, sorts them in Apple docs
order (https://developer.apple.com/documentation/corefoundation/cfattributedstring?language=objc).
CFMutableAttributedStringRef is converted to a mutable
pointer (as it should be).
2023-05-26 18:26:50 +03:00
bors-servo 08f46cb426 Auto merge of #556 - michaelwright235:array, r=jdm
CFArray (sys): Add missing functions & sorting

Adds missings functions for CFArray and sorts them in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfarray?language=objc and https://developer.apple.com/documentation/corefoundation/cfmutablearray?language=objc).
2023-05-26 15:24:42 +02:00
michaelwright235 04511e27e4 sys: array: Add missing funcs & sorting
Adds missings functions for CFArray and
sorts them in Apple docs order
(https://developer.apple.com/documentation/corefoundation/cfarray?language=objc
and https://developer.apple.com/documentation/corefoundation/cfmutablearray?language=objc)
2023-05-26 14:25:34 +03:00
bors-servo 696166cfac Auto merge of #555 - michaelwright235:locale, r=jdm
sys: Add CFLocale

Adds `locale` module (corresponds to CFLocale) to core-foundation-sys. Also there are some additional types added to base.rs that are essential for this module. All functions and consts are categorized according to Apple documentation (https://developer.apple.com/documentation/corefoundation/cflocale?language=objc).
There are several commented out consts because they're available only for later macOS versions (10.10+).
2023-05-26 01:06:55 +02:00
michaelwright235 2f5753321a sys: Introduce CFLocale
Adds `locale` module (corresponds to CFLocale)
to core-foundation-sys.
2023-05-25 00:18:29 +03:00
michaelwright235 15066d628c sys: base: Add new types
Adds new types (SInt16, LangCode, RegionCode). All of them are
defined in MacTypes.h
2023-05-24 23:31:41 +03:00
bors-servo d254cec065 Auto merge of #554 - fcfangcc:feat-screenCaptureAccess, r=jdm
Add binding for ScreenCaptureAccess

Add binding for [CGRequestScreenCaptureAccess](https://developer.apple.com/documentation/coregraphics/3656524-cgrequestscreencaptureaccess) and [CGPreflightScreenCaptureAccess](https://developer.apple.com/documentation/coregraphics/3656523-cgpreflightscreencaptureaccess)

 to check if the app has screen recording permission on macOS
2023-05-24 15:53:08 +02:00
bors-servo b9e7405396 Auto merge of #552 - michaelwright235:user_notification, r=jdm
sys: Add CFUserNotification

Adds `CFUserNotification` module into `core-foundation-sys` crate with all its constants and functions (https://developer.apple.com/documentation/corefoundation/cfusernotification?language=objc).
It also contains 3 plain inlined functions rewritten from CFUserNotification.h.
This API is available only on macOS, so an additional cfg flag was added in lib.rs.
2023-05-24 15:47:39 +02:00
bors-servo 8b982fdd57 Auto merge of #548 - burtonageo:update_foreign_types, r=jdm
Update `foreign-types` crate to v0.5

Splits out the `foreign-types` part of https://github.com/servo/core-foundation-rs/pull/545
2023-05-24 15:42:31 +02:00
fcfangcc d8b6ff1723 Add ScreenCaptureAccess struct 2023-05-24 21:23:55 +08:00
fcfangcc 2784e317bd Add binding for ScreenCaptureAccess 2023-05-24 15:50:12 +08:00
bors-servo 3e4316695a Auto merge of #553 - michaelwright235:update_github_actions, r=jdm
Bump macOS GitHub actions to macOS 11

macOS 10.15 runner image is removed since 8/30/22
(https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/).
Using it makes GitHub Actions stuck forever.
2023-05-24 08:38:14 +02:00
michaelwright235 7931c7651f Bump macOS GitHub actions to macOS 11
macOS 10.15 runner image is removed since 8/30/22
(https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/).
Using it makes GitHub Actions stuck forever.
2023-05-23 22:52:31 +03:00
michaelwright235 7d324704cd sys: Introduce CFUserNotification
This API is available only on Mac OS, so an additional cfg flag
was added in lib.rs.
2023-05-23 20:44:41 +03:00
mtfcd 75f424f81a Add function from apple document, and add a method image_for_rect for convinient to use. 2023-04-27 00:04:55 -04:00
George Burton 6215a8bb2b cocoa-foundation crate does not depend on foreign-types 2023-04-25 22:33:18 +01:00
George Burton 6ddf5cadcc Update foreign-types crate to v0.5 2023-04-25 22:15:52 +01:00
bors-servo 30ffd6a158 Auto merge of #543 - atouchet:lic, r=jdm
Use SPDX license format

None
2023-04-04 04:10:28 +02:00
Alex Touchet 1632edee66 Use SPDX license format 2023-04-02 22:43:22 -07:00
bors-servo f7d16c9685 Auto merge of #542 - jrmuizel:cf-sys-bump, r=jdm
Bump minor version of core-foundation-sys to 0.8.4

None
2023-04-02 22:23:22 +02:00
Jeff Muizelaar 0b46a8dae4 Bump minor version of core-foundation-sys to 0.8.4 2023-04-02 13:43:46 -04:00
bors-servo d22e809486 Auto merge of #541 - joshleeb:joshleeb-graphics-tap_post_event, r=jdm
Add binding for CGEventTapPostEvent

This change adds the binding for CGEventTapPostEvent and adds a wrapper function CGEvent::post_from_tap to call the core-graphics function.
2023-03-21 13:29:58 +01:00
Josh Leeb-du Toit 49aa01d437 Add binding for CGEventTapPostEvent
This change adds the binding for CGEventTapPostEvent and adds a wrapper
function CGEvent::post_from_tap to call the core-graphics function.
2023-03-21 15:38:43 +11:00
bors-servo 0876315e2e Auto merge of #539 - polachok:appearance, r=jdm
cocoa: add NSAppearance

Fixes https://github.com/servo/core-foundation-rs/issues/515
2023-02-26 16:07:16 +01:00
Alexander Polakov e3a77bfee4 cocoa: add NSAppearance 2023-02-26 14:55:50 +04:00
bors-servo 65eccd9e79 Auto merge of #538 - Gkirito:feature/add-NSVisualEffectMaterial, r=jdm
Add NSVisualEffectView

Add NSVisualEffectView
Related issues #463
2023-02-20 13:55:18 +01:00
Gkirito 8bbdd5fd4c 🧪 test(cocoa/examples/nsvisualeffectview_blur): add an example for NSVisualEffectView 2023-02-20 00:33:13 +08:00
Gkirito 79b2417bc2 🌟 feat(cocoa/src/appkit): add NSVisualEffectView 2023-02-20 00:31:37 +08:00
bors-servo 8c2444066a Auto merge of #533 - AlexanderEkdahl:patch-1, r=jdm
Add all color space names

Adds all of the non-deprecated color space names found at: https://developer.apple.com/documentation/coregraphics/cgcolorspace/color_space_names

This is required for EDR (Extended Dynamic Range) rendering.
2022-12-25 10:27:58 -05:00
Alexander Ekdahl 6a0cbbfb3d Add all color space names
Adds all of the non-deprecated color space names found at: https://developer.apple.com/documentation/coregraphics/cgcolorspace/color_space_names
2022-12-24 00:41:31 +01:00
Liu Hancheng 7868956431 add CGRectContainsPoint and wrapped method 2022-11-01 09:01:36 -04:00
Mads Marquart 498ba0a76f Revert cocoa version bump
39e1e0e is not a breaking change since the NSOpenPanel API has not been published in any stable version.

147a432 is a clear bugfix and didn't work at all before, so while it is breaking public API, no-one could have used it without their program being broken.
2022-11-01 09:00:31 -04:00
Hein Rutjes 342af5e6a9 Add CGContextResetClip 2022-10-07 07:43:07 -04:00
Hein Rutjes 3213c3e3f3 Add CGContextSetAlpha 2022-10-06 13:50:31 -04:00
JL 0c69dc41e3 feat: version bump for cocoa-rs
Version dump cocoa-rs to 0.25.0
2022-10-06 13:41:17 -04:00
bors-servo de8752262a Auto merge of #523 - madsmtm:cg-winit-ffi, r=jdm
Add CoreGraphics FFI used by `winit`

None
2022-09-05 07:45:39 -04:00