diff options
author | 2019-11-21 18:01:48 +0100 | |
---|---|---|
committer | 2019-11-21 18:01:48 +0100 | |
commit | 9712b319bb7a32848001b96bd84977430f14b623 (patch) | |
tree | e9a40e89d05b353a8c8b37128b83c19c813f9da6 /native/README.md | |
parent | 5adefdf6613bfe0738b573eab1d280fa041f5417 (diff) | |
parent | 49349b75d92612e158f78fee84c70b172b4acd0e (diff) | |
download | iced-9712b319bb7a32848001b96bd84977430f14b623.tar.gz iced-9712b319bb7a32848001b96bd84977430f14b623.tar.bz2 iced-9712b319bb7a32848001b96bd84977430f14b623.zip |
Merge pull request #64 from hecrj/improvement/update-readmes
Update repository documentation
Diffstat (limited to 'native/README.md')
-rw-r--r-- | native/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/native/README.md b/native/README.md new file mode 100644 index 00000000..59ec5424 --- /dev/null +++ b/native/README.md @@ -0,0 +1,35 @@ +# `iced_native` +[][documentation] +[](https://crates.io/crates/iced_native) +[](https://github.com/hecrj/iced/blob/master/LICENSE) +[](https://iced.zulipchat.com) + +`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 `Widget` trait, which is used to implement new widgets: from layout requirements to event and drawing logic. +- A bunch of `Renderer` traits, meant to keep the crate renderer-agnostic. +- A `Windowed` trait, leveraging [`raw-window-handle`], which can be implemented by graphical renderers that target _windows_. Window-based shells (like [`iced_winit`]) can use this trait to stay renderer-agnostic. + + + +[documentation]: https://docs.rs/iced_native +[`iced_core`]: ../core +[`iced_winit`]: ../winit +[`druid`]: https://github.com/xi-editor/druid +[`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle + +## Installation +Add `iced_native` as a dependency in your `Cargo.toml`: + +```toml +iced_native = "0.1.0" +``` + +__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]. + +[the release list]: https://github.com/hecrj/iced/releases |