summaryrefslogtreecommitdiffstats
path: root/pure/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-292/+0
2022-07-09Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez1-4/+4
... and check those in CI as well!
2022-07-09Fix further `clippy` lintsLibravatar Héctor Ramón Jiménez1-4/+12
... and explicitly annotate crates as well.
2022-07-09Address Clippy lintsLibravatar Poly1-1/+1
2022-05-14Draft first-class `Theme` supportLibravatar Héctor Ramón Jiménez1-1/+5
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-05Expose pure flex module as publicLibravatar Cory Forsstrom1-2/+1
2022-05-02Forbid `unused_results` and `rust_2018_idioms` in `iced_pure`Libravatar Héctor Ramón Jiménez1-4/+3
2022-05-02Write documentation for `iced_pure`Libravatar Héctor Ramón Jiménez1-0/+119
2022-03-29Use State::new() for State::default()Libravatar 0x1921-3/+1
2022-03-29Implement `Default` for `pure::State`Libravatar 0x1921-0/+8
Impure Applications using pure widgets can now use a struct implementing `Default`
2022-03-29Loose lifetime bounds in `pure::Widget` implementationsLibravatar Héctor Ramón Jiménez1-2/+2
2022-03-16Export widget modules in `iced_pure`Libravatar Héctor Ramón Jiménez1-1/+6
... and fix collisions with the new `helpers`
2022-02-16Add `overlay` support in `iced_pure` and port `PickList` :tada:Libravatar Héctor Ramón Jiménez1-0/+13
2022-02-12Implement pure version of `todos` example :tada:Libravatar Héctor Ramón Jiménez1-1/+2
The `Widget` trait in `iced_pure` needed to change a bit to make the implementation of `Element::map` possible. Specifically, the `children` method has been split into `diff` and `children_state`.
2022-02-11Allow pure widgets to borrow from `Application` data :tada:Libravatar Héctor Ramón Jiménez1-29/+25
2022-02-11Rename `iced_virtual` to `iced_pure`Libravatar Héctor Ramón Jiménez1-4/+4
`virtual` is a reserved keyword in Rust :grimacing:
2022-02-10Implement `Into<Element>` for `&'static str` in `iced_virtual`Libravatar Héctor Ramón Jiménez1-2/+2
2022-02-10Draft virtual `Button`, `Column`, and `Text`Libravatar Héctor Ramón Jiménez1-11/+96
... as well as a very naive diffing strategy!
2022-02-09Draft `iced_virtual` subcrateLibravatar Héctor Ramón Jiménez1-0/+61
The idea here is to expose a set of "virtual widgets" that can be used with a `Virtual` widget and its `virtual::State`. A virtual widget is a widget that does not contain any state, but instead is a "virtual" representation of the "real" widget. The real widgets are stored in the `virtual::State`. Every time a new virtual widget tree is created during `view`, it is compared to the previous one and "real" widgets are added / removed to the `virtual::State`. Effectively, this removes the need to keep track of local widget state in the application state and allows `view` to take an immutable reference to `self`. To summarize, using this crate should allow users to remove `State` structs in their application state. Eventually, the strategy used here may be adopted generally and, as a result, all of the widgets in `iced_native` would be replaced!