Struct glfw::Modifiers[src]
pub struct Modifiers { // some fields omitted }
Key modifiers
Methods
impl Modifiers
fn empty() -> Modifiers
Returns an empty set of flags.
fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
unsafe fn from_bits(bits: c_int) -> Modifiers
Convert from underlying bit representation. Unsafe because the bits are not guaranteed to represent valid flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn intersects(&self, other: Modifiers) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: Modifiers) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: Modifiers)
Inserts the specified flags in-place.
fn remove(&mut self, other: Modifiers)
Removes the specified flags in-place.
Trait Implementations
impl BitOr<Modifiers, Modifiers> for Modifiers
impl BitAnd<Modifiers, Modifiers> for Modifiers
fn bitand(&self, other: &Modifiers) -> Modifiers
Returns the intersection between the two sets of flags.