Héctor Ramón Jiménez
0e475b008f
Invalidate widget tree in Responsive after a window::Event::Resized
...
This is a pessimistic approach! Ideally, we should be able to recreate
only the contents of the `Responsive` widget in `Widget::layout`, but
given `view` is impure we have to trigger a brand new `view` call.
The persistent widget tree should make this easier.
2022-01-20 13:43:45 +07:00
cossonleo
41bd984d6b
component overlay position fix
2022-01-20 11:35:45 +08:00
Héctor Ramón Jiménez
a3744ec97a
Recompute layout of Responsive contents when size changes
2022-01-20 04:09:46 +07:00
Héctor Ramón Jiménez
f6c436aec1
Write docs for responsive in iced_lazy
2022-01-12 11:48:49 +07:00
Héctor Ramón Jiménez
241e123c9b
Write documentation for component in iced_lazy
2022-01-12 11:39:54 +07:00
Héctor Ramón Jiménez
870d651f35
Implement Widget::overlay for Responsive widget
2022-01-12 11:15:05 +07:00
Héctor Ramón Jiménez
5a03cac7e7
Remove superfluous generic type in iced_lazy::Cache
2022-01-11 14:55:48 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event
2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
...
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
Nick Senger
85e92d9e22
fix: nested component layout invalidation
2021-12-24 11:14:30 -08:00
Nick Senger
44c0d75953
fix: drop remaining component overlay events if closed during event batch processing
2021-12-17 08:46:56 -08:00
Nick Senger
042a294448
Revert "fix: process component overlay events together with those of the original element"
...
This reverts commit aa09bd4a98 .
2021-12-17 08:36:05 -08:00
Nick Senger
aa09bd4a98
fix: process component overlay events together with those of the original element
2021-12-13 16:52:31 -08:00
Héctor Ramón Jiménez
48b2264bc6
Simplify component implementation in iced_lazy
2021-12-13 17:46:39 +07:00
Nick Senger
a92307890f
feat: enable overlay in component
2021-12-10 09:53:44 -08:00
Nick Senger
4a54d4dfc5
Fix Widget::height for Component
2021-12-08 15:33:25 -08:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
...
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
f7792d89d6
Hide Box allocation in component::view
...
... we may be able to avoid it with generics in the future.
2021-11-29 15:04:13 +07:00
Héctor Ramón Jiménez
010b62b9ee
Draft component example 🎉
2021-11-29 15:04:13 +07:00
Héctor Ramón Jiménez
bffa7203df
Create iced_lazy and draft Component trait
2021-11-29 15:04:12 +07:00