Commit graph

155 commits

Author SHA1 Message Date
Sebastian Imlay bab9e7d847 Added image to uikit support and integration test 2022-08-21 19:22:27 -04:00
Ryan McGrath 968843e79b See if forcing target does what I expect 2022-08-21 19:21:26 -04:00
Ryan McGrath 9decae65eb Take a crack at updating the GitHub CI to compile the iOS example as well. I may break this one. 2022-08-21 19:21:26 -04:00
Ryan McGrath c58de62f1d Nightly fmt pass 2022-08-21 19:21:26 -04:00
Ryan McGrath cf11a935de Formatting hell 2022-08-21 19:21:26 -04:00
Ryan McGrath 66e1f91a6c Update README instructions for iOS beta to use correct name 2022-08-21 19:21:26 -04:00
Ryan McGrath 8b43d43caf Block off AppKit animator proxy to fix iOS compiling 2022-08-21 19:21:26 -04:00
Ryan McGrath e8f954080b
Merge pull request #49 from ryanmcgrath/fix/ios-sfsymbol-gating
Unblock SFSymbols on iOS
2022-08-21 16:20:55 -07:00
Ryan McGrath 71c107e070
Formatting fix 2022-08-21 16:04:20 -07:00
Ryan McGrath a94e9e6dd2 Potential fix for Issue #36 - SFSymbols doesn't need to be blocked off (panic) in iOS 2022-08-21 15:56:04 -07:00
Ryan McGrath 120cd86445
Bump version to publish docs changes, touch up README formatting 2022-08-16 16:40:19 -07:00
Ryan McGrath ce0a8e5a48
Merge pull request #45 from simlay/fix-cargo-test
Simplify CI, fix cargo test, and fix docstrings
2022-08-16 13:58:39 -07:00
Sebastian Imlay e38d56ee42 fix fmt 2022-08-16 09:34:48 -04:00
Sebastian Imlay a8e96836a2 Add extra line in cargo 2022-08-14 16:50:40 -04:00
Sebastian Imlay 466d64542e Removed feature cfg from examples 2022-08-14 16:49:49 -04:00
Sebastian Imlay d0d99df147 Updates from comments 2022-08-14 16:40:38 -04:00
Sebastian Imlay b0b93468d8 Fixed indents on feature flagged compiling of examples 2022-08-14 16:06:53 -04:00
Sebastian Imlay 7c917ee0ea Removed some compile_fail parts 2022-08-14 15:59:05 -04:00
Sebastian Imlay db8af85fed Simplify CI steps 2022-08-14 15:48:50 -04:00
Sebastian Imlay 8bffc30ac1 fix cargo test 2022-08-14 15:44:53 -04:00
Ryan McGrath b20eff1a2e
Bump to 0.3.1 2022-08-12 20:58:58 -07:00
Ryan McGrath fb9d456a5d
Merge pull request #44 from madsmtm/fix-dependency-cycle 2022-08-11 06:43:43 -07:00
Mads Marquart 0cf19cae35 Fix core-foundation dependency cycle 2022-08-11 15:34:54 +02:00
Ryan McGrath eb2f5cc9a2
Re-enable autolayout example 2022-07-31 21:06:49 -07:00
Ryan McGrath 538e9a8f4c
Merge pull request #39 from dagit/ci-build-examples
build trunk and examples
2022-07-31 20:19:05 -07:00
Jason Dagit c4b71b729d
Merge branch 'ryanmcgrath:trunk' into ci-build-examples 2022-07-31 20:16:15 -07:00
Ryan McGrath b4d34c8c53
Merge pull request #40 from dagit/fix-imports-in-examples
Fix imports in examples
2022-07-31 20:14:13 -07:00
Jason Dagit 8accde6478 fix formatting 2022-07-31 20:09:59 -07:00
Jason Dagit 9c070ecb8e Fix imports 2022-07-31 19:27:11 -07:00
Jason Dagit ac6dc76d8d build trunk and examples 2022-07-31 19:23:24 -07:00
Ryan McGrath 6abb235c2b
Merge pull request #37 from glepnir/add_cursor
feat: add current cursor and currentsystem cursor
2022-07-30 16:05:10 -07:00
Raphael bfb2792d3c feat: add current cursor and currentsystem cursor 2022-07-28 17:14:50 +08:00
Ryan McGrath 0294647683
Merge pull request #29
Merge `cargo fmt` work from @madsmtm (https://github.com/ryanmcgrath/cacao/pull/29).

See context for merge oddities here: https://github.com/ryanmcgrath/cacao/pull/33
2022-07-17 23:30:30 -07:00
Ryan McGrath 1993226f57
Merge pull request #29 from madsmtm/rustfmt
Run `cargo fmt`
2022-07-17 23:27:09 -07:00
Mads Marquart 48393e8450 Add CI and gate on cargo fmt output 2022-07-15 16:14:03 +02:00
Mads Marquart 56f748910e Always specify function ABI 2022-07-15 16:14:03 +02:00
Mads Marquart db4f2c0720 Run cargo fmt 2022-07-15 16:14:02 +02:00
Mads Marquart fd1a3ce26d Configure rustfmt 2022-07-15 16:13:27 +02:00
Mads Marquart 02f5d6aa87 Remove trailing whitespace 2022-07-15 16:13:27 +02:00
Ryan McGrath a790eb95b7
Merge pull request #31 from ryanmcgrath/airyx-appkit-uikit-features 2022-07-11 22:21:57 -07:00
Ryan McGrath 609a822e3f Merge branch 'trunk' into airyx-appkit-uikit-features
Needs merging for custom image drawing example.

* trunk:
  Add custom image drawing example
2022-07-11 22:12:54 -07:00
Ryan McGrath 9f99b5b196 Merge branch 'trunk' of github.com:ryanmcgrath/cacao into trunk
* 'trunk' of github.com:ryanmcgrath/cacao:
  Add custom image drawing example
2022-07-11 22:12:45 -07: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 b9bf30e6f1
Fix examples, fix webview to work with new ObjcAccess trait, rename Image icon method for toolbars 2022-01-06 23:25:36 -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 01d12396ef
Add custom image drawing example
Useful for Issue #21.
2021-11-20 17:35:25 -08:00
Ryan McGrath 87533d576f
Fix errors when compiling docs.
Feature flags that clash are no fun. This reworks a few things so that
docs can properly build with all feature flags at once and note their
support.

Also adds a supported table to the README for ease of discovery.
2021-08-09 02:09:08 -07: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 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
Ryan McGrath 2a9a8f8635
Push 0.2.1 2021-07-08 15:26:57 -07:00