This should resolve https://github.com/iced-rs/iced/issues/580 by providing a way to use an image included with `include_bytes!` without needing to copy it to a `Vec` to create an image handle. It would be nice if these methods could also be `const`, but that isn't possible due to the hashing being done. This is technically a breaking change since `Handle::data()` is public. But if that is used, it's most likely in used somewhere that only relies on the type derefing to `&[u8]`. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
iced_native
iced_native takes iced_core and builds a native runtime on top of it, featuring:
- A custom layout engine, greatly inspired by
druid - Event handling for all the built-in widgets
- A renderer-agnostic API
To achieve this, it introduces a bunch of reusable interfaces:
- A
Widgettrait, which is used to implement new widgets: from layout requirements to event and drawing logic. - A bunch of
Renderertraits, meant to keep the crate renderer-agnostic. - A
Windowedtrait, leveragingraw-window-handle, which can be implemented by graphical renderers that target windows. Window-based shells (likeiced_winit) can use this trait to stay renderer-agnostic.
Installation
Add iced_native as a dependency in your Cargo.toml:
iced_native = "0.4"
Iced moves fast and the master branch can contain breaking changes! If
you want to learn about a specific release, check out the release list.