Bug 458861. Validate TrueType headers before activating downloaded font. r=roc, sr...
[wine-gecko.git] / gfx / public / nsThemeConstants.h
blob9812a454f9ed8a9397e112bb4fb570d50a171c27
1 // No appearance at all.
2 #define NS_THEME_NONE 0
4 // A typical dialog button.
5 #define NS_THEME_BUTTON 1
7 // A radio element within a radio group.
8 #define NS_THEME_RADIO 2
10 // A checkbox element.
11 #define NS_THEME_CHECKBOX 3
13 // A small radio button, for HTML forms
14 #define NS_THEME_RADIO_SMALL 4
16 // A small checkbox, for HTML forms
17 #define NS_THEME_CHECKBOX_SMALL 5
19 // A rectangular button that contains complex content
20 // like images (e.g. HTML <button> elements)
21 #define NS_THEME_BUTTON_BEVEL 7
23 // The toolbox that contains the toolbars.
24 #define NS_THEME_TOOLBOX 11
26 // A toolbar in an application window.
27 #define NS_THEME_TOOLBAR 12
29 // A single toolbar button (with no associated dropdown)
30 #define NS_THEME_TOOLBAR_BUTTON 13
32 // A dual toolbar button (e.g., a Back button with a dropdown)
33 #define NS_THEME_TOOLBAR_DUAL_BUTTON 14
35 // The dropdown portion of a toolbar button
36 #define NS_THEME_TOOLBAR_BUTTON_DROPDOWN 15
38 // A separator. Can be horizontal or vertical.
39 #define NS_THEME_TOOLBAR_SEPARATOR 16
41 // The gripper for a toolbar.
42 #define NS_THEME_TOOLBAR_GRIPPER 17
44 // A splitter. Can be horizontal or vertical.
45 #define NS_THEME_SPLITTER 19
47 // A status bar in a main application window.
48 #define NS_THEME_STATUSBAR 21
50 // A single pane of a status bar.
51 #define NS_THEME_STATUSBAR_PANEL 22
53 // The resizer background area in a status bar
54 // for the resizer widget in the corner of a window.
55 #define NS_THEME_STATUSBAR_RESIZER_PANEL 23
57 // The resizer itself.
58 #define NS_THEME_RESIZER 24
60 // List boxes
61 #define NS_THEME_LISTBOX 31
63 // A listbox item
64 #define NS_THEME_LISTBOX_LISTITEM 32
66 // A tree widget
67 #define NS_THEME_TREEVIEW 41
69 // A tree item
70 #define NS_THEME_TREEVIEW_TREEITEM 42
72 // A tree widget twisty
73 #define NS_THEME_TREEVIEW_TWISTY 43
75 // A tree widget branch line
76 #define NS_THEME_TREEVIEW_LINE 44
78 // A listbox or tree widget header
79 #define NS_THEME_TREEVIEW_HEADER 45
81 // An individual header cell
82 #define NS_THEME_TREEVIEW_HEADER_CELL 46
84 // The sort arrow for a header.
85 #define NS_THEME_TREEVIEW_HEADER_SORTARROW 47
87 // Open tree widget twisty
88 #define NS_THEME_TREEVIEW_TWISTY_OPEN 48
90 // A horizontal progress bar.
91 #define NS_THEME_PROGRESSBAR 51
93 // The progress bar's progress indicator
94 #define NS_THEME_PROGRESSBAR_CHUNK 52
96 // A vertical progress bar.
97 #define NS_THEME_PROGRESSBAR_VERTICAL 53
99 // A vertical progress chunk
100 #define NS_THEME_PROGRESSBAR_CHUNK_VERTICAL 54
102 // A single tab in a tab widget.
103 #define NS_THEME_TAB 61
105 // A single pane (inside the tabpanels container)
106 #define NS_THEME_TAB_PANEL 62
108 // The tab just before the selection
109 #define NS_THEME_TAB_LEFT_EDGE 63
111 // The tab just after the selection
112 #define NS_THEME_TAB_RIGHT_EDGE 64
114 // The tab panels container.
115 #define NS_THEME_TAB_PANELS 65
117 // The tabs scroll arrows (left/right)
118 #define NS_THEME_TAB_SCROLLARROW_BACK 66
119 #define NS_THEME_TAB_SCROLLARROW_FORWARD 67
121 // A tooltip
122 #define NS_THEME_TOOLTIP 71
124 // A spin control (up/down control for time/date pickers)
125 #define NS_THEME_SPINNER 72
127 // The up button of a spin control
128 #define NS_THEME_SPINNER_UP_BUTTON 73
130 // The down button of a spin control
131 #define NS_THEME_SPINNER_DOWN_BUTTON 74
133 // The textfield of a spin control
134 #define NS_THEME_SPINNER_TEXTFIELD 75
136 // A scrollbar.
137 #define NS_THEME_SCROLLBAR 80
139 // A small scrollbar.
140 #define NS_THEME_SCROLLBAR_SMALL 81
142 // A scrollbar button (up/down/left/right)
143 #define NS_THEME_SCROLLBAR_BUTTON_UP 82
144 #define NS_THEME_SCROLLBAR_BUTTON_DOWN 83
145 #define NS_THEME_SCROLLBAR_BUTTON_LEFT 84
146 #define NS_THEME_SCROLLBAR_BUTTON_RIGHT 85
148 // The scrollbar track
149 #define NS_THEME_SCROLLBAR_TRACK_HORIZONTAL 86
150 #define NS_THEME_SCROLLBAR_TRACK_VERTICAL 87
152 // The scrollbar thumb
153 #define NS_THEME_SCROLLBAR_THUMB_HORIZONTAL 88
154 #define NS_THEME_SCROLLBAR_THUMB_VERTICAL 89
156 // A textfield or text area
157 #define NS_THEME_TEXTFIELD 95
159 // The caret of a text area
160 #define NS_THEME_TEXTFIELD_CARET 96
162 // A multiline text field
163 #define NS_THEME_TEXTFIELD_MULTILINE 97
165 // A dropdown list.
166 #define NS_THEME_DROPDOWN 101
168 // The dropdown button(s) that open up a dropdown list.
169 #define NS_THEME_DROPDOWN_BUTTON 102
171 // The text part of a dropdown list, to left of button
172 #define NS_THEME_DROPDOWN_TEXT 103
174 // An editable textfield with a dropdown list (a combobox)
175 #define NS_THEME_DROPDOWN_TEXTFIELD 104
177 // A slider
178 #define NS_THEME_SCALE_HORIZONTAL 111
179 #define NS_THEME_SCALE_VERTICAL 112
181 // A slider's thumb
182 #define NS_THEME_SCALE_THUMB_HORIZONTAL 113
183 #define NS_THEME_SCALE_THUMB_VERTICAL 114
185 // If the platform supports it, the left/right chunks
186 // of the slider thumb
187 #define NS_THEME_SCALE_THUMB_START 115
188 #define NS_THEME_SCALE_THUMB_END 116
190 // The ticks for a slider.
191 #define NS_THEME_SCALE_TICK 117
193 // A groupbox
194 #define NS_THEME_GROUPBOX 149
196 // A generic container that always repaints on state
197 // changes. This is a hack to make checkboxes and
198 // radio buttons work.
199 #define NS_THEME_CHECKBOX_CONTAINER 150
200 #define NS_THEME_RADIO_CONTAINER 151
202 // The label part of a checkbox or radio button, used for painting
203 // a focus outline.
204 #define NS_THEME_CHECKBOX_LABEL 152
205 #define NS_THEME_RADIO_LABEL 153
207 // The focus outline box inside of a button
208 #define NS_THEME_BUTTON_FOCUS 154
210 // Window and dialog backgrounds
211 #define NS_THEME_WINDOW 200
212 #define NS_THEME_DIALOG 201
214 // Menu Bar background
215 #define NS_THEME_MENUBAR 210
216 // Menu Popup background
217 #define NS_THEME_MENUPOPUP 211
218 // <menu> and <menuitem> appearances
219 #define NS_THEME_MENUITEM 212
220 #define NS_THEME_CHECKMENUITEM 213
221 #define NS_THEME_RADIOMENUITEM 214
223 // menu checkbox/radio appearances
224 #define NS_THEME_MENUCHECKBOX 215
225 #define NS_THEME_MENURADIO 216
226 #define NS_THEME_MENUSEPARATOR 217
227 #define NS_THEME_MENUARROW 218
228 // An image in the menu gutter, like in bookmarks or history
229 #define NS_THEME_MENUIMAGE 219
230 // For text on non-iconic menuitems only
231 #define NS_THEME_MENUITEMTEXT 220
233 // Vista Rebars
234 #define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX 221
235 #define NS_THEME_WIN_MEDIA_TOOLBOX 222
236 #define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX 223
238 // Unified toolbar on the Mac
239 #define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR 224
241 // Vista glass
242 #define NS_THEME_WIN_GLASS 230