Introduce state lifetime for style_sheet in Toggler

This commit is contained in:
Héctor Ramón Jiménez 2021-10-31 17:48:23 +07:00
parent 0d3c9ef7bd
commit c9ed15782c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 16 additions and 13 deletions

View file

@ -6,4 +6,5 @@ pub use iced_graphics::toggler::{Style, StyleSheet};
/// A toggler that can be toggled.
///
/// This is an alias of an `iced_native` checkbox with an `iced_wgpu::Renderer`.
pub type Toggler<Message> = iced_native::widget::Toggler<Message, Renderer>;
pub type Toggler<'a, Message> =
iced_native::widget::Toggler<'a, Message, Renderer>;