pub struct InteractionFlags {
pub focusable: bool,
pub scrollable: bool,
pub draggable: bool,
}Expand description
Flags describing how an interactive region participates in input/focus.
Fields§
§focusable: boolRegion can receive focus (e.g. clicks set focus).
scrollable: boolRegion should react to mouse wheel scrolling if hovered.
draggable: boolRegion can be dragged (used by sliders/scrollbars, etc.).
Implementations§
Trait Implementations§
Source§impl Clone for InteractionFlags
impl Clone for InteractionFlags
Source§fn clone(&self) -> InteractionFlags
fn clone(&self) -> InteractionFlags
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 InteractionFlags
Source§impl Debug for InteractionFlags
impl Debug for InteractionFlags
Source§impl Default for InteractionFlags
impl Default for InteractionFlags
Source§fn default() -> InteractionFlags
fn default() -> InteractionFlags
Returns the “default value” for a type. Read more
impl Eq for InteractionFlags
Source§impl Hash for InteractionFlags
impl Hash for InteractionFlags
Source§impl PartialEq for InteractionFlags
impl PartialEq for InteractionFlags
Source§fn eq(&self, other: &InteractionFlags) -> bool
fn eq(&self, other: &InteractionFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InteractionFlags
Auto Trait Implementations§
impl Freeze for InteractionFlags
impl RefUnwindSafe for InteractionFlags
impl Send for InteractionFlags
impl Sync for InteractionFlags
impl Unpin for InteractionFlags
impl UnsafeUnpin for InteractionFlags
impl UnwindSafe for InteractionFlags
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