[][src]Struct thorium::win32::message_box::MessageBoxTypeBuilder

pub struct MessageBoxTypeBuilder {
    pub buttons: MessageBoxButtons,
    pub icon: MessageBoxIcon,
    pub default_button: MessageBoxDefaultButton,
    pub modality: MessageBoxModality,
    pub help_button: bool,
    pub default_desktop_only: bool,
    pub right_justified_text: bool,
    pub right_to_left_text: bool,
    pub set_foreground: bool,
    pub topmost: bool,
    pub is_service_notification: bool,
}

Provides a "can't forget anything" builder for MessageBoxType values.

Fields

buttons: MessageBoxButtonsicon: MessageBoxIcondefault_button: MessageBoxDefaultButtonmodality: MessageBoxModalityhelp_button: bool

Adds a "Help" button at the end of the buttons.

default_desktop_only: bool

Forces the user to respond to this message box on the default desktop.

right_justified_text: bool

Text in the window is right-justified.

right_to_left_text: bool

Text in the window is right-to-left (Hebrew / Arabic)

set_foreground: bool

The message box becomes the foreground window

topmost: bool

The message box is created with WS_EX_TOPMOST style

is_service_notification: bool

This message box is a system service delivering a message.

The message box appears on the current desktop even if no one is logged in. If this flag is set, there must be no associated window given. This can produce interactions even on a locked desktop, so use it as sparingly as possible.

Methods

impl MessageBoxTypeBuilder[src]

pub const fn into_message_box_type(self) -> MessageBoxType[src]

Collapses all the settings into a single MessageBoxType value.

Trait Implementations

impl Copy for MessageBoxTypeBuilder[src]

impl Default for MessageBoxTypeBuilder[src]

impl Clone for MessageBoxTypeBuilder[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MessageBoxTypeBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]