pub struct InteractionState { /* private fields */ }Expand description
Interactive visual state flags on a scene node.
Implementations§
Source§impl InteractionState
impl InteractionState
pub fn get_focusable(&self) -> bool
pub fn get_mut_focusable(&mut self) -> &mut bool
pub fn set_focusable(&mut self, val: bool) -> &mut InteractionState
pub fn get_focused(&self) -> bool
pub fn get_mut_focused(&mut self) -> &mut bool
pub fn set_focused(&mut self, val: bool) -> &mut InteractionState
pub fn get_hovered(&self) -> bool
pub fn get_mut_hovered(&mut self) -> &mut bool
pub fn set_hovered(&mut self, val: bool) -> &mut InteractionState
pub fn get_pressed(&self) -> bool
pub fn get_mut_pressed(&mut self) -> &mut bool
pub fn set_pressed(&mut self, val: bool) -> &mut InteractionState
Trait Implementations§
Source§impl Clone for InteractionState
impl Clone for InteractionState
Source§fn clone(&self) -> InteractionState
fn clone(&self) -> InteractionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InteractionState
Source§impl Debug for InteractionState
impl Debug for InteractionState
Source§impl Default for InteractionState
impl Default for InteractionState
Source§fn default() -> InteractionState
fn default() -> InteractionState
Returns the “default value” for a type. Read more
impl Eq for InteractionState
Source§impl Hash for InteractionState
impl Hash for InteractionState
Source§impl PartialEq for InteractionState
impl PartialEq for InteractionState
impl StructuralPartialEq for InteractionState
Auto Trait Implementations§
impl Forget for InteractionState
impl Freeze for InteractionState
impl Move for InteractionState
impl RefUnwindSafe for InteractionState
impl Send for InteractionState
impl Sync for InteractionState
impl Unpin for InteractionState
impl UnsafeUnpin for InteractionState
impl UnwindSafe for InteractionState
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