forked from AllenDang/giu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StyleIDs_string.go
127 lines (118 loc) · 5.71 KB
/
StyleIDs_string.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Code generated by "stringer -type=StyleColorID,StyleVarID -output=StyleIDs_string.go -linecomment"; DO NOT EDIT.
package giu
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[StyleColorText-0]
_ = x[StyleColorTextDisabled-1]
_ = x[StyleColorWindowBg-2]
_ = x[StyleColorChildBg-3]
_ = x[StyleColorPopupBg-4]
_ = x[StyleColorBorder-5]
_ = x[StyleColorBorderShadow-6]
_ = x[StyleColorFrameBg-7]
_ = x[StyleColorFrameBgHovered-8]
_ = x[StyleColorFrameBgActive-9]
_ = x[StyleColorTitleBg-10]
_ = x[StyleColorTitleBgActive-11]
_ = x[StyleColorTitleBgCollapsed-12]
_ = x[StyleColorMenuBarBg-13]
_ = x[StyleColorScrollbarBg-14]
_ = x[StyleColorScrollbarGrab-15]
_ = x[StyleColorScrollbarGrabHovered-16]
_ = x[StyleColorScrollbarGrabActive-17]
_ = x[StyleColorCheckMark-18]
_ = x[StyleColorSliderGrab-19]
_ = x[StyleColorSliderGrabActive-20]
_ = x[StyleColorButton-21]
_ = x[StyleColorButtonHovered-22]
_ = x[StyleColorButtonActive-23]
_ = x[StyleColorHeader-24]
_ = x[StyleColorHeaderHovered-25]
_ = x[StyleColorHeaderActive-26]
_ = x[StyleColorSeparator-27]
_ = x[StyleColorSeparatorHovered-28]
_ = x[StyleColorSeparatorActive-29]
_ = x[StyleColorResizeGrip-30]
_ = x[StyleColorResizeGripHovered-31]
_ = x[StyleColorResizeGripActive-32]
_ = x[StyleColorTab-33]
_ = x[StyleColorTabHovered-34]
_ = x[StyleColorTabActive-35]
_ = x[StyleColorTabUnfocused-36]
_ = x[StyleColorTabUnfocusedActive-37]
_ = x[StyleColorPlotLines-38]
_ = x[StyleColorPlotLinesHovered-39]
_ = x[StyleColorProgressBarActive-39]
_ = x[StyleColorPlotHistogram-40]
_ = x[StyleColorPlotHistogramHovered-41]
_ = x[StyleColorTableHeaderBg-42]
_ = x[StyleColorTableBorderStrong-43]
_ = x[StyleColorTableBorderLight-44]
_ = x[StyleColorTableRowBg-45]
_ = x[StyleColorTableRowBgAlt-46]
_ = x[StyleColorTextSelectedBg-47]
_ = x[StyleColorDragDropTarget-48]
_ = x[StyleColorNavHighlight-49]
_ = x[StyleColorNavWindowingHighlight-50]
_ = x[StyleColorNavWindowingDimBg-51]
_ = x[StyleColorModalWindowDimBg-52]
}
const _StyleColorID_name = "colordisabled-colorbackground-colorchild-background-colorpopup-background-colorborder-colorborder-shadow-colorframe-background-colorframe-background-hovered-colorframe-background-active-colortitle-background-colortitle-background-active-colortitle-background-collapsed-colormenu-bar-background-colorscrollbar-background-colorscrollbar-grab-colorscrollbar-grab-hovered-colorscrollbar-grab-active-colorcheckmark-colorslider-grab-colorslider-grab-active-colorbutton-colorbutton-hovered-colorbutton-active-colorheader-colorheader-hovered-colorheader-active-colorseparator-colorseparator-hovered-colorseparator-active-colorresize-grip-colorresize-grip-hovered-colorresize-grip-active-colortab-colortab-hovered-colortab-active-colortab-unfocused-colortab-unfocused-active-colorplot-lines-colorplot-lines-hovered-colorplot-histogram-colorplot-histogram-hovered-colortable-header-background-colortable-border-strong-colortable-border-light-colortable-row-background-colortable-row-alternate-background-colortext-selected-background-colordrag-drop-target-colornavigation-highlight-colorwindowing-highlight-colorwindowing-dim-background-colormodal-window-dim-background-color"
var _StyleColorID_index = [...]uint16{0, 5, 19, 35, 57, 79, 91, 110, 132, 162, 191, 213, 242, 274, 299, 325, 345, 373, 400, 415, 432, 456, 468, 488, 507, 519, 539, 558, 573, 596, 618, 635, 660, 684, 693, 710, 726, 745, 771, 787, 811, 831, 859, 888, 913, 937, 963, 999, 1029, 1051, 1077, 1102, 1132, 1165}
func (i StyleColorID) String() string {
if i < 0 || i >= StyleColorID(len(_StyleColorID_index)-1) {
return "StyleColorID(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _StyleColorID_name[_StyleColorID_index[i]:_StyleColorID_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[StyleVarAlpha-0]
_ = x[StyleVarDisabledAlpha-1]
_ = x[StyleVarWindowPadding-2]
_ = x[StyleVarWindowRounding-3]
_ = x[StyleVarWindowBorderSize-4]
_ = x[StyleVarWindowMinSize-5]
_ = x[StyleVarWindowTitleAlign-6]
_ = x[StyleVarChildRounding-7]
_ = x[StyleVarChildBorderSize-8]
_ = x[StyleVarPopupRounding-9]
_ = x[StyleVarPopupBorderSize-10]
_ = x[StyleVarFramePadding-11]
_ = x[StyleVarFrameRounding-12]
_ = x[StyleVarFrameBorderSize-13]
_ = x[StyleVarItemSpacing-14]
_ = x[StyleVarItemInnerSpacing-15]
_ = x[StyleVarIndentSpacing-16]
_ = x[StyleVarScrollbarSize-18]
_ = x[StyleVarScrollbarRounding-19]
_ = x[StyleVarGrabMinSize-20]
_ = x[StyleVarGrabRounding-21]
_ = x[StyleVarTabRounding-22]
_ = x[StyleVarButtonTextAlign-23]
_ = x[StyleVarSelectableTextAlign-24]
}
const (
_StyleVarID_name_0 = "alphadisabled-alphawindow-paddingwindow-roundingwindow-border-sizewindow-min-sizewindow-title-alignchild-roundingchild-border-sizepopup-roundingpopup-border-sizeframe-paddingframe-roundingframe-border-sizeitem-spacingitem-inner-spacingindent-spacing"
_StyleVarID_name_1 = "scrollbar-sizescrollbar-roundinggrab-min-sizegrab-roundingtab-roundingbutton-text-alignselectable-text-align"
)
var (
_StyleVarID_index_0 = [...]uint8{0, 5, 19, 33, 48, 66, 81, 99, 113, 130, 144, 161, 174, 188, 205, 217, 235, 249}
_StyleVarID_index_1 = [...]uint8{0, 14, 32, 45, 58, 70, 87, 108}
)
func (i StyleVarID) String() string {
switch {
case 0 <= i && i <= 16:
return _StyleVarID_name_0[_StyleVarID_index_0[i]:_StyleVarID_index_0[i+1]]
case 18 <= i && i <= 24:
i -= 18
return _StyleVarID_name_1[_StyleVarID_index_1[i]:_StyleVarID_index_1[i+1]]
default:
return "StyleVarID(" + strconv.FormatInt(int64(i), 10) + ")"
}
}