pub struct ButtonMatrixControl(pub u32);Expand description
Bit-flags controlling individual button appearance and behavior.
Construct by OR-ing the associated constants:
ⓘ
let ctrl = ButtonMatrixControl::CHECKABLE | ButtonMatrixControl::CHECKED;Tuple Fields§
§0: u32Implementations§
Source§impl ButtonMatrixControl
impl ButtonMatrixControl
Sourcepub const HIDDEN: ButtonMatrixControl
pub const HIDDEN: ButtonMatrixControl
Button is hidden (not drawn, not hit-tested).
Sourcepub const DISABLED: ButtonMatrixControl
pub const DISABLED: ButtonMatrixControl
Button is disabled (drawn dimmed, not activatable).
Sourcepub const INACTIVE: ButtonMatrixControl
pub const INACTIVE: ButtonMatrixControl
Button is inactive (drawn dimmed, pointer events ignored).
Sourcepub const CHECKABLE: ButtonMatrixControl
pub const CHECKABLE: ButtonMatrixControl
Button can be toggled on/off when clicked.
Sourcepub const CHECKED: ButtonMatrixControl
pub const CHECKED: ButtonMatrixControl
Button is currently in the checked state.
Sourcepub const CLICK_TRIGGER: ButtonMatrixControl
pub const CLICK_TRIGGER: ButtonMatrixControl
Activate on pointer-down instead of pointer-up.
Sourcepub const NO_REPEAT: ButtonMatrixControl
pub const NO_REPEAT: ButtonMatrixControl
Do not repeat activation while the pointer is held.
Sourcepub const POPOVER: ButtonMatrixControl
pub const POPOVER: ButtonMatrixControl
Show as a popover (layout hint for the renderer).
Sourcepub const RECOLOR: ButtonMatrixControl
pub const RECOLOR: ButtonMatrixControl
Parse inline color codes (#RRGGBB) in the label.
Sourcepub const CUSTOM1: ButtonMatrixControl
pub const CUSTOM1: ButtonMatrixControl
App-defined custom flag 1.
Sourcepub const CUSTOM2: ButtonMatrixControl
pub const CUSTOM2: ButtonMatrixControl
App-defined custom flag 2.
Sourcepub fn contains(self, flag: ButtonMatrixControl) -> bool
pub fn contains(self, flag: ButtonMatrixControl) -> bool
Return true when flag is set.
Sourcepub fn insert(&mut self, flag: ButtonMatrixControl)
pub fn insert(&mut self, flag: ButtonMatrixControl)
OR in flag.
Sourcepub fn remove(&mut self, flag: ButtonMatrixControl)
pub fn remove(&mut self, flag: ButtonMatrixControl)
Remove flag.
Trait Implementations§
Source§impl BitOr for ButtonMatrixControl
impl BitOr for ButtonMatrixControl
Source§type Output = ButtonMatrixControl
type Output = ButtonMatrixControl
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: ButtonMatrixControl) -> ButtonMatrixControl
fn bitor(self, rhs: ButtonMatrixControl) -> ButtonMatrixControl
Performs the
| operation. Read moreSource§impl BitOrAssign for ButtonMatrixControl
impl BitOrAssign for ButtonMatrixControl
Source§fn bitor_assign(&mut self, rhs: ButtonMatrixControl)
fn bitor_assign(&mut self, rhs: ButtonMatrixControl)
Performs the
|= operation. Read moreSource§impl Clone for ButtonMatrixControl
impl Clone for ButtonMatrixControl
Source§fn clone(&self) -> ButtonMatrixControl
fn clone(&self) -> ButtonMatrixControl
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 ButtonMatrixControl
Source§impl Debug for ButtonMatrixControl
impl Debug for ButtonMatrixControl
Source§impl Default for ButtonMatrixControl
impl Default for ButtonMatrixControl
Source§fn default() -> ButtonMatrixControl
fn default() -> ButtonMatrixControl
Returns the “default value” for a type. Read more
impl Eq for ButtonMatrixControl
Source§impl PartialEq for ButtonMatrixControl
impl PartialEq for ButtonMatrixControl
impl StructuralPartialEq for ButtonMatrixControl
Auto Trait Implementations§
impl Freeze for ButtonMatrixControl
impl RefUnwindSafe for ButtonMatrixControl
impl Send for ButtonMatrixControl
impl Sync for ButtonMatrixControl
impl Unpin for ButtonMatrixControl
impl UnsafeUnpin for ButtonMatrixControl
impl UnwindSafe for ButtonMatrixControl
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