Struct native_windows_gui::ColorDialog[][src]

pub struct ColorDialog { /* fields omitted */ }
Expand description

Displays a modal dialog box that allows the user to choose a specific color value.

Implementations

Execute the color dialog. This function will return true if the user select a color or false if the dialog is cancelled

Return the color choosen by the user. The returned color is a [r, g, b] array. If the dialog was never executed, this returns [0, 0, 0] (black);

Sets one of the saved color in the dialog. A dialog supports up to 16 colors (index: 0 to 15).

Panics: - If the index is out of bound

Returns one of the saved color in the dialog. A dialog supports up to 16 colors (index: 0 to 15).

Panics: - If the index is out of bound

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.