Implement Widget::draw for Toggler
This commit is contained in:
parent
f625797392
commit
1c2792c0a0
3 changed files with 86 additions and 63 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue