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
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ColorDialogimpl !Send for ColorDialogimpl !Sync for ColorDialogimpl Unpin for ColorDialogimpl UnwindSafe for ColorDialog