gfx/src/nsThemeConstants.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/src/nsThemeConstants.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,281 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +// No appearance at all.
     1.9 +#define NS_THEME_NONE                                      0
    1.10 +
    1.11 +// A typical dialog button.
    1.12 +#define NS_THEME_BUTTON                                    1
    1.13 +
    1.14 +// A radio element within a radio group.
    1.15 +#define NS_THEME_RADIO                                     2
    1.16 +
    1.17 +// A checkbox element. 
    1.18 +#define NS_THEME_CHECKBOX                                  3
    1.19 +
    1.20 +// A rectangular button that contains complex content
    1.21 +// like images (e.g. HTML <button> elements)
    1.22 +#define NS_THEME_BUTTON_BEVEL                              7
    1.23 +
    1.24 +// The toolbox that contains the toolbars.
    1.25 +#define NS_THEME_TOOLBOX                                   11
    1.26 +
    1.27 +// A toolbar in an application window.
    1.28 +#define NS_THEME_TOOLBAR                                   12
    1.29 +
    1.30 +// A single toolbar button (with no associated dropdown)
    1.31 +#define NS_THEME_TOOLBAR_BUTTON                            13
    1.32 +
    1.33 +// A dual toolbar button (e.g., a Back button with a dropdown)
    1.34 +#define NS_THEME_TOOLBAR_DUAL_BUTTON                       14
    1.35 +
    1.36 +// The dropdown portion of a toolbar button
    1.37 +#define NS_THEME_TOOLBAR_BUTTON_DROPDOWN                   15
    1.38 +
    1.39 +// Various arrows that go in buttons
    1.40 +#define NS_THEME_BUTTON_ARROW_UP                           16
    1.41 +#define NS_THEME_BUTTON_ARROW_DOWN                         17
    1.42 +#define NS_THEME_BUTTON_ARROW_NEXT                         18
    1.43 +#define NS_THEME_BUTTON_ARROW_PREVIOUS                     19
    1.44 +
    1.45 +// A separator.  Can be horizontal or vertical.
    1.46 +#define NS_THEME_TOOLBAR_SEPARATOR                         20
    1.47 +
    1.48 +// The gripper for a toolbar.
    1.49 +#define NS_THEME_TOOLBAR_GRIPPER                           21
    1.50 +
    1.51 +// A splitter.  Can be horizontal or vertical.
    1.52 +#define NS_THEME_SPLITTER                                  22
    1.53 +
    1.54 +// A status bar in a main application window.
    1.55 +#define NS_THEME_STATUSBAR                                 23
    1.56 +
    1.57 +// A single pane of a status bar.
    1.58 +#define NS_THEME_STATUSBAR_PANEL                           24
    1.59 +
    1.60 +// The resizer background area in a status bar 
    1.61 +// for the resizer widget in the corner of a window.
    1.62 +#define NS_THEME_STATUSBAR_RESIZER_PANEL                   25
    1.63 +
    1.64 +// The resizer itself.
    1.65 +#define NS_THEME_RESIZER                                   26
    1.66 +
    1.67 +// List boxes
    1.68 +#define NS_THEME_LISTBOX                                   31
    1.69 +
    1.70 +// A listbox item
    1.71 +#define NS_THEME_LISTBOX_LISTITEM                          32
    1.72 +
    1.73 +// A tree widget
    1.74 +#define NS_THEME_TREEVIEW                                  41
    1.75 +
    1.76 +// A tree item
    1.77 +#define NS_THEME_TREEVIEW_TREEITEM                         42
    1.78 +
    1.79 +// A tree widget twisty
    1.80 +#define NS_THEME_TREEVIEW_TWISTY                           43
    1.81 +
    1.82 +// A tree widget branch line
    1.83 +#define NS_THEME_TREEVIEW_LINE                             44
    1.84 +
    1.85 +// A listbox or tree widget header
    1.86 +#define NS_THEME_TREEVIEW_HEADER                           45
    1.87 +
    1.88 +// An individual header cell
    1.89 +#define NS_THEME_TREEVIEW_HEADER_CELL                      46
    1.90 +
    1.91 +// The sort arrow for a header.
    1.92 +#define NS_THEME_TREEVIEW_HEADER_SORTARROW                 47
    1.93 +
    1.94 +// Open tree widget twisty
    1.95 +#define NS_THEME_TREEVIEW_TWISTY_OPEN                      48
    1.96 +
    1.97 +// A horizontal progress bar.
    1.98 +#define NS_THEME_PROGRESSBAR                               51
    1.99 +
   1.100 +// The progress bar's progress indicator
   1.101 +#define NS_THEME_PROGRESSBAR_CHUNK                         52
   1.102 +
   1.103 +// A vertical progress bar.
   1.104 +#define NS_THEME_PROGRESSBAR_VERTICAL                      53
   1.105 +
   1.106 +// A vertical progress chunk
   1.107 +#define NS_THEME_PROGRESSBAR_CHUNK_VERTICAL                54
   1.108 +
   1.109 +// A horizontal meter bar.
   1.110 +#define NS_THEME_METERBAR                                  55
   1.111 +
   1.112 +// The meter bar's meter indicator
   1.113 +#define NS_THEME_METERBAR_CHUNK                            56
   1.114 +
   1.115 +// A single tab in a tab widget.
   1.116 +#define NS_THEME_TAB                                       61
   1.117 +
   1.118 +// A single pane (inside the tabpanels container)
   1.119 +#define NS_THEME_TAB_PANEL                                 62
   1.120 +
   1.121 +// The tab panels container.
   1.122 +#define NS_THEME_TAB_PANELS                                65
   1.123 +
   1.124 +// The tabs scroll arrows (left/right)
   1.125 +#define NS_THEME_TAB_SCROLLARROW_BACK                      66
   1.126 +#define NS_THEME_TAB_SCROLLARROW_FORWARD                   67
   1.127 +
   1.128 +// A tooltip
   1.129 +#define NS_THEME_TOOLTIP                                   71
   1.130 +
   1.131 +// A spin control (up/down control for time/date pickers)
   1.132 +#define NS_THEME_SPINNER                                   72
   1.133 +
   1.134 +// The up button of a spin control
   1.135 +#define NS_THEME_SPINNER_UP_BUTTON                         73
   1.136 +
   1.137 +// The down button of a spin control
   1.138 +#define NS_THEME_SPINNER_DOWN_BUTTON                       74
   1.139 +
   1.140 +// The textfield of a spin control
   1.141 +#define NS_THEME_SPINNER_TEXTFIELD                         75
   1.142 +
   1.143 +// For HTML's <input type=number>
   1.144 +#define NS_THEME_NUMBER_INPUT                              76
   1.145 +
   1.146 +// A scrollbar.
   1.147 +#define NS_THEME_SCROLLBAR                                 80
   1.148 +
   1.149 +// A small scrollbar.
   1.150 +#define NS_THEME_SCROLLBAR_SMALL                           81
   1.151 +
   1.152 +// A scrollbar button (up/down/left/right)
   1.153 +#define NS_THEME_SCROLLBAR_BUTTON_UP                       82
   1.154 +#define NS_THEME_SCROLLBAR_BUTTON_DOWN                     83
   1.155 +#define NS_THEME_SCROLLBAR_BUTTON_LEFT                     84
   1.156 +#define NS_THEME_SCROLLBAR_BUTTON_RIGHT                    85
   1.157 +
   1.158 +// The scrollbar track
   1.159 +#define NS_THEME_SCROLLBAR_TRACK_HORIZONTAL                86
   1.160 +#define NS_THEME_SCROLLBAR_TRACK_VERTICAL                  87
   1.161 +
   1.162 +// The scrollbar thumb
   1.163 +#define NS_THEME_SCROLLBAR_THUMB_HORIZONTAL                88
   1.164 +#define NS_THEME_SCROLLBAR_THUMB_VERTICAL                  89
   1.165 +
   1.166 +// A non-disappearing scrollbar.
   1.167 +#define NS_THEME_SCROLLBAR_NON_DISAPPEARING                90
   1.168 +
   1.169 +// A textfield or text area
   1.170 +#define NS_THEME_TEXTFIELD                                 95
   1.171 +
   1.172 +// The caret of a text area
   1.173 +#define NS_THEME_TEXTFIELD_CARET                           96
   1.174 +
   1.175 +// A multiline text field
   1.176 +#define NS_THEME_TEXTFIELD_MULTILINE                       97
   1.177 +
   1.178 +// A searchfield
   1.179 +#define NS_THEME_SEARCHFIELD                               98
   1.180 +
   1.181 +// A dropdown list.
   1.182 +#define NS_THEME_DROPDOWN                                  101
   1.183 +
   1.184 +// The dropdown button(s) that open up a dropdown list.
   1.185 +#define NS_THEME_DROPDOWN_BUTTON                           102
   1.186 +
   1.187 +// The text part of a dropdown list, to left of button
   1.188 +#define NS_THEME_DROPDOWN_TEXT                             103
   1.189 +
   1.190 +// An editable textfield with a dropdown list (a combobox)
   1.191 +#define NS_THEME_DROPDOWN_TEXTFIELD                        104
   1.192 +
   1.193 +// A slider
   1.194 +#define NS_THEME_SCALE_HORIZONTAL                         111
   1.195 +#define NS_THEME_SCALE_VERTICAL                           112
   1.196 +
   1.197 +// A slider's thumb
   1.198 +#define NS_THEME_SCALE_THUMB_HORIZONTAL                   113
   1.199 +#define NS_THEME_SCALE_THUMB_VERTICAL                     114
   1.200 +
   1.201 +// If the platform supports it, the left/right chunks
   1.202 +// of the slider thumb
   1.203 +#define NS_THEME_SCALE_THUMB_START                        115
   1.204 +#define NS_THEME_SCALE_THUMB_END                          116
   1.205 +
   1.206 +// The ticks for a slider.
   1.207 +#define NS_THEME_SCALE_TICK                               117
   1.208 +
   1.209 +// nsRangeFrame and its subparts
   1.210 +#define NS_THEME_RANGE                                    120
   1.211 +#define NS_THEME_RANGE_THUMB                              121
   1.212 +
   1.213 +// A groupbox
   1.214 +#define NS_THEME_GROUPBOX                                  149
   1.215 +
   1.216 +// A generic container that always repaints on state
   1.217 +// changes.  This is a hack to make checkboxes and
   1.218 +// radio buttons work.
   1.219 +#define NS_THEME_CHECKBOX_CONTAINER                        150
   1.220 +#define NS_THEME_RADIO_CONTAINER                           151
   1.221 +
   1.222 +// The label part of a checkbox or radio button, used for painting
   1.223 +// a focus outline.
   1.224 +#define NS_THEME_CHECKBOX_LABEL                            152
   1.225 +#define NS_THEME_RADIO_LABEL                               153
   1.226 +
   1.227 +// The focus outline box inside of a button
   1.228 +#define NS_THEME_BUTTON_FOCUS                              154
   1.229 +
   1.230 +// Window and dialog backgrounds
   1.231 +#define NS_THEME_WINDOW                                    200
   1.232 +#define NS_THEME_DIALOG                                    201
   1.233 +
   1.234 +// Menu Bar background
   1.235 +#define NS_THEME_MENUBAR                                   210
   1.236 +// Menu Popup background
   1.237 +#define NS_THEME_MENUPOPUP                                 211
   1.238 +// <menu> and <menuitem> appearances
   1.239 +#define NS_THEME_MENUITEM                                  212
   1.240 +#define NS_THEME_CHECKMENUITEM                             213
   1.241 +#define NS_THEME_RADIOMENUITEM                             214
   1.242 +
   1.243 +// menu checkbox/radio appearances
   1.244 +#define NS_THEME_MENUCHECKBOX                              215
   1.245 +#define NS_THEME_MENURADIO                                 216
   1.246 +#define NS_THEME_MENUSEPARATOR                             217
   1.247 +#define NS_THEME_MENUARROW                                 218
   1.248 +// An image in the menu gutter, like in bookmarks or history
   1.249 +#define NS_THEME_MENUIMAGE                                 219
   1.250 +// For text on non-iconic menuitems only
   1.251 +#define NS_THEME_MENUITEMTEXT                              220
   1.252 +
   1.253 +// Vista Rebars
   1.254 +#define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX                221
   1.255 +#define NS_THEME_WIN_MEDIA_TOOLBOX                         222
   1.256 +#define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX               223
   1.257 +
   1.258 +// Unified toolbar and titlebar elements on the Mac
   1.259 +#define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR                   224
   1.260 +#define NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON                 226
   1.261 +
   1.262 +// Mac help button
   1.263 +#define NS_THEME_MOZ_MAC_HELP_BUTTON                       227
   1.264 +
   1.265 +// Vista glass
   1.266 +#define NS_THEME_WIN_BORDERLESS_GLASS                      229
   1.267 +#define NS_THEME_WIN_GLASS                                 230
   1.268 +
   1.269 +// Windows themed window frame elements
   1.270 +#define NS_THEME_WINDOW_TITLEBAR                           231
   1.271 +#define NS_THEME_WINDOW_TITLEBAR_MAXIMIZED                 232
   1.272 +#define NS_THEME_WINDOW_FRAME_LEFT                         233
   1.273 +#define NS_THEME_WINDOW_FRAME_RIGHT                        234
   1.274 +#define NS_THEME_WINDOW_FRAME_BOTTOM                       235
   1.275 +#define NS_THEME_WINDOW_BUTTON_CLOSE                       236
   1.276 +#define NS_THEME_WINDOW_BUTTON_MINIMIZE                    237
   1.277 +#define NS_THEME_WINDOW_BUTTON_MAXIMIZE                    238
   1.278 +#define NS_THEME_WINDOW_BUTTON_RESTORE                     239
   1.279 +#define NS_THEME_WINDOW_BUTTON_BOX                         240
   1.280 +#define NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED               241
   1.281 +
   1.282 +// moz-apperance style used in setting proper glass margins
   1.283 +#define NS_THEME_WIN_EXCLUDE_GLASS                         242
   1.284 +

mercurial