Struct win_task_dialog::TaskDialogConfig [−][src]
Fields
parent: HWNDinstance: HMODULEflags: TASKDIALOG_FLAGSwindow_title: Stringmain_instruction: Stringcontent: Stringverification_text: Stringexpanded_information: Stringexpanded_control_text: Stringcollapsed_control_text: Stringmain_icon: LPWSTRdialog_hwnd: HWNDWhen created dialog, the value set to HWND.
is_destroyed: boolWhen 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
impl RefUnwindSafe for TaskDialogConfig
impl !Send for TaskDialogConfig
impl !Sync for TaskDialogConfig
impl Unpin for TaskDialogConfig
impl UnwindSafe for TaskDialogConfig
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,