forked from HACKERALERT/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorEditFlags.go
43 lines (40 loc) · 2.39 KB
/
ColorEditFlags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package imgui
const (
// ColorEditFlagsNone default = 0
ColorEditFlagsNone = 0
// ColorEditFlagsNoAlpha ignores Alpha component (read 3 components from the input pointer).
ColorEditFlagsNoAlpha = 1 << iota
// ColorEditFlagsNoPicker disables picker when clicking on colored square.
ColorEditFlagsNoPicker
// ColorEditFlagsNoOptions disables toggling options menu when right-clicking on inputs/small preview.
ColorEditFlagsNoOptions
// ColorEditFlagsNoSmallPreview disables colored square preview next to the inputs. (e.g. to show only the inputs)
ColorEditFlagsNoSmallPreview
// ColorEditFlagsNoInputs disables inputs sliders/text widgets (e.g. to show only the small preview colored square).
ColorEditFlagsNoInputs
// ColorEditFlagsNoTooltip disables tooltip when hovering the preview.
ColorEditFlagsNoTooltip
// ColorEditFlagsNoLabel disables display of inline text label (the label is still forwarded to the tooltip and picker).
ColorEditFlagsNoLabel
// ColorEditFlagsNoDragDrop disables drag and drop target. ColorButton: disable drag and drop source.
ColorEditFlagsNoDragDrop
// User Options (right-click on widget to change some of them). You can set application defaults using SetColorEditOptions(). The idea is that you probably don't want to override them in most of your calls, let the user choose and/or call SetColorEditOptions() during startup.
// ColorEditFlagsAlphaBar shows vertical alpha bar/gradient in picker.
ColorEditFlagsAlphaBar = 1 << 16
// ColorEditFlagsAlphaPreview displays preview as a transparent color over a checkerboard, instead of opaque.
ColorEditFlagsAlphaPreview = 1 << 17
// ColorEditFlagsAlphaPreviewHalf displays half opaque / half checkerboard, instead of opaque.
ColorEditFlagsAlphaPreviewHalf = 1 << 18
// ColorEditFlagsHDR = (WIP) surrently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
ColorEditFlagsHDR = 1 << 19
// ColorEditFlagsRGB sets the format as RGB
ColorEditFlagsRGB = 1 << 20
// ColorEditFlagsHSV sets the format as HSV
ColorEditFlagsHSV = 1 << 21
// ColorEditFlagsHEX sets the format as HEX
ColorEditFlagsHEX = 1 << 22
// ColorEditFlagsUint8 _display_ values formatted as 0..255.
ColorEditFlagsUint8 = 1 << 23
// ColorEditFlagsFloat _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
ColorEditFlagsFloat = 1 << 24
)