pub struct ColorEditFlags(/* private fields */);Expand description
Flags for color edit widgets
Implementations§
Source§impl ColorEditFlags
impl ColorEditFlags
Sourcepub const NO_ALPHA: Self
pub const NO_ALPHA: Self
ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
Sourcepub const NO_OPTIONS: Self
pub const NO_OPTIONS: Self
ColorEdit: disable toggling options menu when right-clicking on inputs/small preview.
Sourcepub const NO_SMALL_PREVIEW: Self
pub const NO_SMALL_PREVIEW: Self
ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
Sourcepub const NO_INPUTS: Self
pub const NO_INPUTS: Self
ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square).
Sourcepub const NO_TOOLTIP: Self
pub const NO_TOOLTIP: Self
ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
Sourcepub const NO_LABEL: Self
pub const NO_LABEL: Self
ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
Sourcepub const NO_SIDE_PREVIEW: Self
pub const NO_SIDE_PREVIEW: Self
ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
Sourcepub const NO_DRAG_DROP: Self
pub const NO_DRAG_DROP: Self
ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
Sourcepub const ALPHA_PREVIEW: Self
pub const ALPHA_PREVIEW: Self
ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque.
Sourcepub const ALPHA_PREVIEW_HALF: Self
pub const ALPHA_PREVIEW_HALF: Self
ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque.
Sourcepub const HDR: Self
pub const HDR: Self
(WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
Sourcepub const DISPLAY_RGB: Self
pub const DISPLAY_RGB: Self
ColorEdit: override display type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
Sourcepub const DISPLAY_HSV: Self
pub const DISPLAY_HSV: Self
ColorEdit: override display type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
Sourcepub const DISPLAY_HEX: Self
pub const DISPLAY_HEX: Self
ColorEdit: override display type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
Sourcepub const FLOAT: Self
pub const FLOAT: Self
ColorEdit, ColorPicker, ColorButton: display values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
Sourcepub const PICKER_HUE_BAR: Self
pub const PICKER_HUE_BAR: Self
ColorPicker: bar for Hue, rectangle for Sat/Value.
Sourcepub const PICKER_HUE_WHEEL: Self
pub const PICKER_HUE_WHEEL: Self
ColorPicker: wheel for Hue, triangle for Sat/Value.
Trait Implementations§
Source§impl BitAnd for ColorEditFlags
impl BitAnd for ColorEditFlags
Source§impl BitAndAssign for ColorEditFlags
impl BitAndAssign for ColorEditFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ColorEditFlags
impl BitOr for ColorEditFlags
Source§impl BitOrAssign for ColorEditFlags
impl BitOrAssign for ColorEditFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for ColorEditFlags
impl BitXor for ColorEditFlags
Source§impl BitXorAssign for ColorEditFlags
impl BitXorAssign for ColorEditFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ColorEditFlags
impl Clone for ColorEditFlags
Source§fn clone(&self) -> ColorEditFlags
fn clone(&self) -> ColorEditFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more