Mads Marquart
6541d9a789
Fix invalid msg_send! ( #702 )
2024-08-13 12:04:01 +00:00
Bruce Mitchener
fb71d45b30
Enable clippy, suppress lots, fix a couple. ( #703 )
...
This enables clippy in CI and suppresses most of the existing
warnings. We can drill down and fix those later, but this will
help start getting things under control.
2024-08-13 04:25:49 +00:00
Bruce Mitchener
39a39555c0
Use workspace inheritance. ( #701 )
...
Consolidate package configuration where possible. This also
removes the `homepage` key as it only points to the repository
so isn't providing anything additional.
Use workspace dependencies for the crates provided by the workspace
and used within the workspace. This centralizes the version number
maintenance a bit.
2024-08-12 07:41:37 +00:00
Bruce Mitchener
9f33b121fb
Use core::ffi over std::os::raw and libc::c_* ( #692 )
...
`core::ffi` is the preferred way to access these type definitions.
Begin removing uses of the versions from `libc`.
`libc::c_void` is not exactly the same as `core::ffi::c_void` but
some code has tried using them interchangeably (like in io-surface).
`libc::size_t` is `usize` on all current platforms.
2024-08-11 20:24:22 +00:00
Bruce Mitchener
42ec06106d
Bump MSRV to 1.65 ( #694 )
...
This will allow us to use `dep:` syntax and also move to using types
from `core::ffi` as well as some other more modern constructs.
2024-08-11 16:15:49 +00:00
Xiaopeng Li
b10f1efc48
Retain calayer after creation ( #546 )
...
* Retain calayer after creation
* Fix fmt
* fix create_calayer test
2024-08-09 16:48:56 +00:00
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