* Support for all NSEvent types and configurable event monitoring
* Useful mouse event methods
* rustfmt nightly fixes
* Use standard kind naming convention
* Added a bunch of unit tests and added text input to uikit feature
* cargo fmt
* I dunno what this is but it wasnt checked in
* Fix uikit unit tests
* maybe fix cargo fmt
* Fix iOS run
* fix cargo fmt
* Maybe fix cargo fmt
* maybe fix cargo fmt
* cargo fmt
* Try to fix cargo fmt one more time
* cargo fmt
- 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.
- 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.
- 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.
This is a basic implementation of the custom protocol, with built-in mimetype extraction from the content, backed by URI detection.
To make it clear, I added an example and can be run with:
```
cargo run --example webview_custom_protocol --features webview
```
- Corrects `feature` -> `target_os` checks.
- Updates the old iOS scene delegate pieces to use the new class
structure.
- Bundles in an iOS demo app.
- Blocks off most things that should not even attempt to compile for
iOS.
- Adds support for NSSplitViewController.
- Reworks NSMenu support to be cleaner with enum variants.
- Reworks the Foundation underpinnings to be a bit safer and more clear
in how they're used and passed around.
- Changes to docs structure for push towards v0.1.
- Examples updated to account for changes.
- Beginning to transition View types to use Rc/RefCell internally,
which should provide better guarantees about ownership on the Rust side.
This is also important for certain Objective-C side scenarios where we
may need to set an ivar after creation, which requires some level of
mutability. This may also possibly help bring down the unsafe usage,
which would be cool.
- Rewrote the Color module; this now handles system colors better, and
provides support for dynamic color creation. Supporting combinations
of dark/light/contrast is now possible with handler passed in via
`Color::dynamic`. This still has work to do in terms of some accessor
methods and such, but it works well for now. The `to_platform...`
method should be removed before v0.1.
- Added a new feature for enabling fallback color usage on older macOS
versions that don't support system colors. This may honestly never be
used, but it cost nothing to implement.
- Fixed a bug in the Autolayout wrapper where dereferencing could cause
constraints to crash at runtime.
- Support setting text color on labels.
- Support setting text color on buttons, albeit very hacky right now.
This needs to be extracted and/or cleaned up, but getting it sketched
out was important for this commit.
- Support setting a key equivalent on buttons.
- Creating a local event monitor is now possible.
- Examples updated; Calculator clone example added.
The only API breaking change in this commit from earlier commits should
be `color::rgb` needing to be `color::Color` followed by a
`Color::rgb(...)` call.
- Reconfigured subclass creation, as there was a
subtle-but-big-when-it-hit bug in the prior method where bridge
callbacks would lose context of the appropriate delegate when calling
the trait method. The new approach found in `src/foundation/class.rs`
maps and caches subclass creation, and subclasses are now more
apparent when debugging from the Objective-C side as we can carry
their intended name/usage through. Not applied to all yet, but
eventually.
- Cleaned up a number of linter warnings that had grown over time.
- Delegate traits now require an associated const `NAME`, which is used
for subclass creation.
- (macOS) Toolbars now supported setting selected items, which is
typically used in preferences screens.
- (macOS) Windows now support setting the toolbar display style. On Big
Sur, this works as intended - it's a noop on older OS's that don't
support it.
- Support for system icons for macOS preferences windows.
Still a bit to go to flesh this all out, but it's getting there - at
which point then iOS supoort can be folded in easier.
- Filesystem Save/Open panels can return PathBuf's instead of Url's,
which feels more native to Rust.
- Support for drawing into an Image context with Core Graphics.
- ListView swipe-to-reveal action support.
- Experimental ListView cell reuse support.
- Updates to QuickLook to also support PathBuf's.