Allow pure widgets to borrow from Application data 🎉

This commit is contained in:
Héctor Ramón Jiménez 2022-02-11 22:07:21 +07:00
parent 43a7ad72ef
commit 01c5004959
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
11 changed files with 103 additions and 98 deletions

View file

@ -20,7 +20,8 @@
pub use iced_pure::{Element as _, *};
/// A generic, pure [`Widget`].
pub type Element<Message> = iced_pure::Element<Message, crate::Renderer>;
pub type Element<'a, Message> =
iced_pure::Element<'a, Message, crate::Renderer>;
mod application;
mod sandbox;