Struct fltk::enums::Shortcut [−][src]
pub struct Shortcut { /* fields omitted */ }
Defines the modifiers of virtual keycodes
Implementations
impl Shortcut
[src]
impl Shortcut
[src]pub const None: Shortcut
[src]
None
pub const Shift: Shortcut
[src]
Shift
pub const CapsLock: Shortcut
[src]
Caps Lock
pub const Ctrl: Shortcut
[src]
Ctrl
pub const Alt: Shortcut
[src]
Alt
pub const fn empty() -> Shortcut
[src]
Returns an empty set of flags
pub const fn all() -> Shortcut
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> i32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: i32) -> Option<Shortcut>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: i32) -> Shortcut
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: i32) -> Shortcut
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: Shortcut) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: Shortcut) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: Shortcut)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: Shortcut)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: Shortcut)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: Shortcut, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<Shortcut> for Shortcut
[src]
impl BitAndAssign<Shortcut> for Shortcut
[src]fn bitand_assign(&mut self, other: Shortcut)
[src]
Disables all flags disabled in the set.
impl BitOrAssign<Shortcut> for Shortcut
[src]
impl BitOrAssign<Shortcut> for Shortcut
[src]fn bitor_assign(&mut self, other: Shortcut)
[src]
Adds the set of flags.
impl BitXorAssign<Shortcut> for Shortcut
[src]
impl BitXorAssign<Shortcut> for Shortcut
[src]fn bitxor_assign(&mut self, other: Shortcut)
[src]
Toggles the set of flags.
impl Extend<Shortcut> for Shortcut
[src]
impl Extend<Shortcut> for Shortcut
[src]fn extend<T: IntoIterator<Item = Shortcut>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<Shortcut> for Shortcut
[src]
impl FromIterator<Shortcut> for Shortcut
[src]fn from_iter<T: IntoIterator<Item = Shortcut>>(iterator: T) -> Shortcut
[src]
impl PartialOrd<Shortcut> for Shortcut
[src]
impl PartialOrd<Shortcut> for Shortcut
[src]impl StructuralEq for Shortcut
[src]
impl StructuralEq for Shortcut
[src]impl StructuralPartialEq for Shortcut
[src]
impl StructuralPartialEq for Shortcut
[src]Auto Trait Implementations
impl RefUnwindSafe for Shortcut
impl RefUnwindSafe for Shortcut
impl UnwindSafe for Shortcut
impl UnwindSafe for Shortcut