summaryrefslogtreecommitdiffstats
path: root/examples/events/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-02-21Update all `examples` to Rust 2024Libravatar Héctor Ramón Jiménez1-1/+1
2024-08-12Revert `window::close` producing a `window::Id`Libravatar Héctor Ramón Jiménez1-4/+2
Instead, subscribing to `window::close_events` is preferable; since most use cases will want to react to the user closing a window as well.
2024-08-12Make `window::close` return and introduce `Task::discard`Libravatar Héctor Ramón Jiménez1-2/+4
2024-07-12Re-export variants of `Length` and `alignment` typesLibravatar Héctor Ramón Jiménez1-3/+3
2024-07-12Introduce helper methods for alignment for all widgetsLibravatar Héctor Ramón Jiménez1-11/+6
2024-06-20Remove `window::Id::MAIN` constantLibravatar Héctor Ramón Jiménez1-2/+2
2024-06-19Introduce `daemon` API and unify shell runtimesLibravatar Héctor Ramón Jiménez1-1/+1
2024-06-14Replace `Command` with a new `Task` API with chain supportLibravatar Héctor Ramón Jiménez1-5/+5
2024-06-10Introduce `window::Id` to `Event` subscriptionsLibravatar Héctor Ramón Jiménez1-3/+2
And remove `window::Id` from `Event` altogether.
2024-05-03Introduce `center` widget helperLibravatar Héctor Ramón Jiménez1-7/+2
... and also make `center_x` and `center_y` set `width` and `height` to `Length::Fill`, respectively. This targets the most common use case when centering things and removes a bunch of boilerplate as a result.
2024-03-18refactor: replace `text(format!(` with `text` macroLibravatar Richard Custodio1-1/+1
2024-03-17Move `Program` to `application` moduleLibravatar Héctor Ramón Jiménez1-1/+1
2024-03-17Remove `Sandbox` trait :tada:Libravatar Héctor Ramón Jiménez1-1/+1
2024-03-16Implement `Program::load` to specify startup `Command`Libravatar Héctor Ramón Jiménez1-6/+1
2024-03-16Introduce `Program` APILibravatar Héctor Ramón Jiménez1-23/+8
2024-02-01Introduce support for disabling a `checkbox`Libravatar Alexander van Saase1-5/+2
2024-01-10Introduce `Widget::size_hint` and fix further layout inconsistenciesLibravatar Héctor Ramón Jiménez1-2/+1
2023-09-07Introduce `keyboard::on_key_press` and `on_key_release`Libravatar Héctor Ramón Jiménez1-3/+2
Also rename `subscription::events*` to `event::listen*`.
2023-07-21refactored window storage;Libravatar Bingus1-3/+4
new helper window events (Destroyed, Created); clippy + fmt;
2023-03-04Create `iced_widget` subcrate and re-organize the whole codebaseLibravatar Héctor Ramón Jiménez1-4/+5
2023-02-17Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez1-1/+1
2023-01-27Fix: Clippy lint 'uninlined_format_args'Libravatar 13r0ck1-1/+1
2023-01-12Draft `Shell:request_redraw` APILibravatar Héctor Ramón Jiménez1-13/+11
... and implement `TextInput` cursor blink :tada:
2023-01-09add `window::Id` to `Event` and `Action`Libravatar Richard1-1/+1
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-16/+15
2022-05-14Draft first-class `Theme` supportLibravatar Héctor Ramón Jiménez1-3/+7
RFC: https://github.com/iced-rs/rfcs/pull/6
2021-09-20Refactor alignment types into an `alignment` moduleLibravatar Héctor Ramón Jiménez1-5/+4
2021-09-20Introduce and use `CrossAlign` enum for `Column` and `Row`Libravatar Héctor Ramón Jiménez1-4/+4
2021-09-02Make `Command` implementations platform-specificLibravatar Héctor Ramón Jiménez1-8/+4
This allows us to introduce a platform-specific `Action` to both `iced_native` and `iced_web` and remove the `Clipboard` from `Application::update` to maintain purity. Additionally, this should let us implement further actions to let users query and modify the shell environment (e.g. window, clipboard, and more!)
2021-03-30Showcase graceful exiting in `events` exampleLibravatar Héctor Ramón Jiménez1-10/+37
2021-03-11Add `clipboard` argument to `Application::update`Libravatar Héctor Ramón Jiménez1-3/+7
2020-09-08Make `Application` and `Sandbox` return a `Result`Libravatar Héctor Ramón Jiménez1-1/+1
2020-03-30Allow passing external state to `Application::new`Libravatar Héctor Ramón Jiménez1-1/+2
2020-01-20Package examples and remove `dev-dependencies`Libravatar Héctor Ramón Jiménez1-0/+86