Implement Widget::draw for Toggler

This commit is contained in:
Héctor Ramón Jiménez 2021-10-28 18:17:47 +07:00
parent f625797392
commit 1c2792c0a0
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 86 additions and 63 deletions

View file

@ -10,12 +10,3 @@ pub use iced_style::toggler::{Style, StyleSheet};
/// This is an alias of an `iced_native` toggler with an `iced_wgpu::Renderer`.
pub type Toggler<Message, Backend> =
iced_native::Toggler<Message, Renderer<Backend>>;
impl<B> toggler::Renderer for Renderer<B>
where
B: Backend + backend::Text,
{
type Style = Box<dyn StyleSheet>;
const DEFAULT_SIZE: u16 = 20;
}