Struct aflak_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]
impl<'ui, 'p> ColorEdit<'ui, 'p>
pub fn new(_: &Ui<'ui>, label: &'p ImStr, value: EditableColor<'p>) -> Self
[src]
pub fn new(_: &Ui<'ui>, label: &'p ImStr, value: EditableColor<'p>) -> Self
Constructs a new color editor builder.
pub fn flags(self, flags: ImGuiColorEditFlags) -> Self
[src]
pub fn flags(self, flags: ImGuiColorEditFlags) -> Self
Replaces all current settings with the given flags.
pub fn alpha(self, value: bool) -> Self
[src]
pub fn alpha(self, value: bool) -> Self
Enables/disables the use of the alpha component.
pub fn picker(self, value: bool) -> Self
[src]
pub fn picker(self, value: bool) -> Self
Enables/disables the picker that appears when clicking on colored square.
pub fn options(self, value: bool) -> Self
[src]
pub fn options(self, value: bool) -> Self
Enables/disables toggling of the options menu when right-clicking on inputs or the small preview.
pub fn small_preview(self, value: bool) -> Self
[src]
pub fn small_preview(self, value: bool) -> Self
Enables/disables the colored square preview next to the inputs.
pub fn inputs(self, value: bool) -> Self
[src]
pub fn inputs(self, value: bool) -> Self
Enables/disables the input sliders/text widgets.
pub fn tooltip(self, value: bool) -> Self
[src]
pub fn tooltip(self, value: bool) -> Self
Enables/disables the tooltip that appears when hovering the preview.
pub fn label(self, value: bool) -> Self
[src]
pub fn label(self, value: bool) -> Self
Enables/disables display of the inline text label (the label is in any case forwarded to the tooltip and picker).
pub fn alpha_bar(self, value: bool) -> Self
[src]
pub fn alpha_bar(self, value: bool) -> Self
Enables/disables the vertical alpha bar/gradient in the color picker.
pub fn preview(self, preview: ColorPreview) -> Self
[src]
pub fn preview(self, preview: ColorPreview) -> Self
Sets the preview style.
pub fn hdr(self, value: bool) -> Self
[src]
pub fn hdr(self, value: bool) -> Self
(WIP) Currently only disables 0.0..1.0 limits in RGBA edition.
Note: you probably want to use ColorFormat::Float as well.
pub fn mode(self, mode: ColorEditMode) -> Self
[src]
pub fn mode(self, mode: ColorEditMode) -> Self
Sets the color editor mode.
pub fn format(self, format: ColorFormat) -> Self
[src]
pub fn format(self, format: ColorFormat) -> Self
Sets the formatting style of color components.
pub fn build(self) -> bool
[src]
pub fn build(self) -> bool
Builds the color editor.