Commit graph

8 commits

Author SHA1 Message Date
Alexander Czernay
ff85e24055 Applies rustfmt.toml rules 2023-04-17 21:35:49 +02:00
Benedikt Terhechte
7e724934a5 add support for popovers 2023-03-03 12:15:28 +01: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
93424f74c0
Throw autolayout behind a feature flag.
- AutoLayout is now behind a feature flag (that is defaulted) to enable
  building and running on platforms that do _not_ support AutoLayout.

- Added a frame-based Layout example for platforms that don't have
  AutoLayout support.

- Fixed a bug in geometry.rs where x/y coordinates would get swapped on
  conversion to `CGRect`.

- Added a README to the examples directory to aid in first time users
  running examples.
2021-08-08 18:42:07 -07:00
Ryan McGrath
2f9a5b5e67
Rework the Layout trait implementation.
- Adds a new `ObjcProperty` type, which wraps our Objective-C objects in
  a Rust-backed Rc/Refcell combo. This in general makes understanding
  reference counting/storage more digestable when reading through the
  codebase and leans more on Rust to do its thing than the Objective-C
  runtime.

- Most widgets that need to implement `Layout` now only need to provide
  a slot for running a handler with the underlying node.

- Further documentation work ongoing.
2021-03-26 13:29:39 -07:00
Ryan McGrath
4ff69c008a
Very rough experimental support for iOS13+ Scenes. Not ready for use or comment yet. 2020-04-04 19:50:58 -07:00
Ryan McGrath
6b8aad4a94
Fix up the repo so examples work as they should 2020-03-26 18:06:11 -07:00
Renamed from appkit/geometry.rs (Browse further)