Struct winsafe::TASKDIALOGCONFIG

source ·
pub struct TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> {
Show 21 fields pub hwnd_parent: Option<&'a HWND>, pub hinstance: Option<&'b HINSTANCE>, pub flags: TDF, pub common_buttons: TDCBF, pub window_title: Option<&'c str>, pub main_icon: IconIdTd<'d>, pub main_instruction: Option<&'e str>, pub content: Option<&'f str>, pub buttons: &'g [(u16, &'h str)], pub default_button_id: u16, pub radio_buttons: &'i [(u16, &'j str)], pub default_radio_button_id: u16, pub verification_text: Option<&'k str>, pub more_info: Option<&'l str>, pub more_info_btn_expanded: Option<&'m str>, pub more_info_btn_collapsed: Option<&'n str>, pub footer_icon: IconId<'o>, pub footer_text: Option<&'p str>, pub callback: Option<PFTASKDIALOGCALLBACK>, pub callback_data: usize, pub width: u32,
}
Available on crate feature comctl only.
Expand description

TASKDIALOG_BUTTON struct.

Not all flags constants are available, some of them are automatically set as you fill other parameters.

Fields§

§hwnd_parent: Option<&'a HWND>§hinstance: Option<&'b HINSTANCE>§flags: TDF§common_buttons: TDCBF

Predefined buttons. Will be placed after the custom buttons.

§window_title: Option<&'c str>

Window caption. If not specified, the .exe name is used.

§main_icon: IconIdTd<'d>§main_instruction: Option<&'e str>

Text shown before the main content, in a larger font.

§content: Option<&'f str>

The main text of the dialog.

§buttons: &'g [(u16, &'h str)]

Command ID and button text. Will be placed before the predefined common_buttons.

§default_button_id: u16

Any ID from common_buttons or buttons.

§radio_buttons: &'i [(u16, &'j str)]

Command ID and radio button text.

§default_radio_button_id: u16

Any ID from radio_buttons.

§verification_text: Option<&'k str>

Text of the label of the verification check box.

§more_info: Option<&'l str>

Text of the collapsible section.

§more_info_btn_expanded: Option<&'m str>

Text of the button that expands/collapses more_info, when the section is expanded.

§more_info_btn_collapsed: Option<&'n str>

Text of the button that expands/collapses more_info, when the section is collapsed.

§footer_icon: IconId<'o>§footer_text: Option<&'p str>§callback: Option<PFTASKDIALOGCALLBACK>§callback_data: usize§width: u32

Trait Implementations§

source§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Default for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

source§

fn default( ) -> TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Freeze for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> RefUnwindSafe for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !Send for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !Sync for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Unpin for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> UnwindSafe for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.