Implement Widget::overlay for Responsive widget

This commit is contained in:
Héctor Ramón Jiménez 2022-01-12 11:15:05 +07:00
parent 5a03cac7e7
commit 870d651f35
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
13 changed files with 440 additions and 248 deletions

13
lazy/src/cache.rs Normal file
View file

@ -0,0 +1,13 @@
use iced_native::overlay;
use iced_native::Element;
use ouroboros::self_referencing;
#[self_referencing(pub_extras)]
pub struct Cache<'a, Message: 'a, Renderer: 'a> {
pub element: Element<'a, Message, Renderer>,
#[borrows(mut element)]
#[covariant]
pub overlay: Option<overlay::Element<'this, Message, Renderer>>,
}