Struct win_task_dialog::TaskDialogConfig[][src]

pub struct TaskDialogConfig {
    pub parent: HWND,
    pub instance: HMODULE,
    pub flags: TASKDIALOG_FLAGS,
    pub common_buttons: TASKDIALOG_COMMON_BUTTON_FLAGS,
    pub window_title: String,
    pub main_instruction: String,
    pub content: String,
    pub verification_text: String,
    pub expanded_information: String,
    pub expanded_control_text: String,
    pub collapsed_control_text: String,
    pub footer: String,
    pub buttons: Vec<TaskDialogButton>,
    pub default_button: i32,
    pub radio_buttons: Vec<TaskDialogButton>,
    pub default_radio_buttons: i32,
    pub main_icon: LPWSTR,
    pub footer_icon: LPWSTR,
    pub dialog_hwnd: HWND,
    pub is_destroyed: bool,
}

Fields

parent: HWNDinstance: HMODULEflags: TASKDIALOG_FLAGScommon_buttons: TASKDIALOG_COMMON_BUTTON_FLAGSwindow_title: Stringmain_instruction: Stringcontent: Stringverification_text: Stringexpanded_information: Stringexpanded_control_text: Stringcollapsed_control_text: Stringfooter: Stringbuttons: Vec<TaskDialogButton>default_button: i32radio_buttons: Vec<TaskDialogButton>default_radio_buttons: i32main_icon: LPWSTRfooter_icon: LPWSTRdialog_hwnd: HWND

When created dialog, the value set to HWND.

is_destroyed: bool

When close the dialog, the value set to true, default is false.

Implementations

impl TaskDialogConfig[src]

pub fn enable_process_bar(&mut self, marquee: bool)[src]

Add TDF_SHOW_PROGRESS_BAR flag on marquee is false, Add TDF_SHOW_MARQUEE_PROGRESS_BAR flag on marquee is true, https://docs.microsoft.com/en-us/windows/win32/controls/progress-bar-control

pub fn set_process_bar_marquee(&mut self, enable: bool, time: isize)[src]

Set status or animation time of marquee progress bar

pub fn set_process_bar(&mut self, percentage: usize)[src]

Set the percentage of the progress bar

Trait Implementations

impl Default for TaskDialogConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.