Commit Graph

108 Commits

Author SHA1 Message Date
Bruce Mitchener 8d2b732db5 Remove usages of extern crate. (#672) 2024-05-27 06:40:54 +00:00
Lukas Santner a496791d62 update NSAppKitVersionNumbers (#673) 2024-05-23 13:40:44 +00:00
George Burton abbcc1eea5 Update bitflags to 2.2.1 (#549) 2024-04-09 08:47:41 +00:00
Alex Touchet f9440bcddb Update/remove obsolete badges and update link (#663) 2024-04-08 10:27:33 +00:00
Dirkjan Ochtman 9721646053 foundation: remove optional chrono dependency (#666)
* foundation: remove optional chrono dependency

* Bump version numbers for semver-incompatible changes
2024-04-08 10:20:45 +00:00
Ryo "Genbuchan" Shigematsu 64dd01a6a9 NSScreen (cocoa): Add maximumRefreshInterval and minimumRefreshInterval (#646) 2023-11-24 06:55:29 +00:00
Bruce Mitchener 58972aef0a Update to 2018 edition. (#642)
This is the minimum fix required. It updates to use crate-relative
imports.
2023-10-24 00:30:22 +00:00
Bruce Mitchener 3ff7cc2795 docs: Fix various markdown issues. (#639) 2023-10-10 15:22:46 +00:00
Leo Kettmeir c4f4ad20b6 feat: add link feature (#608)
adjust docs

Update cocoa/Cargo.toml

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

fmt
2023-10-10 14:46:20 +00:00
Bruce Mitchener e589abe82e Make license files consistent. (#625)
Each crate now has a symlink to the root level license files.
Previously, some did, some had copies, and some had nothing.

Fixes #503.
2023-08-13 12:20:16 +00:00
Bruce Mitchener 18df9aafe7 Some clippy fixes. (#624) 2023-08-03 14:20:26 +00:00
micolous b009c87f2d Auto-format code with "cargo fmt" and check in CI (#615)
* add rustfmt check to CI

* Run "cargo fmt" (rustfmt) over core-foundation-rs
2023-07-25 02:22:25 +00:00
Nicolas Silva 589c97086e Bump core-text, core-graphics and cocoa 2023-06-19 17:07:44 +02:00
michaelwright235 2c9551d94a cocoa: examples: Remove unused imports 2023-06-07 02:01:50 +03:00
George Burton 6ddf5cadcc Update foreign-types crate to v0.5 2023-04-25 22:15:52 +01:00
Alex Touchet 1632edee66 Use SPDX license format 2023-04-02 22:43:22 -07:00
Alexander Polakov e3a77bfee4 cocoa: add NSAppearance 2023-02-26 14:55:50 +04: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
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
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 bb8852eff8 Auto merge of #516 - keiya01:fix/use-animate-set-frame, r=jdm
fix: add animate property to NSWindow:setFrame:

I added animate property to `NSWindow:setFrame:`.
If this behavior is intended, I'm sorry but please close this PR.
2022-08-16 21:43:32 -04:00
bors-servo 7185556f5c Auto merge of #519 - mantou132:docktile, r=jdm
Add `NSDockTile`

init https://developer.apple.com/documentation/appkit/nsdocktile

example:
```rs
let dock_tile: cocoa::base::id = msg_send![NSApp(), dockTile];
NSDockTile::set_shows_applicatin_badge(dock_tile, cocoa::base::YES);
NSDockTile::setBadgeLabel_(dock_tile, NSString::alloc(nil).init_str("9"));
```
2022-08-16 21:39:39 -04:00
Josh Matthews e64eab3eca Merge pull request #508 from maxichrome/master
Add NSWindowToolbarStyle bindings
2022-08-15 09:41:17 -02:30
wangxianqiao f10db81e85 Add NSDockTile 2022-06-29 22:18:43 +08:00
keiya01 0df00e0543 fix: add animate property to NSWindow:setFrame: 2022-06-28 08:57:37 +09:00
bors-servo 614d43aa54 Auto merge of #510 - pevers:fix-set-tooltip, r=jrmuizel
fix: setToolTip wrong method invocation

This fixes the `setToolTip` method on the `NSTabViewItem`. It should be `setToolTip`, not `setTooltip`.
2022-06-14 09:34:46 -04:00
Adrian Hupka 01169af4e2 Added setWorksWhenModal to NSPanel trait 2022-06-03 19:01:08 +02:00
Adrian Hupka dd1135e599 AddNSPanel trait to create NSPanels
Intention for PR described here: https://github.com/servo/core-foundation-rs/issues/511
2022-06-03 16:17:32 +02:00
Peter Evers 3ede1dd222 fix: typo in setToolTip 2022-05-29 17:31:12 +02:00
maxichrome a4aac2645b attempt to add toolbar style 2022-05-23 00:32:06 -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
youngsing 9b7c820c33 Update NSAppKitVersionNumber 2021-12-23 15:50:19 +08: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
Max Brunsfeld 39e1e0eeef Add NSSavePanel binding 2021-05-04 13:44:19 -07:00
李小鹏 afb2f80ef3 feat: NSRunningApplication::runningApplicationWithProcessIdentifier 2021-04-13 18:51:29 +08:00
李小鹏 147a432fa9 fix: windowNumberAtPoint_belowWindowWithWindowNumber_ is class method 2021-04-13 18:25:42 +08:00
Max Brunsfeld 52b7bc0a70 Add NSOpenPanel binding 2021-04-08 21:59:54 -07:00
adamnemecek 970b27b9b7 added nscursor 2021-01-15 19:14:39 -08:00
Josh Matthews d3336c3a21 Version bumps for cocoa, core-foundation-sys, core-foundation, core-text, core-graphics-types, core-graphics. 2020-09-15 12:19:56 -04:00
Josh Matthews 95d071234c Bump core-graphics to 0.22.0, core-text to 19.0.0, cocoa to 0.23.0. 2020-09-15 12:15:41 -04:00
Simon Hausmann 3743b68172 Add API for NSView's layerContentsPlacement property 2020-09-04 17:04:19 +02:00
Jeff Muizelaar edb7a8c7fc Add cocoa-foundation crate
This should let gfx-metal-rust avoid depending on core-graphics
2020-07-17 22:48:21 -04:00
Josh Matthews 762a01b90f Major version update for core-foundation-sys and all other dependencies. 2020-06-29 11:45:17 -04:00
Josh Matthews aa69b91def Add missing major version changes. 2020-06-29 11:27:35 -04:00
Josh Matthews 56d8b6c161 Major version change for core-foundation, core-graphics, io-surface, core-text, cocoa. 2020-06-29 11:03:28 -04:00
Josh Matthews d66046fcdc Publish cocoa 0.20.2. 2020-06-23 10:18:06 -04:00
Matthew Kraai 952f72e7bf Build cocoa docs for docs.rs on macOS 2020-06-22 15:02:01 -07:00
bors-servo e721988811 Auto merge of #355 - servo:jdm-patch-4, r=jdm
Remove library special casing from cocoa.

Fixes #354.
2020-05-17 12:55:39 -04:00
Kornel acf2c86930 Fix style warnings 2020-05-08 11:42:06 +01:00