pub struct ToggleIconButton { /* private fields */ }
Implementations§
source§impl ToggleIconButton
impl ToggleIconButton
pub fn new<P: Into<Coord>>( xy: P, tooltip_text: &str, tooltip_positioning: Positioning, icon: IndexedImage, style: &ToggleIconButtonStyle ) -> Self
source§impl ToggleIconButton
impl ToggleIconButton
pub fn is_selected(&self) -> bool
pub fn set_selected(&mut self, value: bool)
pub fn on_mouse_click(&mut self, xy: Coord) -> bool
Trait Implementations§
source§impl Debug for ToggleIconButton
impl Debug for ToggleIconButton
Auto Trait Implementations§
impl RefUnwindSafe for ToggleIconButton
impl Send for ToggleIconButton
impl Sync for ToggleIconButton
impl Unpin for ToggleIconButton
impl UnwindSafe for ToggleIconButton
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