Struct button_controller::ButtonVisual
source · 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 more