summaryrefslogtreecommitdiffstats
path: root/pure/src/widget/button.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-274/+0
2022-07-09Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez1-5/+5
... and check those in CI as well!
2022-05-26Rename `Variant` to `Style` and `Style` to `Appearance`Libravatar Héctor Ramón Jiménez1-9/+6
2022-05-14Draft first-class `Theme` supportLibravatar Héctor Ramón Jiménez1-8/+24
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-02Write documentation for `iced_pure`Libravatar Héctor Ramón Jiménez1-0/+36
2022-03-29Loose lifetime bounds in `pure::Widget` implementationsLibravatar Héctor Ramón Jiménez1-4/+4
2022-03-16Export widget modules in `iced_pure`Libravatar Héctor Ramón Jiménez1-3/+4
... and fix collisions with the new `helpers`
2022-02-17Implement `pure::Component` in `iced_lazy`Libravatar Héctor Ramón Jiménez1-2/+2
2022-02-16Add `overlay` support in `iced_pure` and port `PickList` :tada:Libravatar Héctor Ramón Jiménez1-0/+14
2022-02-16Introduce `Tag` and `State` opaque types in `iced_pure::widget::tree`Libravatar Héctor Ramón Jiménez1-11/+10
2022-02-12Implement pure version of `todos` example :tada:Libravatar Héctor Ramón Jiménez1-2/+6
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-12Implement `Scrollable` in `iced_pure`Libravatar Héctor Ramón Jiménez1-2/+2
2022-02-11Complete `Button` in `iced_pure`Libravatar Héctor Ramón Jiménez1-2/+32
2022-02-11Expose reusable `Button` logicLibravatar Héctor Ramón Jiménez1-124/+38
... and reuse it in `iced_pure`!
2022-02-11Allow pure widgets to borrow from `Application` data :tada:Libravatar Héctor Ramón Jiménez1-12/+13
2022-02-11Rename `iced_virtual` to `iced_pure`Libravatar Héctor Ramón Jiménez1-0/+0
`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-23/+231
... as well as a very naive diffing strategy!
2022-02-09Draft `iced_virtual` subcrateLibravatar Héctor Ramón Jiménez1-0/+64
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!