diff options
author | 2021-10-21 18:50:27 +0700 | |
---|---|---|
committer | 2021-10-21 18:50:27 +0700 | |
commit | 7c08c6bd138207b862933ee479752a4f1d18c4f2 (patch) | |
tree | 879d8a6676dfc36171217d9b44b6e111a95392ab /graphics | |
parent | b6ae87ae55301d6c15f56e6c7df077aabe6383de (diff) | |
download | iced-7c08c6bd138207b862933ee479752a4f1d18c4f2.tar.gz iced-7c08c6bd138207b862933ee479752a4f1d18c4f2.tar.bz2 iced-7c08c6bd138207b862933ee479752a4f1d18c4f2.zip |
Remove `Renderer` trait for `Checkbox`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/checkbox.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/graphics/src/widget/checkbox.rs b/graphics/src/widget/checkbox.rs index 3b756525..a458d85c 100644 --- a/graphics/src/widget/checkbox.rs +++ b/graphics/src/widget/checkbox.rs @@ -1,23 +1,10 @@ //! Show toggle controls using checkboxes. -use crate::backend::{self, Backend}; use crate::Renderer; -use iced_native::checkbox; - pub use iced_style::checkbox::{Style, StyleSheet}; /// A box that can be checked. /// /// This is an alias of an `iced_native` checkbox with an `iced_wgpu::Renderer`. -pub type Checkbox<Message, Backend> = - iced_native::Checkbox<Message, Renderer<Backend>>; - -impl<B> checkbox::Renderer for Renderer<B> -where - B: Backend + backend::Text, -{ - type Style = Box<dyn StyleSheet>; - - const DEFAULT_SIZE: u16 = 20; - const DEFAULT_SPACING: u16 = 15; -} +pub type Checkbox<'a, Message, Backend> = + iced_native::Checkbox<'a, Message, Renderer<Backend>>; |