pub struct CheckBoxToggleButtonStyle { /* private fields */ }
Implementations§
Source§impl CheckBoxToggleButtonStyle
impl CheckBoxToggleButtonStyle
pub fn new(_params: CheckBoxToggleButtonStyleParams) -> Self
Trait Implementations§
Source§impl Style<ToggleButton> for CheckBoxToggleButtonStyle
impl Style<ToggleButton> for CheckBoxToggleButtonStyle
fn setup( &mut self, data: &mut ToggleButton, control_context: &mut ControlContext, )
fn handle_event( &mut self, data: &mut ToggleButton, control_context: &mut ControlContext, _drawing_context: &mut dyn DrawingContext, _event_context: &mut dyn EventContext, event: ControlEvent, )
fn measure( &mut self, _data: &mut ToggleButton, control_context: &mut ControlContext, drawing_context: &mut dyn DrawingContext, size: Size, ) -> Size
fn set_rect( &mut self, _data: &mut ToggleButton, control_context: &mut ControlContext, drawing_context: &mut dyn DrawingContext, rect: Rect, )
fn hit_test( &self, _data: &ToggleButton, control_context: &ControlContext, point: Point, ) -> Option<Rc<RefCell<dyn ControlObject>>>
fn to_primitives( &self, data: &ToggleButton, control_context: &ControlContext, drawing_context: &mut dyn DrawingContext, ) -> (Vec<Primitive>, Vec<Primitive>)
Auto Trait Implementations§
impl Freeze for CheckBoxToggleButtonStyle
impl RefUnwindSafe for CheckBoxToggleButtonStyle
impl !Send for CheckBoxToggleButtonStyle
impl !Sync for CheckBoxToggleButtonStyle
impl Unpin for CheckBoxToggleButtonStyle
impl UnwindSafe for CheckBoxToggleButtonStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more