Commit graph

108 commits

Author SHA1 Message Date
Luke Rogers
81fa4e698e Fixed building for iOS. 2023-05-31 12:00:19 +01: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
Ryan McGrath
1d76dce75f
Merge pull request #74 from terhechte/popover_support 2023-04-01 21:24:39 -07:00
Natsuki Ikeguchi
64908e5893
feat: Publish objc_access module
Signed-off-by: Natsuki Ikeguchi <me@s6n.jp>
2023-04-01 20:44:02 +09:00
Benedikt Terhechte
7e724934a5 add support for popovers 2023-03-03 12:15:28 +01:00
Ryan McGrath
68da052a8f
Merge pull request #67 from ryanmcgrath/feat/change-objc-classdec
Feat/change objc classdec
2022-11-04 16:03:59 -07:00
Ryan McGrath
2e40bb6ae3
Fmting pass 2022-11-04 15:57:53 -07:00
Esteban Borai
2f54ae59af fix: use systemFontOfSize as fallback for monospace 2022-10-16 22:20:40 -03:00
Esteban Borai
8c51b953d3 fix: provide version fallback 2022-10-15 20:36:40 -03:00
Esteban Borai
d5f8b0d6e5 feat: support for monospace system font
Provides support for the `monospacedSystemFontOfSize` method
from `NSFont`.

Refer: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc
2022-10-15 20:18:02 -03:00
Ryan McGrath
f8e836e3eb
Remove println 2022-10-14 15:37:36 -04:00
Ryan McGrath
dd0786bdab
Generate a random u64 to append to subclass names (Issue #63) 2022-10-14 15:34:41 -04:00
Ryan McGrath
65578f06fe
Swap WebView class registration to use class fn 2022-10-13 17:25:20 -04:00
Ryan McGrath
215eee4ae2
Experiment with bundle identifier being attached to generated subclass names (Issue #63) 2022-10-13 17:15:52 -04:00
Ryan McGrath
4d1e0ddb9d
Support NAME on WebViewDelegate trait impls 2022-10-12 15:42:16 -04:00
Ryan McGrath
2525cbfee4
Update webview implementation to use load_or_register_class (Issue #63) 2022-10-12 14:32:23 -04:00
Ryan McGrath
b187b1dc49
Refactor foundation/class to support finding classes across multiple bundles (issue #63) 2022-10-12 14:26:29 -04:00
shuo
c5e097123c fix ios filesystem build break 2022-09-14 23:09:23 +08:00
Sebastian Imlay
3425f839db Remove pasteboard and draginfo from uikit features 2022-08-21 20:22:58 -04:00
Sebastian Imlay
d80b38cea4 Move networking line back under listview import 2022-08-21 19:22:29 -04:00
Sebastian Imlay
78be15b50b Added comment for why image::from_path isnt tested 2022-08-21 19:22:29 -04:00
Sebastian Imlay
46b313b585 Make networking module be unfeature flagged, added more tests 2022-08-21 19:22:29 -04:00
Sebastian Imlay
4483b815f6 fix ci 2022-08-21 19:22:29 -04:00
Sebastian Imlay
bab9e7d847 Added image to uikit support and integration test 2022-08-21 19:22:27 -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
8b43d43caf Block off AppKit animator proxy to fix iOS compiling 2022-08-21 19:21:26 -04: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
Sebastian Imlay
e38d56ee42 fix fmt 2022-08-16 09:34:48 -04:00
Sebastian Imlay
d0d99df147 Updates from comments 2022-08-14 16:40:38 -04:00
Sebastian Imlay
7c917ee0ea Removed some compile_fail parts 2022-08-14 15:59:05 -04: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
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
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
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
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