Héctor Ramón Jiménez
d9d6dff550
Loose lifetime bounds in pure::Widget implementations
2022-03-29 18:24:17 +07:00
Héctor Ramón Jiménez
9157f5b9e4
Use application lifetime in Into<Element> implementation for &str
2022-03-22 13:27:12 +07:00
Héctor Ramón Jiménez
d7100fd259
Export widget modules in iced_pure
...
... and fix collisions with the new `helpers`
2022-03-16 17:37:19 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets
2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
35e9b75e41
Introduce Tag and State opaque types in iced_pure::widget::tree
2022-02-16 15:44:50 +07:00
Héctor Ramón Jiménez
bd22cc0bc0
Implement pure version of todos example 🎉
...
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-12 17:21:28 +07:00
Héctor Ramón Jiménez
dee3dba632
Reuse Text widget from iced_native in iced_pure
2022-02-12 14:22:17 +07:00
Héctor Ramón Jiménez
01c5004959
Allow pure widgets to borrow from Application data 🎉
2022-02-11 22:07:21 +07:00
Héctor Ramón Jiménez
43a7ad72ef
Expose function helpers to build widgets in pure::widget
...
`button("Hello")` is easier to write and read than
`Button::new("Hello")`.
2022-02-11 18:42:15 +07:00
Héctor Ramón Jiménez
897188317b
Rename iced_virtual to iced_pure
...
`virtual` is a reserved keyword in Rust 😬
2022-02-11 17:50:12 +07:00