Struct imgui::ColorEdit [−][src]
Expand description
Builder for a color editor widget.
Examples
let ce = ColorEdit::new(im_str!("color_edit"), &mut color);
if ce.build(&ui) {
println!("The color was changed");
}
Implementations
Constructs a new color editor builder.
Replaces all current settings with the given flags.
Enables/disables the picker that appears when clicking on colored square.
Enables/disables toggling of the options menu when right-clicking on inputs or the small preview.
Enables/disables the colored square preview next to the inputs.
Enables/disables the tooltip that appears when hovering the preview.
Enables/disables display of the inline text label (the label is in any case forwarded to the tooltip and picker).
Enables/disables the vertical alpha bar/gradient in the color picker.
Sets the preview style.
(WIP) Currently only disables 0.0..1.0 limits in RGBA edition.
Note: you probably want to use ColorFormat::Float as well.
Sets the data format for input and output data.
Sets the color editor display mode.
Sets the formatting style of color components.