//! 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 = iced_native::Checkbox>; impl checkbox::Renderer for Renderer where B: Backend + backend::Text, { type Style = Box; const DEFAULT_SIZE: u16 = 20; const DEFAULT_SPACING: u16 = 15; }