FILE COMPARISON
Produced: 2/18/2011 1:59:40 AM
   
Mode:  All Lines  
Left base folder: C:\Documents and Settings\krollins\My Documents\Admin\OpenSource\eRCP\eSWT\eSWT-1.2.orig  
Right base folder: C:\Documents and Settings\krollins\My Documents\Admin\OpenSource\eRCP\eSWT\eSWT-1.2.today  
   
File: org.eclipse.ercp.swt.core.win\common-native\api\UGL_Constants.h  
1 /******************************************************************************* = 1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.   2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials   3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0   4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at   5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html   6 * http://www.eclipse.org/legal/epl-v10.html
7 *   7 *
8 * Contributors:   8 * Contributors:
9 *     IBM Corporation - initial API and implementation   9 *     IBM Corporation - initial API and implementation
10 *     Radoslav Gerganov <r.gerganov@prosyst.bg> - bug 213627   10 *     Radoslav Gerganov <r.gerganov@prosyst.bg> - bug 213627
11 *******************************************************************************/   11 *******************************************************************************/
12     12  
    <> 13 /*******************************************************************************
      14 * Additions/modifications to this source file by Oracle America, Inc. 2011
      15 *******************************************************************************/
      16  
13 #ifndef __UGL_UGL_CONSTANTS_H__ = 17 #ifndef __UGL_UGL_CONSTANTS_H__
14 #define __UGL_UGL_CONSTANTS_H__   18 #define __UGL_UGL_CONSTANTS_H__
15     19  
16 #ifdef __cplusplus   20 #ifdef __cplusplus
17 extern "C" {   21 extern "C" {
18 #endif   22 #endif
19     23  
20     24  
21 /** Control background color id */   25 /** Control background color id */
22 #define UGL_COLOR_CONTROL_BACKGROUND 17   26 #define UGL_COLOR_CONTROL_BACKGROUND 17
23     27  
24 /** Control foreground color id */   28 /** Control foreground color id */
25 #define UGL_COLOR_CONTROL_FOREGROUND 18   29 #define UGL_COLOR_CONTROL_FOREGROUND 18
26     30  
27 /** Control normal highlight color id */   31 /** Control normal highlight color id */
28 #define UGL_COLOR_CONTROL_HIGHLIGHT_NORMAL 19   32 #define UGL_COLOR_CONTROL_HIGHLIGHT_NORMAL 19
29     33  
30 /** Control dark shadow color id */   34 /** Control dark shadow color id */
31 #define UGL_COLOR_CONTROL_SHADOW_DARK 22   35 #define UGL_COLOR_CONTROL_SHADOW_DARK 22
32     36  
33 /** Control normal shadow color id */   37 /** Control normal shadow color id */
34 #define UGL_COLOR_CONTROL_SHADOW_NORMAL 21   38 #define UGL_COLOR_CONTROL_SHADOW_NORMAL 21
35     39  
36 /** Tool tip background color id */   40 /** Tool tip background color id */
37 #define UGL_COLOR_INFO_BACKGROUND 24   41 #define UGL_COLOR_INFO_BACKGROUND 24
38     42  
39 /** Tool tip foreground color id */   43 /** Tool tip foreground color id */
40 #define UGL_COLOR_INFO_FOREGROUND 25   44 #define UGL_COLOR_INFO_FOREGROUND 25
41     45  
42 /** Text widget highlight background color id */   46 /** Text widget highlight background color id */
43 #define UGL_COLOR_TEXT_HIGHLIGHT_BACKGROUND 14   47 #define UGL_COLOR_TEXT_HIGHLIGHT_BACKGROUND 14
44     48  
45 /** Text widget highlight foreground color id */   49 /** Text widget highlight foreground color id */
46 #define UGL_COLOR_TEXT_HIGHLIGHT_FOREGROUND 15   50 #define UGL_COLOR_TEXT_HIGHLIGHT_FOREGROUND 15
47     51  
48 /** Invalid image error */   52 /** Invalid image error */
49 #define UGL_ERROR_INVALID_IMAGE -8   53 #define UGL_ERROR_INVALID_IMAGE -8
50     54  
51 /** I/O error */   55 /** I/O error */
52 #define UGL_ERROR_IO -7   56 #define UGL_ERROR_IO -7
53     57  
54 /** No error has occurred. */   58 /** No error has occurred. */
55 #define UGL_ERROR_NONE 0   59 #define UGL_ERROR_NONE 0
56     60  
57 /** API/function is unimplemented */   61 /** API/function is unimplemented */
58 #define UGL_ERROR_NOT_IMPLEMENTED -1   62 #define UGL_ERROR_NOT_IMPLEMENTED -1
59     63  
60 /**   64 /**
61 * An unrecoverable error occurred. The error is not specified further.   65 * An unrecoverable error occurred. The error is not specified further.
62 * Any API may throw this error.   66 * Any API may throw this error.
63 */   67 */
64 #define UGL_ERROR_OTHER -3   68 #define UGL_ERROR_OTHER -3
65     69  
66 /** Out of memory/handles. Any API may throw this error. */   70 /** Out of memory/handles. Any API may throw this error. */
67 #define UGL_ERROR_OUT_OF_MEMORY -4   71 #define UGL_ERROR_OUT_OF_MEMORY -4
68     72  
69 /** Attempt to load/create an image with unsupported color depth. */   73 /** Attempt to load/create an image with unsupported color depth. */
70 #define UGL_ERROR_UNSUPPORTED_DEPTH -5   74 #define UGL_ERROR_UNSUPPORTED_DEPTH -5
71     75  
72 /** Attempt to load/save an image of an unsupported format. */   76 /** Attempt to load/save an image of an unsupported format. */
73 #define UGL_ERROR_UNSUPPORTED_FORMAT -6   77 #define UGL_ERROR_UNSUPPORTED_FORMAT -6
74     78  
75 /** Focus event triggered when a Control has gained focus. */   79 /** Focus event triggered when a Control has gained focus. */
76 #define UGL_EVENT_FOCUS_IN 1   80 #define UGL_EVENT_FOCUS_IN 1
77     81  
78 /** Focus event triggered when a Control has lost focus. */   82 /** Focus event triggered when a Control has lost focus. */
79 #define UGL_EVENT_FOCUS_OUT 2   83 #define UGL_EVENT_FOCUS_OUT 2
80     84  
81 /** Focus event flag which indicates that the focus change was temporary. */   85 /** Focus event flag which indicates that the focus change was temporary. */
82 #define UGL_EVENT_FOCUS_TEMPORARY_FLAG (1 << 16)   86 #define UGL_EVENT_FOCUS_TEMPORARY_FLAG (1 << 16)
83     87  
84 /** Key down event. */   88 /** Key down event. */
85 #define UGL_EVENT_KEY_DOWN 1   89 #define UGL_EVENT_KEY_DOWN 1
86     90  
87 /** Key up event. */   91 /** Key up event. */
88 #define UGL_EVENT_KEY_UP 2   92 #define UGL_EVENT_KEY_UP 2
89     93  
90 /** The pointer has been double clicked. */   94 /** The pointer has been double clicked. */
91 #define UGL_EVENT_POINTER_DOUBLECLICK 7   95 #define UGL_EVENT_POINTER_DOUBLECLICK 7
92     96  
93 /** The pointer has been pressed. */   97 /** The pointer has been pressed. */
94 #define UGL_EVENT_POINTER_DOWN 1   98 #define UGL_EVENT_POINTER_DOWN 1
95     99  
96 /** The pointer has been released. */   100 /** The pointer has been released. */
97 #define UGL_EVENT_POINTER_DRAG 6   101 #define UGL_EVENT_POINTER_DRAG 6
98     102  
99 /** The pointer has entered a control's bounds. */   103 /** The pointer has entered a control's bounds. */
100 #define UGL_EVENT_POINTER_ENTER 4   104 #define UGL_EVENT_POINTER_ENTER 4
101     105  
102 /** The pointer has left a control's bounds. */   106 /** The pointer has left a control's bounds. */
103 #define UGL_EVENT_POINTER_EXIT 5   107 #define UGL_EVENT_POINTER_EXIT 5
104     108  
105 /** The pointer has moved. */   109 /** The pointer has moved. */
106 #define UGL_EVENT_POINTER_MOVE 3   110 #define UGL_EVENT_POINTER_MOVE 3
107     111  
108 /** The pointer has been released. */   112 /** The pointer has been released. */
109 #define UGL_EVENT_POINTER_UP 2   113 #define UGL_EVENT_POINTER_UP 2
110     114  
111 /**   115 /**
112 * Event code that will be passed into the shell callback method   116 * Event code that will be passed into the shell callback method
113 * when the shell is activated.   117 * when the shell is activated.
114 */   118 */
115 #define UGL_EVENT_SHELL_ACTIVATED 205   119 #define UGL_EVENT_SHELL_ACTIVATED 205
116     120  
117 /**   121 /**
118 * Event code that will be passed into the shell callback method   122 * Event code that will be passed into the shell callback method
119 * when the user clicks on the close button.   123 * when the user clicks on the close button.
120 */   124 */
121 #define UGL_EVENT_SHELL_CLOSING 201   125 #define UGL_EVENT_SHELL_CLOSING 201
122     126  
123 /**   127 /**
124 * Event code that will be passed into the shell callback method   128 * Event code that will be passed into the shell callback method
125 * when the shell is deactivated.   129 * when the shell is deactivated.
126 */   130 */
127 #define UGL_EVENT_SHELL_DEACTIVATED 206   131 #define UGL_EVENT_SHELL_DEACTIVATED 206
128     132  
129 /**   133 /**
130 * Event code that will be passed into the shell callback method   134 * Event code that will be passed into the shell callback method
131 * when the shell is deiconified.   135 * when the shell is deiconified.
132 */   136 */
133 #define UGL_EVENT_SHELL_DEICONIFIED 204   137 #define UGL_EVENT_SHELL_DEICONIFIED 204
134     138  
135 /**   139 /**
136 * Event code that will be passed into the shell callback method   140 * Event code that will be passed into the shell callback method
137 * when the shell is iconified.   141 * when the shell is iconified.
138 */   142 */
139 #define UGL_EVENT_SHELL_ICONIFIED 203   143 #define UGL_EVENT_SHELL_ICONIFIED 203
140     144  
141 /** Font style flag bold */   145 /** Font style flag bold */
142 #define UGL_FONT_STYLE_BOLD (1 << 1)   146 #define UGL_FONT_STYLE_BOLD (1 << 1)
143     147  
144 /** Font style flag italic */   148 /** Font style flag italic */
145 #define UGL_FONT_STYLE_ITALIC (1 << 2)   149 #define UGL_FONT_STYLE_ITALIC (1 << 2)
146     150  
    <> 151 /** Font style flag underline */
      152 #define UGL_FONT_STYLE_UNDERLINED (1 << 3)
      153  
147 #define UGL_KEYCODE_ALT 1018 = 154 #define UGL_KEYCODE_ALT 1018
148     155  
149 #define UGL_KEYCODE_ARROW_DOWN 1016   156 #define UGL_KEYCODE_ARROW_DOWN 1016
150     157  
151 #define UGL_KEYCODE_ARROW_LEFT 1013   158 #define UGL_KEYCODE_ARROW_LEFT 1013
152     159  
153 #define UGL_KEYCODE_ARROW_RIGHT 1014   160 #define UGL_KEYCODE_ARROW_RIGHT 1014
154     161  
155 #define UGL_KEYCODE_ARROW_UP 1015   162 #define UGL_KEYCODE_ARROW_UP 1015
156     163  
157 #define UGL_KEYCODE_BACKSPACE 1000   164 #define UGL_KEYCODE_BACKSPACE 1000
158     165  
159 #define UGL_KEYCODE_CONTROL 1019   166 #define UGL_KEYCODE_CONTROL 1019
160     167  
161 #define UGL_KEYCODE_DELETE 1012   168 #define UGL_KEYCODE_DELETE 1012
162     169  
163 #define UGL_KEYCODE_DEVICE0 1063   170 #define UGL_KEYCODE_DEVICE0 1063
164     171  
165 #define UGL_KEYCODE_DEVICE1 1064   172 #define UGL_KEYCODE_DEVICE1 1064
166     173  
167 #define UGL_KEYCODE_DEVICE2 1065   174 #define UGL_KEYCODE_DEVICE2 1065
168     175  
169 #define UGL_KEYCODE_DEVICE3 1066   176 #define UGL_KEYCODE_DEVICE3 1066
170     177  
171 #define UGL_KEYCODE_END 1008   178 #define UGL_KEYCODE_END 1008
172     179  
173 #define UGL_KEYCODE_ENTER 1002   180 #define UGL_KEYCODE_ENTER 1002
174     181  
175 #define UGL_KEYCODE_ESCAPE 1003   182 #define UGL_KEYCODE_ESCAPE 1003
176     183  
177 #define UGL_KEYCODE_F1 1023   184 #define UGL_KEYCODE_F1 1023
178     185  
179 #define UGL_KEYCODE_F10 1032   186 #define UGL_KEYCODE_F10 1032
180     187  
181 #define UGL_KEYCODE_F11 1033   188 #define UGL_KEYCODE_F11 1033
182     189  
183 #define UGL_KEYCODE_F12 1034   190 #define UGL_KEYCODE_F12 1034
184     191  
185 #define UGL_KEYCODE_F13 1035   192 #define UGL_KEYCODE_F13 1035
186     193  
187 #define UGL_KEYCODE_F14 1036   194 #define UGL_KEYCODE_F14 1036
188     195  
189 #define UGL_KEYCODE_F15 1037   196 #define UGL_KEYCODE_F15 1037
190     197  
191 #define UGL_KEYCODE_F16 1038   198 #define UGL_KEYCODE_F16 1038
192     199  
193 #define UGL_KEYCODE_F17 1039   200 #define UGL_KEYCODE_F17 1039
194     201  
195 #define UGL_KEYCODE_F18 1040   202 #define UGL_KEYCODE_F18 1040
196     203  
197 #define UGL_KEYCODE_F19 1041   204 #define UGL_KEYCODE_F19 1041
198     205  
199 #define UGL_KEYCODE_F2 1024   206 #define UGL_KEYCODE_F2 1024
200     207  
201 #define UGL_KEYCODE_F20 1042   208 #define UGL_KEYCODE_F20 1042
202     209  
203 #define UGL_KEYCODE_F21 1043   210 #define UGL_KEYCODE_F21 1043
204     211  
205 #define UGL_KEYCODE_F22 1044   212 #define UGL_KEYCODE_F22 1044
206     213  
207 #define UGL_KEYCODE_F23 1045   214 #define UGL_KEYCODE_F23 1045
208     215  
209 #define UGL_KEYCODE_F24 1046   216 #define UGL_KEYCODE_F24 1046
210     217  
211 #define UGL_KEYCODE_F3 1025   218 #define UGL_KEYCODE_F3 1025
212     219  
213 #define UGL_KEYCODE_F4 1026   220 #define UGL_KEYCODE_F4 1026
214     221  
215 #define UGL_KEYCODE_F5 1027   222 #define UGL_KEYCODE_F5 1027
216     223  
217 #define UGL_KEYCODE_F6 1028   224 #define UGL_KEYCODE_F6 1028
218     225  
219 #define UGL_KEYCODE_F7 1029   226 #define UGL_KEYCODE_F7 1029
220     227  
221 #define UGL_KEYCODE_F8 1030   228 #define UGL_KEYCODE_F8 1030
222     229  
223 #define UGL_KEYCODE_F9 1031   230 #define UGL_KEYCODE_F9 1031
224     231  
225 #define UGL_KEYCODE_HELP 1062   232 #define UGL_KEYCODE_HELP 1062
226     233  
227 #define UGL_KEYCODE_HOME 1007   234 #define UGL_KEYCODE_HOME 1007
228     235  
229 #define UGL_KEYCODE_INSERT 1011   236 #define UGL_KEYCODE_INSERT 1011
230     237  
231 /**   238 /**
232 * Keyboard event constant representing the numeric key   239 * Keyboard event constant representing the numeric key
233 * pad zero key.   240 * pad zero key.
234 */   241 */
235 #define UGL_KEYCODE_KEYPAD_0 1072   242 #define UGL_KEYCODE_KEYPAD_0 1072
236     243  
237 /**   244 /**
238 * Keyboard event constant representing the numeric key   245 * Keyboard event constant representing the numeric key
239 * pad one key.   246 * pad one key.
240 */   247 */
241 #define UGL_KEYCODE_KEYPAD_1 1073   248 #define UGL_KEYCODE_KEYPAD_1 1073
242     249  
243 /**   250 /**
244 * Keyboard event constant representing the numeric key   251 * Keyboard event constant representing the numeric key
245 * pad two key.   252 * pad two key.
246 */   253 */
247 #define UGL_KEYCODE_KEYPAD_2 1074   254 #define UGL_KEYCODE_KEYPAD_2 1074
248     255  
249 /**   256 /**
250 * Keyboard event constant representing the numeric key   257 * Keyboard event constant representing the numeric key
251 * pad three key.   258 * pad three key.
252 */   259 */
253 #define UGL_KEYCODE_KEYPAD_3 1075   260 #define UGL_KEYCODE_KEYPAD_3 1075
254     261  
255 /**   262 /**
256 * Keyboard event constant representing the numeric key   263 * Keyboard event constant representing the numeric key
257 * pad four key.   264 * pad four key.
258 */   265 */
259 #define UGL_KEYCODE_KEYPAD_4 1076   266 #define UGL_KEYCODE_KEYPAD_4 1076
260     267  
261 /**   268 /**
262 * Keyboard event constant representing the numeric key   269 * Keyboard event constant representing the numeric key
263 * pad five key.   270 * pad five key.
264 */   271 */
265 #define UGL_KEYCODE_KEYPAD_5 1077   272 #define UGL_KEYCODE_KEYPAD_5 1077
266     273  
267 /**   274 /**
268 * Keyboard event constant representing the numeric key   275 * Keyboard event constant representing the numeric key
269 * pad six key.   276 * pad six key.
270 */   277 */
271 #define UGL_KEYCODE_KEYPAD_6 1078   278 #define UGL_KEYCODE_KEYPAD_6 1078
272     279  
273 /**   280 /**
274 * Keyboard event constant representing the numeric key   281 * Keyboard event constant representing the numeric key
275 * pad seven key.   282 * pad seven key.
276 */   283 */
277 #define UGL_KEYCODE_KEYPAD_7 1079   284 #define UGL_KEYCODE_KEYPAD_7 1079
278     285  
279 /**   286 /**
280 * Keyboard event constant representing the numeric key   287 * Keyboard event constant representing the numeric key
281 * pad eight key.   288 * pad eight key.
282 */   289 */
283 #define UGL_KEYCODE_KEYPAD_8 1080   290 #define UGL_KEYCODE_KEYPAD_8 1080
284     291  
285 /**   292 /**
286 * Keyboard event constant representing the numeric key   293 * Keyboard event constant representing the numeric key
287 * pad nine key.   294 * pad nine key.
288 */   295 */
289 #define UGL_KEYCODE_KEYPAD_9 1081   296 #define UGL_KEYCODE_KEYPAD_9 1081
290     297  
291 /**   298 /**
292 * Keyboard event constant representing the numeric key   299 * Keyboard event constant representing the numeric key
293 * pad add key.   300 * pad add key.
294 */   301 */
295 #define UGL_KEYCODE_KEYPAD_ADD 1068   302 #define UGL_KEYCODE_KEYPAD_ADD 1068
296     303  
297 /**   304 /**
298 * Keyboard event constant representing the numeric key   305 * Keyboard event constant representing the numeric key
299 * pad decimal key.   306 * pad decimal key.
300 */   307 */
301 #define UGL_KEYCODE_KEYPAD_DECIMAL 1070   308 #define UGL_KEYCODE_KEYPAD_DECIMAL 1070
302     309  
303 /**   310 /**
304 * Keyboard event constant representing the numeric key   311 * Keyboard event constant representing the numeric key
305 * pad divide key.   312 * pad divide key.
306 */   313 */
307 #define UGL_KEYCODE_KEYPAD_DIVIDE 1071   314 #define UGL_KEYCODE_KEYPAD_DIVIDE 1071
308     315  
309 /**   316 /**
310 * Keyboard event constant representing the numeric key   317 * Keyboard event constant representing the numeric key
311 * pad enter key.   318 * pad enter key.
312 */   319 */
313 #define UGL_KEYCODE_KEYPAD_ENTER 1082   320 #define UGL_KEYCODE_KEYPAD_ENTER 1082
314     321  
315 /**   322 /**
316 * Keyboard event constant representing the numeric key   323 * Keyboard event constant representing the numeric key
317 * pad multiply key.   324 * pad multiply key.
318 */   325 */
319 #define UGL_KEYCODE_KEYPAD_MULTIPLY 1067   326 #define UGL_KEYCODE_KEYPAD_MULTIPLY 1067
320     327  
321 /**   328 /**
322 * Keyboard event constant representing the numeric key   329 * Keyboard event constant representing the numeric key
323 * pad subtract key.   330 * pad subtract key.
324 */   331 */
325 #define UGL_KEYCODE_KEYPAD_SUBTRACT 1069   332 #define UGL_KEYCODE_KEYPAD_SUBTRACT 1069
326     333  
327 #define UGL_KEYCODE_LOCK_CAPS 1020   334 #define UGL_KEYCODE_LOCK_CAPS 1020
328     335  
329 #define UGL_KEYCODE_LOCK_NUM 1021   336 #define UGL_KEYCODE_LOCK_NUM 1021
330     337  
331 #define UGL_KEYCODE_LOCK_SCROLL 1022   338 #define UGL_KEYCODE_LOCK_SCROLL 1022
332     339  
333 #define UGL_KEYCODE_PAGE_DOWN 1010   340 #define UGL_KEYCODE_PAGE_DOWN 1010
334     341  
335 #define UGL_KEYCODE_PAGE_UP 1009   342 #define UGL_KEYCODE_PAGE_UP 1009
336     343  
337 #define UGL_KEYCODE_PAUSE 1006   344 #define UGL_KEYCODE_PAUSE 1006
338     345  
339 #define UGL_KEYCODE_PRINTSCREEN 1005   346 #define UGL_KEYCODE_PRINTSCREEN 1005
340     347  
341 #define UGL_KEYCODE_SHIFT 1017   348 #define UGL_KEYCODE_SHIFT 1017
342     349  
343 #define UGL_KEYCODE_TAB 1001   350 #define UGL_KEYCODE_TAB 1001
344     351  
345 #define UGL_MODIFIER_MASK_ALT 1   352 #define UGL_MODIFIER_MASK_ALT 1
346     353  
347 #define UGL_MODIFIER_MASK_CONTROL 4   354 #define UGL_MODIFIER_MASK_CONTROL 4
348     355  
349 #define UGL_MODIFIER_MASK_SHIFT 2   356 #define UGL_MODIFIER_MASK_SHIFT 2
350     357  
351 #define UGL_POINTER_MASK_BUTTON1 8   358 #define UGL_POINTER_MASK_BUTTON1 8
352     359  
353 #define UGL_POINTER_MASK_BUTTON2 16   360 #define UGL_POINTER_MASK_BUTTON2 16
354     361  
355 #define UGL_POINTER_MASK_BUTTON3 32   362 #define UGL_POINTER_MASK_BUTTON3 32
356     363  
357 /**   364 /**
358 * Pointer button masks must not conflict with the alt, control,   365 * Pointer button masks must not conflict with the alt, control,
359 * and shift modifiers   366 * and shift modifiers
360 */   367 */
361 #define UGL_POINTER_MASK_NOBUTTON 0   368 #define UGL_POINTER_MASK_NOBUTTON 0
362     369  
363 #define UGL_POINTER_POPUP_TRIGGER (1 << 6)   370 #define UGL_POINTER_POPUP_TRIGGER (1 << 6)
364     371  
365 /** Interpret tab characters (<code>"\t"</code>) as tab stops. */   372 /** Interpret tab characters (<code>"\t"</code>) as tab stops. */
366 #define UGL_STRING_EXPAND_TAB (1 << 1)   373 #define UGL_STRING_EXPAND_TAB (1 << 1)
367     374  
368 /**   375 /**
369 * Interpret a mnemonic character (<code>&amp;</code>) to   376 * Interpret a mnemonic character (<code>&amp;</code>) to
370 * underline the next character instead of rendering the   377 * underline the next character instead of rendering the
371 * ampersand.   378 * ampersand.
372 */   379 */
373 #define UGL_STRING_MNEMONIC (1 << 2)   380 #define UGL_STRING_MNEMONIC (1 << 2)
374     381  
375 /** Render text transparently on the background. */   382 /** Render text transparently on the background. */
376 #define UGL_STRING_TRANSPARENT (1 << 3)   383 #define UGL_STRING_TRANSPARENT (1 << 3)
377     384  
378 /**   385 /**
379 * Wrap text at the line delimiters. Valid line delimiters are   386 * Wrap text at the line delimiters. Valid line delimiters are
380 * <code>"\r"</code>, <code>"\n"</code> and <code>"\r\n"</code>   387 * <code>"\r"</code>, <code>"\n"</code> and <code>"\r\n"</code>
381 */   388 */
382 #define UGL_STRING_WRAP 1   389 #define UGL_STRING_WRAP 1
383     390  
384 /**   391 /**
385 * Shell style indicating that while the Shell is open it will   392 * Shell style indicating that while the Shell is open it will
386 * block input to every other Shell in the application.  Modality   393 * block input to every other Shell in the application.  Modality
387 * styles are treated as hints since typically all types of modality   394 * styles are treated as hints since typically all types of modality
388 * are not supported on every platform.   395 * are not supported on every platform.
389 */   396 */
390 #define UGL_STYLE_APPLICATION_MODAL (1 << 6)   397 #define UGL_STYLE_APPLICATION_MODAL (1 << 6)
391     398  
392 /** Border */   399 /** Border */
393 #define UGL_STYLE_BORDER (1 << 11)   400 #define UGL_STYLE_BORDER (1 << 11)
394     401  
395 /** Center alignment */   402 /** Center alignment */
396 #define UGL_STYLE_CENTER (1 << 1)   403 #define UGL_STYLE_CENTER (1 << 1)
397     404  
398 /** The MenuItem style for a checkbox item */   405 /** The MenuItem style for a checkbox item */
399 #define UGL_STYLE_CHECK (1 << 5)   406 #define UGL_STYLE_CHECK (1 << 5)
400     407  
401 /** Close trim */   408 /** Close trim */
402 #define UGL_STYLE_CLOSE 1   409 #define UGL_STYLE_CLOSE 1
403     410  
404 /** Drop-down menu and combo behavior */   411 /** Drop-down menu and combo behavior */
405 #define UGL_STYLE_DROP_DOWN (1 << 26)   412 #define UGL_STYLE_DROP_DOWN (1 << 26)
406     413  
407 /** Flat */   414 /** Flat */
408 #define UGL_STYLE_FLAT (1 << 12)   415 #define UGL_STYLE_FLAT (1 << 12)
409     416  
410 /** Horizontal style */   417 /** Horizontal style */
411 #define UGL_STYLE_HORIZONTAL (1 << 4)   418 #define UGL_STYLE_HORIZONTAL (1 << 4)
412     419  
413 /** Horizontal scroll bars */   420 /** Horizontal scroll bars */
414 #define UGL_STYLE_H_SCROLL (1 << 16)   421 #define UGL_STYLE_H_SCROLL (1 << 16)
415     422  
416 /** Lead alignment (left alignment in left-to-right languages) */   423 /** Lead alignment (left alignment in left-to-right languages) */
417 #define UGL_STYLE_LEAD 1   424 #define UGL_STYLE_LEAD 1
418     425  
419 /** Left to right orientation */   426 /** Left to right orientation */
420 #define UGL_STYLE_LEFT_TO_RIGHT (1 << 14)   427 #define UGL_STYLE_LEFT_TO_RIGHT (1 << 14)
421     428  
422 /** Maximize trim */   429 /** Maximize trim */
423 #define UGL_STYLE_MAX (1 << 2)   430 #define UGL_STYLE_MAX (1 << 2)
424     431  
425 /** Minimize trim */   432 /** Minimize trim */
426 #define UGL_STYLE_MIN (1 << 1)   433 #define UGL_STYLE_MIN (1 << 1)
427     434  
428 /** Modeless */   435 /** Modeless */
429 #define UGL_STYLE_MODELESS (1 << 7)   436 #define UGL_STYLE_MODELESS (1 << 7)
430     437  
431 /** Multiple selection and multiple line style */   438 /** Multiple selection and multiple line style */
432 #define UGL_STYLE_MULTI (1 << 23)   439 #define UGL_STYLE_MULTI (1 << 23)
433     440  
434 /** Do not clear the background on paint events */   441 /** Do not clear the background on paint events */
435 #define UGL_STYLE_NO_BACKGROUND (1 << 18)   442 #define UGL_STYLE_NO_BACKGROUND (1 << 18)
436     443  
437 /** Do not take focus */   444 /** Do not take focus */
438 #define UGL_STYLE_NO_FOCUS (1 << 20)   445 #define UGL_STYLE_NO_FOCUS (1 << 20)
439     446  
440 /** Do not merge paint events */   447 /** Do not merge paint events */
441 #define UGL_STYLE_NO_MERGE_PAINTS (1 << 19)   448 #define UGL_STYLE_NO_MERGE_PAINTS (1 << 19)
442     449  
443 /** Do not redraw the entire client area on resize */   450 /** Do not redraw the entire client area on resize */
444 #define UGL_STYLE_NO_REDRAW_RESIZE (1 << 21)   451 #define UGL_STYLE_NO_REDRAW_RESIZE (1 << 21)
445     452  
446 /** No trimmings */   453 /** No trimmings */
447 #define UGL_STYLE_NO_TRIM (1 << 3)   454 #define UGL_STYLE_NO_TRIM (1 << 3)
448     455  
449 /**   456 /**
450 * Shell style indicating that while the Shell is open it will   457 * Shell style indicating that while the Shell is open it will
451 * block input to its parent.  Modality styles are treated as   458 * block input to its parent.  Modality styles are treated as
452 * hints since typically all types of modality are not supported   459 * hints since typically all types of modality are not supported
453 * on every platform.   460 * on every platform.
454 */   461 */
455 #define UGL_STYLE_PRIMARY_MODAL (1 << 8)   462 #define UGL_STYLE_PRIMARY_MODAL (1 << 8)
456     463  
457 /** The MenuItem style for a radio button item */   464 /** The MenuItem style for a radio button item */
458 #define UGL_STYLE_RADIO (1 << 4)   465 #define UGL_STYLE_RADIO (1 << 4)
459     466  
460 /** Read-only text field */   467 /** Read-only text field */
461 #define UGL_STYLE_READ_ONLY (1 << 24)   468 #define UGL_STYLE_READ_ONLY (1 << 24)
462     469  
463 /** Right to left orientation */   470 /** Right to left orientation */
464 #define UGL_STYLE_RIGHT_TO_LEFT (1 << 15)   471 #define UGL_STYLE_RIGHT_TO_LEFT (1 << 15)
465     472  
466 /** Shadow inside */   473 /** Shadow inside */
467 #define UGL_STYLE_SHADOW_IN (1 << 5)   474 #define UGL_STYLE_SHADOW_IN (1 << 5)
468     475  
469 /** No shadow */   476 /** No shadow */
470 #define UGL_STYLE_SHADOW_NONE (1 << 7)   477 #define UGL_STYLE_SHADOW_NONE (1 << 7)
471     478  
472 /** Shadow outside */   479 /** Shadow outside */
473 #define UGL_STYLE_SHADOW_OUT (1 << 6)   480 #define UGL_STYLE_SHADOW_OUT (1 << 6)
474     481  
475 /** Title trim */   482 /** Title trim */
476 #define UGL_STYLE_TITLE (1 << 5)   483 #define UGL_STYLE_TITLE (1 << 5)
477     484  
478 /** Trail alignment (right alignment in left-to-right languages) */   485 /** Trail alignment (right alignment in left-to-right languages) */
479 #define UGL_STYLE_TRAIL (1 << 2)   486 #define UGL_STYLE_TRAIL (1 << 2)
480     487  
481 /** Vertical style */   488 /** Vertical style */
482 #define UGL_STYLE_VERTICAL (1 << 3)   489 #define UGL_STYLE_VERTICAL (1 << 3)
483     490  
484 /** Vertical scroll bars */   491 /** Vertical scroll bars */
485 #define UGL_STYLE_V_SCROLL (1 << 17)   492 #define UGL_STYLE_V_SCROLL (1 << 17)
486     493  
487 /** Line wrapping text */   494 /** Line wrapping text */
488 #define UGL_STYLE_WRAP (1 << 8)   495 #define UGL_STYLE_WRAP (1 << 8)
489     496  
490 /** virtual */   497 /** virtual */
491 #define UGL_STYLE_VIRTUAL (1 << 28)   498 #define UGL_STYLE_VIRTUAL (1 << 28)
492     499  
493     500  
494 /**   501 /**
495 * The constant used to ask the platform whether it supports   502 * The constant used to ask the platform whether it supports
496 * making child shells user resizable.  The return value from   503 * making child shells user resizable.  The return value from
497 * the platform should be non-zero if the platform can support   504 * the platform should be non-zero if the platform can support
498 * child shells that are user resizable.   505 * child shells that are user resizable.
499 */   506 */
500 #define UGL_CAPABILITY_SHELL_CHILD_RESIZABLE 2   507 #define UGL_CAPABILITY_SHELL_CHILD_RESIZABLE 2
501     508  
502 /**   509 /**
503 * The constant used to ask the platform whether it supports minimizing   510 * The constant used to ask the platform whether it supports minimizing
504 * or maximizing shells.  The return value from the platform should be   511 * or maximizing shells.  The return value from the platform should be
505 * non-zero if the platform supports minimizing and maximizing shells.   512 * non-zero if the platform supports minimizing and maximizing shells.
506 */   513 */
507 #define UGL_CAPABILITY_SHELL_MINMAX 3   514 #define UGL_CAPABILITY_SHELL_MINMAX 3
508     515  
509 /**   516 /**
510 * The constant used to ask the platform whether it supports   517 * The constant used to ask the platform whether it supports
511 * making toplevel shells user resizable.  The return value from   518 * making toplevel shells user resizable.  The return value from
512 * the platform should be non-zero if the platform can support   519 * the platform should be non-zero if the platform can support
513 * toplevel shells that are user resizable.   520 * toplevel shells that are user resizable.
514 */   521 */
515 #define UGL_CAPABILITY_SHELL_TOPLEVEL_RESIZABLE 1   522 #define UGL_CAPABILITY_SHELL_TOPLEVEL_RESIZABLE 1
516     523  
517 /** Inactive caption background color id */   524 /** Inactive caption background color id */
518 #define UGL_COLOR_INACTIVE_CAPTION_BACKGROUND 4   525 #define UGL_COLOR_INACTIVE_CAPTION_BACKGROUND 4
519     526  
520 /** Inactive caption foreground color id */   527 /** Inactive caption foreground color id */
521 #define UGL_COLOR_INACTIVE_CAPTION_FOREGROUND 5   528 #define UGL_COLOR_INACTIVE_CAPTION_FOREGROUND 5
522     529  
523 #define UGL_INFO_HASMENU_MAYBE 0   530 #define UGL_INFO_HASMENU_MAYBE 0
524     531  
525 #define UGL_INFO_HASMENU_NO 2   532 #define UGL_INFO_HASMENU_NO 2
526     533  
527 #define UGL_INFO_HASMENU_YES 1   534 #define UGL_INFO_HASMENU_YES 1
528     535  
529 /** Label style for vertically centering the text. */   536 /** Label style for vertically centering the text. */
530 #define UGL_STYLE_MIDDLE (1 << 1)   537 #define UGL_STYLE_MIDDLE (1 << 1)
531     538  
532 /** File dialog style for opening a file. */   539 /** File dialog style for opening a file. */
533 #define UGL_STYLE_OPEN (1 << 12)   540 #define UGL_STYLE_OPEN (1 << 12)
534     541  
535 /** File dialog style for saving a file. */   542 /** File dialog style for saving a file. */
536 #define UGL_STYLE_SAVE (1 << 13)   543 #define UGL_STYLE_SAVE (1 << 13)
537     544  
538 /** Label style for top aligning the text. */   545 /** Label style for top aligning the text. */
539 #define UGL_STYLE_TOP 1   546 #define UGL_STYLE_TOP 1
540     547  
541     548  
542     549  
543 /**   550 /**
544 * List event which indicates that the currently selected item has   551 * List event which indicates that the currently selected item has
545 * been actioned.   552 * been actioned.
546 */   553 */
547 #define UGL_EVENT_LIST_ACTION 2   554 #define UGL_EVENT_LIST_ACTION 2
548     555  
549 /** List event which indicates that a new item has been selected. */   556 /** List event which indicates that a new item has been selected. */
550 #define UGL_EVENT_LIST_SELECTION 1   557 #define UGL_EVENT_LIST_SELECTION 1
551     558  
552 #define UGL_SCROLLBAR_ACTION_BLOCK_DECREMENT 2   559 #define UGL_SCROLLBAR_ACTION_BLOCK_DECREMENT 2
553     560  
554 #define UGL_SCROLLBAR_ACTION_BLOCK_INCREMENT 3   561 #define UGL_SCROLLBAR_ACTION_BLOCK_INCREMENT 3
555     562  
556 #define UGL_SCROLLBAR_ACTION_END 6   563 #define UGL_SCROLLBAR_ACTION_END 6
557     564  
558 #define UGL_SCROLLBAR_ACTION_HOME 5   565 #define UGL_SCROLLBAR_ACTION_HOME 5
559     566  
560 #define UGL_SCROLLBAR_ACTION_TRACK 4   567 #define UGL_SCROLLBAR_ACTION_TRACK 4
561     568  
562 #define UGL_SCROLLBAR_ACTION_UNIT_DECREMENT 0   569 #define UGL_SCROLLBAR_ACTION_UNIT_DECREMENT 0
563     570  
564 #define UGL_SCROLLBAR_ACTION_UNIT_INCREMENT 1   571 #define UGL_SCROLLBAR_ACTION_UNIT_INCREMENT 1
565     572  
566 #define UGL_SCROLLBAR_ACTION_NONE 7   573 #define UGL_SCROLLBAR_ACTION_NONE 7
567     574  
568     575  
569     576  
570 /** Title bar background color id */   577 /** Title bar background color id */
571 #define UGL_COLOR_TITLE_BACKGROUND 26   578 #define UGL_COLOR_TITLE_BACKGROUND 26
572     579  
573 /** Title bar foreground color id */   580 /** Title bar foreground color id */
574 #define UGL_COLOR_TITLE_FOREGROUND 27   581 #define UGL_COLOR_TITLE_FOREGROUND 27
575     582  
576 /**   583 /**
577 * Combo was default selected when the user pressed the ENTER key.   584 * Combo was default selected when the user pressed the ENTER key.
578 * Passed as an argument to the method registered as the CALLBACK_COMBO.   585 * Passed as an argument to the method registered as the CALLBACK_COMBO.
579 */   586 */
580 #define UGL_EVENT_COMBO_DEFAULTSELECTION 2   587 #define UGL_EVENT_COMBO_DEFAULTSELECTION 2
581     588  
582 /**   589 /**
583 * Combo text changed.  Passed as an argument to the   590 * Combo text changed.  Passed as an argument to the
584 * method registered as the CALLBACK_COMBO.   591 * method registered as the CALLBACK_COMBO.
585 */   592 */
586 #define UGL_EVENT_COMBO_TEXT 1   593 #define UGL_EVENT_COMBO_TEXT 1
587     594  
588 /**   595 /**
589 * Event indicating that a menu that has been popped up or   596 * Event indicating that a menu that has been popped up or
590 * dropped down has been hidden (i.e., no longer displayed).   597 * dropped down has been hidden (i.e., no longer displayed).
591 */   598 */
592 #define UGL_EVENT_MENU_HIDE 2   599 #define UGL_EVENT_MENU_HIDE 2
593     600  
594 /** Event indicating that a menu has been popped up or dropped down. */   601 /** Event indicating that a menu has been popped up or dropped down. */
595 #define UGL_EVENT_MENU_SHOW 1   602 #define UGL_EVENT_MENU_SHOW 1
596     603  
597 #define UGL_LINE_DASH (1 << 1)   604 #define UGL_LINE_DASH (1 << 1)
598     605  
599 #define UGL_LINE_DASHDOT (1 << 3)   606 #define UGL_LINE_DASHDOT (1 << 3)
600     607  
601 #define UGL_LINE_DASHDOTDOT (1 << 4)   608 #define UGL_LINE_DASHDOTDOT (1 << 4)
602     609  
603 #define UGL_LINE_DOT (1 << 2)   610 #define UGL_LINE_DOT (1 << 2)
604     611  
605 #define UGL_LINE_SOLID 1   612 #define UGL_LINE_SOLID 1
606     613  
607 #define UGL_MESSAGEBOX_CANCEL (1 << 12)   614 #define UGL_MESSAGEBOX_CANCEL (1 << 12)
608     615  
609 #define UGL_MESSAGEBOX_ICON_ERROR (1 << 18)   616 #define UGL_MESSAGEBOX_ICON_ERROR (1 << 18)
610     617  
611 #define UGL_MESSAGEBOX_ICON_INFORMATION (1 << 19)   618 #define UGL_MESSAGEBOX_ICON_INFORMATION (1 << 19)
612     619  
613 #define UGL_MESSAGEBOX_ICON_QUESTION (1 << 20)   620 #define UGL_MESSAGEBOX_ICON_QUESTION (1 << 20)
614     621  
615 #define UGL_MESSAGEBOX_ICON_WARNING (1 << 21)   622 #define UGL_MESSAGEBOX_ICON_WARNING (1 << 21)
616     623  
617 #define UGL_MESSAGEBOX_ICON_WORKING (1 << 22)   624 #define UGL_MESSAGEBOX_ICON_WORKING (1 << 22)
618     625  
619 #define UGL_MESSAGEBOX_NO (1 << 14)   626 #define UGL_MESSAGEBOX_NO (1 << 14)
620     627  
621 #define UGL_MESSAGEBOX_OK (1 << 11)   628 #define UGL_MESSAGEBOX_OK (1 << 11)
622     629  
623 #define UGL_MESSAGEBOX_RETRY (1 << 15)   630 #define UGL_MESSAGEBOX_RETRY (1 << 15)
624     631  
625 #define UGL_MESSAGEBOX_YES (1 << 13)   632 #define UGL_MESSAGEBOX_YES (1 << 13)
626     633  
627 /**   634 /**
628 * ProgressBar style for indicating that the amount   635 * ProgressBar style for indicating that the amount
629 * of work to be done is not known.   636 * of work to be done is not known.
630 */   637 */
631 #define UGL_STYLE_INDETERMINATE (1 << 1)   638 #define UGL_STYLE_INDETERMINATE (1 << 1)
632     639  
633 /**   640 /**
634 * Shell style for indicating that a Shell is   641 * Shell style for indicating that a Shell is
635 * to remain on top of the z order.  This style   642 * to remain on top of the z order.  This style
636 * is a hint, so it may not be implemented everywhere.   643 * is a hint, so it may not be implemented everywhere.
637 */   644 */
638 #define UGL_STYLE_ON_TOP (1 << 25)   645 #define UGL_STYLE_ON_TOP (1 << 25)
639     646  
640 /**   647 /**
641 * A hint the ProgressBar widget to display as   648 * A hint the ProgressBar widget to display as
642 * a constant line.   649 * a constant line.
643 */   650 */
644 #define UGL_STYLE_SMOOTH (1 << 16)   651 #define UGL_STYLE_SMOOTH (1 << 16)
645     652  
646 /**   653 /**
647 * Shell style indicating that while the Shell is open it will   654 * Shell style indicating that while the Shell is open it will
648 * block all input from the system. Modality styles are treated   655 * block all input from the system. Modality styles are treated
649 * as hints since all types of modality are not supported on every   656 * as hints since all types of modality are not supported on every
650 * platform.   657 * platform.
651 */   658 */
652 #define UGL_STYLE_SYSTEM_MODAL (1 << 27)   659 #define UGL_STYLE_SYSTEM_MODAL (1 << 27)
653     660  
    <> 661 /**
      662 * System icon for error.
      663 */
      664 #define UGL_IMAGE_ERROR 1
654   = 665  
    <> 666 /**
      667 * System icon for information.
      668 */
      669 #define UGL_IMAGE_INFORMATION 2
655   = 670  
    <> 671 /**
      672 * System icon for question.
      673 */
      674 #define UGL_IMAGE_QUESTION 3
656   = 675  
    <> 676 /**
      677 * System icon for warning.
      678 */
      679 #define UGL_IMAGE_WARNING 4
      680  
657 #ifdef __cplusplus = 681 #ifdef __cplusplus
658 }   682 }
659 #endif   683 #endif
660     684  
661 #endif /* __UGL_UGL_CONSTANTS_H__ */   685 #endif /* __UGL_UGL_CONSTANTS_H__ */