pub struct MsgBox(/* private fields */);Expand description
Message-box options (Borland: mfXxxx): a type in the low four bits,
button flags above, and behaviour flags.
Implementations§
Source§impl MsgBox
impl MsgBox
pub const WARNING: MsgBox
pub const ERROR: MsgBox
pub const INFORMATION: MsgBox
pub const CONFIRMATION: MsgBox
pub const ABOUT: MsgBox
pub const YES_BUTTON: MsgBox
pub const NO_BUTTON: MsgBox
pub const OK_BUTTON: MsgBox
pub const CANCEL_BUTTON: MsgBox
Sourcepub const AUTO_DISMISS: MsgBox
pub const AUTO_DISMISS: MsgBox
Close the message box on its own after
MESSAGE_BOX_AUTO_DISMISS_TIMEOUT if the user has not dismissed
it. The result is the default button’s command (OK when present,
otherwise the first button).
pub const YES_NO_CANCEL: MsgBox
pub const OK_CANCEL: MsgBox
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Whether any of other’s flags is set.
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
Trait Implementations§
Source§impl BitAndAssign for MsgBox
impl BitAndAssign for MsgBox
Source§fn bitand_assign(&mut self, r: Self)
fn bitand_assign(&mut self, r: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for MsgBox
impl BitOrAssign for MsgBox
Source§fn bitor_assign(&mut self, r: Self)
fn bitor_assign(&mut self, r: Self)
Performs the
|= operation. Read moreimpl Copy for MsgBox
impl Eq for MsgBox
impl StructuralPartialEq for MsgBox
Auto Trait Implementations§
impl Freeze for MsgBox
impl RefUnwindSafe for MsgBox
impl Send for MsgBox
impl Sync for MsgBox
impl Unpin for MsgBox
impl UnsafeUnpin for MsgBox
impl UnwindSafe for MsgBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more