#[repr(C)]pub struct MsgBox {
pub _reserved: u8,
}Expand description
Static-method namespace for tfd-backed message-box dialogs.
Fields§
§_reserved: u8Implementations§
Source§impl MsgBox
impl MsgBox
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Returns a zero-initialised namespace handle. The struct itself carries no state — instances exist only so the FFI layer can hang static methods off the type.
Sourcepub fn ok(title: AzString, message: AzString, icon: MsgBoxIcon)
pub fn ok(title: AzString, message: AzString, icon: MsgBoxIcon)
“Ok” message box — title, message, icon. Quotes are stripped from the
message to work around tfd misinterpreting them as shell metacharacters
on some platforms.
Sourcepub fn ok_cancel(
title: AzString,
message: AzString,
icon: MsgBoxIcon,
default: OkCancel,
) -> OkCancel
pub fn ok_cancel( title: AzString, message: AzString, icon: MsgBoxIcon, default: OkCancel, ) -> OkCancel
“Ok / Cancel” message box — title, message, icon, default button.
Trait Implementations§
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more