iced/native
Zak d275a4ed32 This PR fixes a bug with select all (CMD + A on MacOS) when using a text_input.
Previous behaviour: when selecting all (CMD + A) would delete the current text inside the input and replace the content with just the letter 'a'.

Now we check if the logo key (modifier key) has been pressed before checking any other key and save it to the state level. This way we can prevent any text being deleted when using the select all shortcut or text being entered at all when a modifier key is pressed (this behaviour matches other text input behaviour i.e text inputs in the browser etc...).
2020-11-25 03:57:18 +01:00
..
src This PR fixes a bug with select all (CMD + A on MacOS) when using a text_input. 2020-11-25 03:57:18 +01:00
Cargo.toml Make Slider value type generic 2020-06-13 14:17:41 +02:00
README.md Bump all versions 🎉 2020-04-02 17:40:20 +02:00

iced_native

Documentation Crates.io License project chat

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.

iced_native

Installation

Add iced_native as a dependency in your Cargo.toml:

iced_native = "0.2"

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.