Commit graph

21 commits

Author SHA1 Message Date
Benedikt Terhechte e6696eaa3e
Multiple changes I had to make for Ebou (#89)
* Add segmented control, icons, toolbar

* add to demos

* doc tests

* format code

* Additional SFSymbol definitions
2023-07-31 23:51:53 -07:00
Adam Gastineau 9fbb332b38
Idiomatic NSArray iteration (#97) 2023-07-19 13:40:51 -07:00
Adam Gastineau 01507f7642
Global NSEvent listener and some mouse methods (#94)
* Support for all NSEvent types and configurable event monitoring

* Useful mouse event methods

* rustfmt nightly fixes

* Use standard kind naming convention
2023-07-13 17:22:54 -07:00
Ari Lotter 9f8d946371
add haptics (#93) 2023-07-10 13:59:25 -07:00
Michal Hornický f2f6a1bcfa fix: Add missing button apis 2023-05-07 15:22:34 +02:00
Ryan McGrath 589ff8c789
Fixes #82 2023-05-01 03:47:35 -07:00
Ryan McGrath f24261747c
Merge pull request #79 from MerlinDE/fix_register_class
Fixes possible duplicate objc class registration.
2023-04-25 16:53:44 -07:00
Joshua Brest 5837dde564
Forgot subtitle 2023-04-24 03:48:31 +08:00
Joshua Brest 28c280556a
Whoops, forgot "{}" 2023-04-24 03:46:52 +08:00
Joshua Brest 8056329f65
My commit for the repo built in rust called Cacao 2023-04-24 03:31:58 +08:00
Alexander Czernay ff85e24055 Applies rustfmt.toml rules 2023-04-17 21:35:49 +02:00
Alexander Czernay 718c831bc4 Refactor to use load_or_register_class 2023-04-16 21:24:44 +02:00
Alexander Czernay 2803922f3a Fixes possible duplicate objc class registration.
This can happen in environments like plugins, where cacao can exist multiple times and thus tries to create and register its objc classes more than once.
2023-04-16 10:47:32 +02:00
Benedikt Terhechte 7e724934a5 add support for popovers 2023-03-03 12:15:28 +01:00
Sebastian Imlay 8bffc30ac1 fix cargo test 2022-08-14 15:44:53 -04:00
Raphael bfb2792d3c feat: add current cursor and currentsystem cursor 2022-07-28 17:14:50 +08:00
Mads Marquart db4f2c0720 Run cargo fmt 2022-07-15 16:14:02 +02:00
Mads Marquart 02f5d6aa87 Remove trailing whitespace 2022-07-15 16:13:27 +02:00
Ryan McGrath f925205876
Provide a standard NSMenu generator, fix a bug in NSEvent key character releasing, and add an animation example. 2022-01-07 01:13:24 -08:00
Ryan McGrath 4ecfbd0928
A large smattering of updates.
- Added basic animation support, via NSAnimationContext proxy objects.
  These can be used to animate layout constraints and alpha values,
  currently.

- Fixed a bug in ListView where the underlying NSTableView would not
  redraw the full correct virtual height in some conditions.

- Added safe layout guide support to some views.

- Added a new trait to buffer ObjC object access for view and control
  types. This is the supertrait of the Layout and Control traits.

- Added a Control trait, which implements various NSControl pieces.

- Added a Select control, which is a Select-ish HTML dropdown lookalike.

- Added NSURL support, which is one of the few types to expose here.

- Filesystem and pasteboard types now work with NSURLs. Users who need
  pathbufs can use the provided conversion method on NSURL.

- Fixed a bug where some Window and ViewController types could wind up
  in a double-init scenario.
2022-01-02 02:35:12 -08:00
Ryan McGrath c713194262
v0.3.
- Changes internal target_os flags to be feature flags; macOS is now
  appkit, and iOS/tvOS are now uikit. This enables platforms that are
  not Apple-specific platforms that use frameworks to be compiled for.

- Updates the examples to handle closing/quitting better.
2021-08-07 22:31:48 -07:00