Flags that can be passed to UI::InputColor*().
Flags that can be passed to UI::InputColor*().
UI::ColorEditFlags::None
(0)
UI::ColorEditFlags::NoAlpha
(2)
ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
UI::ColorEditFlags::NoPicker
(4)
ColorEdit: disable picker when clicking on color square.
UI::ColorEditFlags::NoOptions
(8)
ColorEdit: disable toggling options menu when right-clicking on inputs/small preview.
UI::ColorEditFlags::NoSmallPreview
(16)
ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
UI::ColorEditFlags::NoInputs
(32)
ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square).
UI::ColorEditFlags::NoTooltip
(64)
ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
UI::ColorEditFlags::NoLabel
(128)
ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
UI::ColorEditFlags::NoSidePreview
(256)
ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
UI::ColorEditFlags::NoDragDrop
(512)
ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
UI::ColorEditFlags::NoBorder
(1024)
ColorButton: disable border (which is enforced by default)
UI::ColorEditFlags::AlphaOpaque
(4096)
ColorEdit, ColorPicker, ColorButton: disable alpha in the preview,. Contrary to _NoAlpha it may still be edited when calling ColorEdit4()/ColorPicker4(). For ColorButton() this does the same as _NoAlpha.
UI::ColorEditFlags::AlphaNoBg
(8192)
ColorEdit, ColorPicker, ColorButton: disable rendering a checkerboard background behind transparent color.
UI::ColorEditFlags::AlphaPreviewHalf
(16384)
ColorEdit, ColorPicker, ColorButton: display half opaque / half transparent preview.
UI::ColorEditFlags::AlphaBar
(262144)
ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker.
UI::ColorEditFlags::HDR
(524288)
(WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
UI::ColorEditFlags::DisplayRGB
(1048576)
ColorEdit: override display type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex.
UI::ColorEditFlags::DisplayHSV
(2097152)
UI::ColorEditFlags::DisplayHex
(4194304)
UI::ColorEditFlags::Uint8
(8388608)
ColorEdit, ColorPicker, ColorButton: display values formatted as 0..255.
UI::ColorEditFlags::Float
(16777216)
ColorEdit, ColorPicker, ColorButton: display values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
UI::ColorEditFlags::PickerHueBar
(33554432)
ColorPicker: bar for Hue, rectangle for Sat/Value.
UI::ColorEditFlags::PickerHueWheel
(67108864)
ColorPicker: wheel for Hue, triangle for Sat/Value.
UI::ColorEditFlags::InputRGB
(134217728)
ColorEdit, ColorPicker: input and output data in RGB format.
UI::ColorEditFlags::InputHSV
(268435456)
ColorEdit, ColorPicker: input and output data in HSV format.