Struct button_controller::ButtonVisual
[−]
[src]
pub struct ButtonVisual { pub appear_pressed: bool, pub mouse_cursor_inside: bool, }
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.
Methods
impl ButtonVisual
[src]
fn state(&self) -> ButtonState
Gets the current button state.
Trait Implementations
impl Clone for ButtonVisual
[src]
fn clone(&self) -> ButtonVisual
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ButtonVisual
[src]
impl PartialEq for ButtonVisual
[src]
fn eq(&self, __arg_0: &ButtonVisual) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ButtonVisual) -> bool
This method tests for !=
.