Struct imgui::ColorEdit [] [src]

#[must_use]
pub struct ColorEdit<'ui, 'p> { /* fields omitted */ }

Builder for a color editor widget.

Methods

impl<'ui, 'p> ColorEdit<'ui, 'p>
[src]

[src]

Constructs a new color editor builder.

[src]

Replaces all current settings with the given flags.

[src]

Enables/disables the use of the alpha component.

[src]

Enables/disables the picker that appears when clicking on colored square.

[src]

Enables/disables toggling of the options menu when right-clicking on inputs or the small preview.

[src]

Enables/disables the colored square preview next to the inputs.

[src]

Enables/disables the input sliders/text widgets.

[src]

Enables/disables the tooltip that appears when hovering the preview.

[src]

Enables/disables display of the inline text label (the label is in any case forwarded to the tooltip and picker).

[src]

Enables/disables the vertical alpha bar/gradient in the color picker.

[src]

Sets the preview style.

[src]

(WIP) Currently only disables 0.0..1.0 limits in RGBA edition.

Note: you probably want to use ColorFormat::Float as well.

[src]

Sets the color editor mode.

[src]

Sets the formatting style of color components.

[src]

Builds the color editor.