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

fn bitor(&self, other: &Modifiers) -> Modifiers

Returns the union of the two sets of flags.

impl BitAnd<Modifiers, Modifiers> for Modifiers

fn bitand(&self, other: &Modifiers) -> Modifiers

Returns the intersection between the two sets of flags.

impl Sub<Modifiers, Modifiers> for Modifiers

fn sub(&self, other: &Modifiers) -> Modifiers

Returns the set difference of the two sets of flags.

impl Show for Modifiers

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Hash for Modifiers

fn hash(&self, __arg_0: &mut SipState)

impl Clone for Modifiers

fn clone(&self) -> Modifiers

impl TotalEq for Modifiers

impl Eq for Modifiers

fn eq(&self, __arg_0: &Modifiers) -> bool

fn ne(&self, __arg_0: &Modifiers) -> bool