Struct sdl2::messagebox::MessageBoxFlag [] [src]

pub struct MessageBoxFlag {
    // some fields omitted
}

Methods

impl MessageBoxFlag

fn empty() -> MessageBoxFlag

Returns an empty set of flags.

fn all() -> MessageBoxFlag

Returns the set containing all flags.

fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

fn from_bits(bits: u32) -> Option<MessageBoxFlag>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: u32) -> MessageBoxFlag

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: MessageBoxFlag) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: MessageBoxFlag) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: MessageBoxFlag)

Inserts the specified flags in-place.

fn remove(&mut self, other: MessageBoxFlag)

Removes the specified flags in-place.

fn toggle(&mut self, other: MessageBoxFlag)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for MessageBoxFlag

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

impl BitOr for MessageBoxFlag

type Output = MessageBoxFlag

fn bitor(self, other: MessageBoxFlag) -> MessageBoxFlag

impl BitXor for MessageBoxFlag

type Output = MessageBoxFlag

fn bitxor(self, other: MessageBoxFlag) -> MessageBoxFlag

impl BitAnd for MessageBoxFlag

type Output = MessageBoxFlag

fn bitand(self, other: MessageBoxFlag) -> MessageBoxFlag

impl Sub for MessageBoxFlag

type Output = MessageBoxFlag

fn sub(self, other: MessageBoxFlag) -> MessageBoxFlag

impl Not for MessageBoxFlag

type Output = MessageBoxFlag

fn not(self) -> MessageBoxFlag

Derived Implementations

impl Hash for MessageBoxFlag

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for MessageBoxFlag

fn cmp(&self, __arg_0: &MessageBoxFlag) -> Ordering

impl PartialOrd for MessageBoxFlag

fn partial_cmp(&self, __arg_0: &MessageBoxFlag) -> Option<Ordering>

fn lt(&self, __arg_0: &MessageBoxFlag) -> bool

fn le(&self, __arg_0: &MessageBoxFlag) -> bool

fn gt(&self, __arg_0: &MessageBoxFlag) -> bool

fn ge(&self, __arg_0: &MessageBoxFlag) -> bool

impl Clone for MessageBoxFlag

fn clone(&self) -> MessageBoxFlag

fn clone_from(&mut self, source: &Self)

impl Eq for MessageBoxFlag

impl PartialEq for MessageBoxFlag

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

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

impl Copy for MessageBoxFlag