Struct win_task_dialog::TaskDialogConfig [−][src]
Fields
parent: HWND
instance: HMODULE
flags: TASKDIALOG_FLAGS
window_title: String
main_instruction: String
content: String
verification_text: String
expanded_information: String
expanded_control_text: String
collapsed_control_text: String
main_icon: LPWSTR
dialog_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
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>,