[−][src]Struct sdl2::messagebox::MessageBoxFlag
Methods
impl MessageBoxFlag
[src][−]
pub const ERROR: MessageBoxFlag
[src]
pub const WARNING: MessageBoxFlag
[src]
pub const INFORMATION: MessageBoxFlag
[src]
pub const fn empty() -> MessageBoxFlag
[src][−]
Returns an empty set of flags
pub const fn all() -> MessageBoxFlag
[src][−]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src][−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<MessageBoxFlag>
[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: u32) -> MessageBoxFlag
[src][−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> MessageBoxFlag
[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: MessageBoxFlag) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: MessageBoxFlag) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: MessageBoxFlag)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: MessageBoxFlag)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: MessageBoxFlag)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: MessageBoxFlag, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for MessageBoxFlag
[src][+]
impl BitAnd<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl BitAndAssign<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl BitOr<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl BitOrAssign<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl BitXor<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl BitXorAssign<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl Clone for MessageBoxFlag
[src][+]
impl Copy for MessageBoxFlag
[src]
impl Debug for MessageBoxFlag
[src][+]
impl Eq for MessageBoxFlag
[src]
impl Extend<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl FromIterator<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl Hash for MessageBoxFlag
[src][+]
impl LowerHex for MessageBoxFlag
[src][+]
impl Not for MessageBoxFlag
[src][+]
impl Octal for MessageBoxFlag
[src][+]
impl Ord for MessageBoxFlag
[src][+]
impl PartialEq<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl PartialOrd<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl StructuralEq for MessageBoxFlag
[src]
impl StructuralPartialEq for MessageBoxFlag
[src]
impl Sub<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl SubAssign<MessageBoxFlag> for MessageBoxFlag
[src][+]
impl UpperHex for MessageBoxFlag
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for MessageBoxFlag
impl Send for MessageBoxFlag
impl Sync for MessageBoxFlag
impl Unpin for MessageBoxFlag
impl UnwindSafe for MessageBoxFlag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,