pub struct ButtonVisual {
pub appear_pressed: bool,
pub mouse_cursor_inside: bool,
}
Expand description
Stores the current visual state of button.
Fields§
§appear_pressed: bool
Whether the button appears pressed.
mouse_cursor_inside: bool
Whether mouse cursor is inside button layout.
Implementations§
Source§impl ButtonVisual
impl ButtonVisual
Sourcepub fn state(&self) -> ButtonState
pub fn state(&self) -> ButtonState
Gets the current button state.
Trait Implementations§
Source§impl Clone for ButtonVisual
impl Clone for ButtonVisual
Source§fn clone(&self) -> ButtonVisual
fn clone(&self) -> ButtonVisual
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ButtonVisual
impl Debug for ButtonVisual
Source§impl PartialEq for ButtonVisual
impl PartialEq for ButtonVisual
impl Copy for ButtonVisual
impl StructuralPartialEq for ButtonVisual
Auto Trait Implementations§
impl Freeze for ButtonVisual
impl RefUnwindSafe for ButtonVisual
impl Send for ButtonVisual
impl Sync for ButtonVisual
impl Unpin for ButtonVisual
impl UnwindSafe for ButtonVisual
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