Commit Graph

1918 Commits

Author SHA1 Message Date
Mads Marquart f855f23902 Remove build script from core-foundation-sys
Should result in faster build times
2022-03-22 01:14:16 +01:00
bors-servo 18b5e607c0 Auto merge of #498 - n-eq:patch-1, r=jrmuizel
Update Cargo.toml: cocoa-foundation - publish a new version (0.1.1)

Following this change https://github.com/servo/core-foundation-rs/commit/6e78ddfb8a18b2e0f88c330e1a08c7c1f8c6a71e
2022-02-08 11:51:05 -05:00
Nabil Elqatib 8d3c2cd870 Update Cargo.toml
Following this change https://github.com/servo/core-foundation-rs/commit/6e78ddfb8a18b2e0f88c330e1a08c7c1f8c6a71e
2022-02-07 21:47:39 +01:00
bors-servo 6642b11b4c Auto merge of #481 - n-eq:master, r=jrmuizel
Bump core-foundation crate version

Following https://github.com/servo/core-foundation-rs/pull/477
2022-02-07 09:42:34 -05:00
bors-servo f8f8a5867a Auto merge of #493 - joshchngs:nswindow-document-edited, r=jdm
Add binding for NSWindow::isDocumentEdited()

Getter for the existing setDocumentEdited() binding.
I've tested both via an in-progress change to tauri-apps/tao
2022-01-17 14:55:22 -05:00
Josh Channings 29a7e2d265 Add binding for NSWindow::isDocumentEdited()
Getter for the existing setDocumentEdited() binding.
I've tested both via an in-progress change to tauri-apps/tao
2022-01-17 19:20:24 +00:00
bors-servo f58166d728 Auto merge of #491 - ldm0:more_array, r=jdm
Add more functions to CFArray

None
2021-12-26 13:44:48 -05:00
Liu Dingming 09763eb8bd Add more functions to CFArray 2021-12-27 01:57:52 +08:00
bors-servo 669cb0c0f6 Auto merge of #489 - youngsing:master, r=jdm
Update NSAppKitVersionNumber

Version Number get from macOS 12.1 and Xcode 13.2

![Screen Shot 2021-12-23 at 15 51 50](https://user-images.githubusercontent.com/2562374/147207082-775b259c-6cba-4518-a7b3-627e212469ba.png)
2021-12-23 10:20:11 -05:00
youngsing 9b7c820c33 Update NSAppKitVersionNumber 2021-12-23 15:50:19 +08:00
bors-servo 6be86aa99f Auto merge of #488 - jrmuizel:ui-font, r=mstange
Expose bindings to CTFontCreateUIFontForLanguage

None
2021-12-13 15:23:31 -05:00
Jeff Muizelaar aee417874f Expose bindings to CTFontCreateUIFontForLanguage 2021-12-13 12:42:52 -05:00
bors-servo 3c92593b70 Auto merge of #487 - jrmuizel:mac12, r=mstange
Add some more tests around system fonts and variations

None
2021-12-08 20:39:03 -05:00
Jeff Muizelaar 5dff9e13fd Add some more tests around system fonts and variations 2021-12-08 20:23:44 -05:00
bors-servo cc53ab53c0 Auto merge of #486 - jrmuizel:oor-var-mac12, r=mstange
core-text: out_of_range_variations: Add support for macOS 12

None
2021-12-08 19:04:00 -05:00
Jeff Muizelaar 77ffcfe731 core-text: out_of_range_variations: Add support for macOS 12 2021-12-08 19:02:22 -05:00
bors-servo 57d00a34cf Auto merge of #485 - jrmuizel:variation-capping, r=mstange
core-text: Add a test for out of range variations.

None
2021-12-08 16:58:48 -05:00
Jeff Muizelaar 3d6c103a14 core-text: Add a test for out of range variations. 2021-12-08 14:53:53 -05:00
Nabil Elqatib 9856555517 Bump core-foundation crate version 2021-11-23 10:13:56 +01:00
Nabil Elqatib cbf991ec33 Merge remote-tracking branch 'upstream/master' 2021-11-23 10:13:26 +01:00
bors-servo c6d7268854 Auto merge of #480 - jrmuizel:system-font, r=mstange
Test that we can create a new CTFont from the descriptor attributes.

None
2021-11-22 19:36:52 -05:00
bors-servo 92bae14037 Auto merge of #477 - n-eq:processinfo-uptime, r=jrmuizel
Add ProcessInfo.systemUptime implementation

Hello,

Added [NSProcessInfo.systemUptime](https://developer.apple.com/documentation/foundation/processinfo/1414553-systemuptime) implementation, successfully tested on iOS.
Feel free to merge.

Best,
2021-11-22 19:25:35 -05:00
Jeff Muizelaar 1ad12536ec Test that we can create a new CTFont from the descriptor attributes. 2021-11-22 19:22:41 -05:00
bors-servo 8c72b7d50a Auto merge of #474 - jrmuizel:cfs-version, r=jdm
Bump the required version of core-foundation-sys

None
2021-11-21 15:17:39 -05:00
Nabil Elqatib 6e78ddfb8a Update cocoa-foundation/src/foundation.rs 2021-11-18 14:52:36 +01:00
Nabil Elqatib e07fe2713e Update cocoa-foundation/src/foundation.rs 2021-11-18 14:06:09 +01:00
Nabil Elqatib bcea771dae Update cocoa-foundation/src/foundation.rs
Fix method name
2021-11-18 14:04:47 +01:00
Nabil Elqatib 46a3b04936 Update cocoa-foundation/src/foundation.rs
Delete default implementation
2021-11-18 14:02:10 +01:00
Nabil Elqatib 54d1b935fe Merge pull request #1 from n-eq/processinfo-uptime 2021-11-16 11:29:51 +01:00
Nabil Elqatib e8fb7ada2d Add ProcessInfo.systemUptime implemention 2021-11-16 11:25:43 +01:00
bors-servo 2ae6b790de Auto merge of #455 - xiaopengli89:fix-window-number-at-point, r=jrmuizel
fix: windowNumberAtPoint_belowWindowWithWindowNumber_

[windowNumber(at:belowWindowWithWindowNumber:)](https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumber) is a type method.
2021-11-02 16:22:45 -04:00
Jeff Muizelaar 3d5df0a167 Bump the required version of core-foundation-sys 2021-11-02 16:21:20 -04:00
bors-servo c5590b2f2c Auto merge of #470 - Qyriad:publish-graphics-0.22.2, r=jrmuizel
Publish core-graphics

Like #465, but for core-graphics. #436 in particular was merged five months ago, which was awesome, but there hasn't been a release to crates.io yet since then. Hopefully this PR should suffice for doing so?
2021-11-02 12:32:25 -04:00
bors-servo 3f308c2997 Auto merge of #473 - jrmuizel:less-travis, r=mstange
Don't run travis on master or 10.15

10.15 is now covered by Github actions and master is unneeded
because of auto
2021-11-02 12:25:06 -04:00
Jeff Muizelaar b443f5be30 Don't run travis on master or 10.15
10.15 is now covered by Github actions and master is unneeded
because of auto
2021-11-02 12:19:01 -04:00
bors-servo d361e1a467 Auto merge of #472 - jrmuizel:gah, r=jdm
Prepare github actions CI for use by homu.

None
2021-11-01 09:17:04 -04:00
Jeff Muizelaar c599e4922c Prepare github actions CI for use by homu. 2021-10-31 15:10:45 -04:00
bors-servo b54d42247e Auto merge of #471 - jrmuizel:fd-close, r=mstange
Remove filedescriptor test_consumed

This test was failing intermittently on github actions.

There's no safe way to check that a file descriptor has been closed,
because a new file could have been reopened with the same number. We'd
then end up closing that new file instead of having close() fail.
2021-10-28 10:43:19 -04:00
Jeff Muizelaar 91ff2cb513 Remove filedescriptor test_consumed
This test was failing intermittently on github actions.

There's no safe way to check that a file descriptor has been closed,
because a new file could have been reopened with the same number. We'd
then end up closing that new file instead of having close() fail.
2021-10-28 10:22:43 -04:00
Mikaela Szekely 65b1efcd5d Publish core-graphics 2021-10-27 20:31:00 -06:00
bors-servo e231cb7bdb Auto merge of #459 - xanathar:wip/mmp/iosurface_ext, r=jrmuizel
Added missing macOS 10.6+ IOSurface functions

This adds a few `sys` entry points for IOSurface functions.

I also made those public, so that code outside the IOSurface module can call and use them. I didn't add "rusty" wrappers as most of these functions are likely to be used in unsafe contexts anyway.

I limited this to all functions supported in macOS 10.6.
2021-10-27 12:57:02 -04:00
bors-servo 4960762637 Auto merge of #460 - xanathar:wip/mmp/runloop_ext, r=jrmuizel
Adds run_in_mode wrapper over CFRunLoopRunInMode

Adds a `run_in_mode` wrapper function which just makes `CFRunLoopRunInMode` a little more "rusty".

Also adds a `CFRunLoopRunResult` enum to type the return value.
2021-10-27 12:51:22 -04:00
Josh Matthews 3841d2bb3a Merge pull request #465 from n-eq/publish_core-foundation
Publish core-foundation-sys, core-foundation
2021-10-12 19:52:10 -04:00
Nabil Elqatib f57966fd36 Publish core-foundation-sys, core-foundation 2021-10-12 13:43:34 +02:00
Marco Mastropaolo d83794c3ab Adds run_in_mode wrapper over CFRunLoopRunInMode 2021-08-16 10:28:04 +02:00
Marco Mastropaolo c127f49ffa Added missing macOS 10.6+ IOSurface functions 2021-08-11 14:03:56 +02:00
bors-servo f7e0b97e0b Auto merge of #436 - AsafFisher:master, r=jrmuizel
Add CGEventTap

https://github.com/servo/core-graphics-rs/issues/111
2021-05-26 13:18:34 -04:00
bors-servo ea68a1891a Auto merge of #458 - nacho:bundle-properties, r=jdm
foundation: add bundleIdentifier and resourcePath properties

Adds the bundleIdentifier and resourcePath properties to the NSBundle
bindings
2021-05-22 11:02:01 -04:00
Ignacio Casal Quinteiro 942e85ce41 foundation: add bundleIdentifier and resourcePath properties
Adds the bundleIdentifier and resourcePath properties to the NSBundle
bindings
2021-05-10 16:37:31 +02:00
bors-servo 025dcb3c0d Auto merge of #457 - zed-industries:ns-save-panel, r=jrmuizel
Add NSSavePanel binding

This PR adds bindings to some basic `NSSavePanel` APIs. In Cocoa, `NSSavePanel` is a superclass of `NSOpenPanel`, which I added bindings for in #454.

Example:

```rust
let panel = NSSavePanel::savePanel(nil);
panel.setDirectoryURL(the_url);
let response = panel.runModal();
if response == NSModalResponse::NSModalResponseOk {
    let url_ptr = panel.URL().absoluteString().UTF8String();
    let url = CStr::from_ptr(url_ptr).to_string_lossy();
    eprintln!("You picked URL {}", url);
}

```
2021-05-05 09:52:43 -04:00