25
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module org.eclipse.swt.SWT;
|
|
14
|
|
15
|
|
16 import org.eclipse.swt.internal.Compatibility;
|
|
17 import org.eclipse.swt.internal.Library;
|
|
18 import org.eclipse.swt.internal.Platform;
|
|
19 import org.eclipse.swt.SWTError;
|
|
20 import org.eclipse.swt.SWTException;
|
|
21
|
|
22 import java.lang.all;
|
|
23
|
26
|
24 version(Tango){
|
|
25 import tango.core.Exception;
|
|
26 } else { // Phobos
|
|
27 }
|
|
28
|
25
|
29 version( build ){
|
|
30 pragma(link, "gtk-x11-2.0" );
|
|
31 pragma(link, "gdk-x11-2.0" );
|
|
32 pragma(link, "atk-1.0" );
|
|
33 pragma(link, "gdk_pixbuf-2.0" );
|
|
34 pragma(link, "gthread-2.0" );
|
|
35 pragma(link, "pangocairo-1.0" );
|
|
36 pragma(link, "fontconfig" );
|
|
37 pragma(link, "Xtst" );
|
|
38 pragma(link, "Xext" );
|
|
39 pragma(link, "Xrender" );
|
|
40 pragma(link, "Xinerama" );
|
|
41 pragma(link, "Xi" );
|
|
42 pragma(link, "Xrandr" );
|
|
43 pragma(link, "Xcursor" );
|
|
44 pragma(link, "Xcomposite" );
|
|
45 pragma(link, "Xdamage" );
|
|
46 pragma(link, "X11" );
|
|
47 pragma(link, "Xfixes" );
|
|
48 pragma(link, "pango-1.0" );
|
|
49 pragma(link, "gobject-2.0" );
|
|
50 pragma(link, "gmodule-2.0" );
|
|
51 pragma(link, "dl" );
|
|
52 pragma(link, "glib-2.0" );
|
|
53 pragma(link, "cairo" );
|
|
54 }
|
|
55 //version=CARBON;
|
|
56
|
|
57
|
|
58 /**
|
|
59 * This class provides access to a small number of SWT system-wide
|
|
60 * methods, and in addition defines the public constants provided
|
|
61 * by SWT.
|
|
62 * <p>
|
|
63 * By defining constants like UP and DOWN in a single class, SWT
|
|
64 * can share common names and concepts at the same time minimizing
|
|
65 * the number of classes, names and constants for the application
|
|
66 * programmer.
|
|
67 * </p><p>
|
|
68 * Note that some of the constants provided by this class represent
|
|
69 * optional, appearance related aspects of widgets which are available
|
|
70 * either only on some window systems, or for a differing set of
|
|
71 * widgets on each window system. These constants are marked
|
|
72 * as <em>HINT</em>s. The set of widgets which support a particular
|
|
73 * <em>HINT</em> may change from release to release, although we typically
|
|
74 * will not withdraw support for a <em>HINT</em> once it is made available.
|
|
75 * </p>
|
|
76 *
|
|
77 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
|
|
78 */
|
|
79
|
|
80 /* NOTE:
|
|
81 * Good javadoc coding style is to put the values of static const
|
|
82 * constants in the comments. This reinforces the fact that
|
|
83 * consumers are allowed to rely on the value (and they must
|
|
84 * since the values are compiled inline in their code). We
|
|
85 * can <em>not</em> change the values of these constants between
|
|
86 * releases.
|
|
87 */
|
|
88 public class SWT {
|
|
89
|
|
90 /* Widget Event Constants */
|
|
91
|
|
92 /**
|
|
93 * The null event type (value is 0).
|
|
94 *
|
|
95 * @since 3.0
|
|
96 */
|
|
97 public static const int None = 0;
|
|
98
|
|
99 /**
|
|
100 * The key down event type (value is 1).
|
|
101 *
|
|
102 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
103 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
104 * @see org.eclipse.swt.widgets.Event
|
|
105 *
|
|
106 * @see org.eclipse.swt.widgets.Control#addKeyListener
|
|
107 * @see org.eclipse.swt.widgets.Tracker#addKeyListener
|
|
108 * @see org.eclipse.swt.events.KeyListener#keyPressed
|
|
109 * @see org.eclipse.swt.events.KeyEvent
|
|
110 */
|
|
111 public static const int KeyDown = 1;
|
|
112
|
|
113 /**
|
|
114 * The key up event type (value is 2).
|
|
115 *
|
|
116 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
117 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
118 * @see org.eclipse.swt.widgets.Event
|
|
119 *
|
|
120 * @see org.eclipse.swt.widgets.Control#addKeyListener
|
|
121 * @see org.eclipse.swt.widgets.Tracker#addKeyListener
|
|
122 * @see org.eclipse.swt.events.KeyListener#keyReleased
|
|
123 * @see org.eclipse.swt.events.KeyEvent
|
|
124 */
|
|
125 public static const int KeyUp = 2;
|
|
126
|
|
127 /**
|
|
128 * The mouse down event type (value is 3).
|
|
129 *
|
|
130 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
131 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
132 * @see org.eclipse.swt.widgets.Event
|
|
133 *
|
|
134 * @see org.eclipse.swt.widgets.Control#addMouseListener
|
|
135 * @see org.eclipse.swt.events.MouseListener#mouseDown
|
|
136 * @see org.eclipse.swt.events.MouseEvent
|
|
137 */
|
|
138 public static const int MouseDown = 3;
|
|
139
|
|
140 /**
|
|
141 * The mouse up event type (value is 4).
|
|
142 *
|
|
143 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
144 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
145 * @see org.eclipse.swt.widgets.Event
|
|
146 *
|
|
147 * @see org.eclipse.swt.widgets.Control#addMouseListener
|
|
148 * @see org.eclipse.swt.events.MouseListener#mouseUp
|
|
149 * @see org.eclipse.swt.events.MouseEvent
|
|
150 */
|
|
151 public static const int MouseUp = 4;
|
|
152
|
|
153 /**
|
|
154 * The mouse move event type (value is 5).
|
|
155 *
|
|
156 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
157 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
158 * @see org.eclipse.swt.widgets.Event
|
|
159 *
|
|
160 * @see org.eclipse.swt.widgets.Control#addMouseMoveListener
|
|
161 * @see org.eclipse.swt.events.MouseMoveListener#mouseMove
|
|
162 * @see org.eclipse.swt.events.MouseEvent
|
|
163 */
|
|
164 public static const int MouseMove = 5;
|
|
165
|
|
166 /**
|
|
167 * The mouse enter event type (value is 6).
|
|
168 *
|
|
169 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
170 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
171 * @see org.eclipse.swt.widgets.Event
|
|
172 *
|
|
173 * @see org.eclipse.swt.widgets.Control#addMouseTrackListener
|
|
174 * @see org.eclipse.swt.events.MouseTrackListener#mouseEnter
|
|
175 * @see org.eclipse.swt.events.MouseEvent
|
|
176 */
|
|
177 public static const int MouseEnter = 6;
|
|
178
|
|
179 /**
|
|
180 * The mouse exit event type (value is 7).
|
|
181 *
|
|
182 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
183 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
184 * @see org.eclipse.swt.widgets.Event
|
|
185 *
|
|
186 * @see org.eclipse.swt.widgets.Control#addMouseTrackListener
|
|
187 * @see org.eclipse.swt.events.MouseTrackListener#mouseExit
|
|
188 * @see org.eclipse.swt.events.MouseEvent
|
|
189 */
|
|
190 public static const int MouseExit = 7;
|
|
191
|
|
192 /**
|
|
193 * The mouse double click event type (value is 8).
|
|
194 *
|
|
195 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
196 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
197 * @see org.eclipse.swt.widgets.Event
|
|
198 *
|
|
199 * @see org.eclipse.swt.widgets.Control#addMouseListener
|
|
200 * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick
|
|
201 * @see org.eclipse.swt.events.MouseEvent
|
|
202 */
|
|
203 public static const int MouseDoubleClick = 8;
|
|
204
|
|
205 /**
|
|
206 * The paint event type (value is 9).
|
|
207 *
|
|
208 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
209 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
210 * @see org.eclipse.swt.widgets.Event
|
|
211 *
|
|
212 * @see org.eclipse.swt.widgets.Control#addPaintListener
|
|
213 * @see org.eclipse.swt.events.PaintListener#paintControl
|
|
214 * @see org.eclipse.swt.events.PaintEvent
|
|
215 */
|
|
216 public static const int Paint = 9;
|
|
217
|
|
218 /**
|
|
219 * The move event type (value is 10).
|
|
220 *
|
|
221 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
222 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
223 * @see org.eclipse.swt.widgets.Event
|
|
224 *
|
|
225 * @see org.eclipse.swt.widgets.Control#addControlListener
|
|
226 * @see org.eclipse.swt.widgets.TableColumn#addControlListener
|
|
227 * @see org.eclipse.swt.widgets.Tracker#addControlListener
|
|
228 * @see org.eclipse.swt.widgets.TreeColumn#addControlListener
|
|
229 * @see org.eclipse.swt.events.ControlListener#controlMoved
|
|
230 * @see org.eclipse.swt.events.ControlEvent
|
|
231 */
|
|
232 public static const int Move = 10;
|
|
233
|
|
234 /**
|
|
235 * The resize event type (value is 11).
|
|
236 *
|
|
237 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
238 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
239 * @see org.eclipse.swt.widgets.Event
|
|
240 *
|
|
241 * @see org.eclipse.swt.widgets.Control#addControlListener
|
|
242 * @see org.eclipse.swt.widgets.TableColumn#addControlListener
|
|
243 * @see org.eclipse.swt.widgets.Tracker#addControlListener
|
|
244 * @see org.eclipse.swt.widgets.TreeColumn#addControlListener
|
|
245 * @see org.eclipse.swt.events.ControlListener#controlResized
|
|
246 * @see org.eclipse.swt.events.ControlEvent
|
|
247 */
|
|
248 public static const int Resize = 11;
|
|
249
|
|
250 /**
|
|
251 * The dispose event type (value is 12).
|
|
252 *
|
|
253 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
254 * @see org.eclipse.swt.widgets.Display#addListener
|
|
255 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
256 * @see org.eclipse.swt.widgets.Event
|
|
257 *
|
|
258 * @see org.eclipse.swt.widgets.Widget#addDisposeListener
|
|
259 * @see org.eclipse.swt.events.DisposeListener#widgetDisposed
|
|
260 * @see org.eclipse.swt.events.DisposeEvent
|
|
261 */
|
|
262 public static const int Dispose = 12;
|
|
263
|
|
264 /**
|
|
265 * The selection event type (value is 13).
|
|
266 *
|
|
267 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
268 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
269 * @see org.eclipse.swt.widgets.Event
|
|
270 *
|
|
271 * @see org.eclipse.swt.widgets.Button#addSelectionListener
|
|
272 * @see org.eclipse.swt.widgets.Combo#addSelectionListener
|
|
273 * @see org.eclipse.swt.widgets.CoolItem#addSelectionListener
|
|
274 * @see org.eclipse.swt.widgets.Link#addSelectionListener
|
|
275 * @see org.eclipse.swt.widgets.List#addSelectionListener
|
|
276 * @see org.eclipse.swt.widgets.MenuItem#addSelectionListener
|
|
277 * @see org.eclipse.swt.widgets.Sash#addSelectionListener
|
|
278 * @see org.eclipse.swt.widgets.Scale#addSelectionListener
|
|
279 * @see org.eclipse.swt.widgets.ScrollBar#addSelectionListener
|
|
280 * @see org.eclipse.swt.widgets.Slider#addSelectionListener
|
|
281 * @see org.eclipse.swt.widgets.TabFolder#addSelectionListener
|
|
282 * @see org.eclipse.swt.widgets.Table#addSelectionListener
|
|
283 * @see org.eclipse.swt.widgets.TableColumn#addSelectionListener
|
|
284 * @see org.eclipse.swt.widgets.ToolItem#addSelectionListener
|
|
285 * @see org.eclipse.swt.widgets.TrayItem#addSelectionListener
|
|
286 * @see org.eclipse.swt.widgets.Tree#addSelectionListener
|
|
287 * @see org.eclipse.swt.widgets.TreeColumn#addSelectionListener
|
|
288 * @see org.eclipse.swt.events.SelectionListener#widgetSelected
|
|
289 * @see org.eclipse.swt.events.SelectionEvent
|
|
290 */
|
|
291 public static const int Selection = 13;
|
|
292
|
|
293 /**
|
|
294 * The default selection event type (value is 14).
|
|
295 *
|
|
296 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
297 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
298 * @see org.eclipse.swt.widgets.Event
|
|
299 *
|
|
300 * @see org.eclipse.swt.widgets.Combo#addSelectionListener
|
|
301 * @see org.eclipse.swt.widgets.List#addSelectionListener
|
|
302 * @see org.eclipse.swt.widgets.Spinner#addSelectionListener
|
|
303 * @see org.eclipse.swt.widgets.Table#addSelectionListener
|
|
304 * @see org.eclipse.swt.widgets.Text#addSelectionListener
|
|
305 * @see org.eclipse.swt.widgets.TrayItem#addSelectionListener
|
|
306 * @see org.eclipse.swt.widgets.Tree#addSelectionListener
|
|
307 * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected
|
|
308 * @see org.eclipse.swt.events.SelectionEvent
|
|
309 */
|
|
310 public static const int DefaultSelection = 14;
|
|
311
|
|
312 /**
|
|
313 * The focus in event type (value is 15).
|
|
314 *
|
|
315 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
316 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
317 * @see org.eclipse.swt.widgets.Event
|
|
318 *
|
|
319 * @see org.eclipse.swt.widgets.Control#addFocusListener
|
|
320 * @see org.eclipse.swt.events.FocusListener#focusGained
|
|
321 * @see org.eclipse.swt.events.FocusEvent
|
|
322 */
|
|
323 public static const int FocusIn = 15;
|
|
324
|
|
325 /**
|
|
326 * The focus out event type (value is 16).
|
|
327 *
|
|
328 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
329 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
330 * @see org.eclipse.swt.widgets.Event
|
|
331 *
|
|
332 * @see org.eclipse.swt.widgets.Control#addFocusListener
|
|
333 * @see org.eclipse.swt.events.FocusListener#focusLost
|
|
334 * @see org.eclipse.swt.events.FocusEvent
|
|
335 */
|
|
336 public static const int FocusOut = 16;
|
|
337
|
|
338 /**
|
|
339 * The expand event type (value is 17).
|
|
340 *
|
|
341 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
342 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
343 * @see org.eclipse.swt.widgets.Event
|
|
344 *
|
|
345 * @see org.eclipse.swt.widgets.Tree#addTreeListener
|
|
346 * @see org.eclipse.swt.events.TreeListener#treeExpanded
|
|
347 * @see org.eclipse.swt.events.TreeEvent
|
|
348 */
|
|
349 public static const int Expand = 17;
|
|
350
|
|
351 /**
|
|
352 * The collapse event type (value is 18).
|
|
353 *
|
|
354 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
355 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
356 * @see org.eclipse.swt.widgets.Event
|
|
357 *
|
|
358 * @see org.eclipse.swt.widgets.Tree#addTreeListener
|
|
359 * @see org.eclipse.swt.events.TreeListener#treeCollapsed
|
|
360 * @see org.eclipse.swt.events.TreeEvent
|
|
361 */
|
|
362 public static const int Collapse = 18;
|
|
363
|
|
364 /**
|
|
365 * The iconify event type (value is 19).
|
|
366 *
|
|
367 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
368 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
369 * @see org.eclipse.swt.widgets.Event
|
|
370 *
|
|
371 * @see org.eclipse.swt.widgets.Shell#addShellListener
|
|
372 * @see org.eclipse.swt.events.ShellListener#shellIconified
|
|
373 * @see org.eclipse.swt.events.ShellEvent
|
|
374 */
|
|
375 public static const int Iconify = 19;
|
|
376
|
|
377 /**
|
|
378 * The de-iconify event type (value is 20).
|
|
379 *
|
|
380 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
381 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
382 * @see org.eclipse.swt.widgets.Event
|
|
383 *
|
|
384 * @see org.eclipse.swt.widgets.Shell#addShellListener
|
|
385 * @see org.eclipse.swt.events.ShellListener#shellDeiconified
|
|
386 * @see org.eclipse.swt.events.ShellEvent
|
|
387 */
|
|
388 public static const int Deiconify = 20;
|
|
389
|
|
390 /**
|
|
391 * The close event type (value is 21).
|
|
392 *
|
|
393 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
394 * @see org.eclipse.swt.widgets.Display#addListener
|
|
395 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
396 * @see org.eclipse.swt.widgets.Event
|
|
397 *
|
|
398 * @see org.eclipse.swt.widgets.Shell#addShellListener
|
|
399 * @see org.eclipse.swt.events.ShellListener#shellClosed
|
|
400 * @see org.eclipse.swt.events.ShellEvent
|
|
401 */
|
|
402 public static const int Close = 21;
|
|
403
|
|
404 /**
|
|
405 * The show event type (value is 22).
|
|
406 *
|
|
407 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
408 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
409 * @see org.eclipse.swt.widgets.Event
|
|
410 *
|
|
411 * @see org.eclipse.swt.widgets.Menu#addMenuListener
|
|
412 * @see org.eclipse.swt.events.MenuListener#menuShown
|
|
413 * @see org.eclipse.swt.events.MenuEvent
|
|
414 */
|
|
415 public static const int Show = 22;
|
|
416
|
|
417 /**
|
|
418 * The hide event type (value is 23).
|
|
419 *
|
|
420 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
421 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
422 * @see org.eclipse.swt.widgets.Event
|
|
423 *
|
|
424 * @see org.eclipse.swt.widgets.Menu#addMenuListener
|
|
425 * @see org.eclipse.swt.events.MenuListener#menuHidden
|
|
426 * @see org.eclipse.swt.events.MenuEvent
|
|
427 */
|
|
428 public static const int Hide = 23;
|
|
429
|
|
430 /**
|
|
431 * The modify event type (value is 24).
|
|
432 *
|
|
433 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
434 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
435 * @see org.eclipse.swt.widgets.Event
|
|
436 *
|
|
437 * @see org.eclipse.swt.widgets.Combo#addModifyListener
|
|
438 * @see org.eclipse.swt.widgets.Spinner#addModifyListener
|
|
439 * @see org.eclipse.swt.widgets.Text#addModifyListener
|
|
440 * @see org.eclipse.swt.events.ModifyListener#modifyText
|
|
441 * @see org.eclipse.swt.events.ModifyEvent
|
|
442 */
|
|
443 public static const int Modify = 24;
|
|
444
|
|
445 /**
|
|
446 * The verify event type (value is 25).
|
|
447 *
|
|
448 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
449 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
450 * @see org.eclipse.swt.widgets.Event
|
|
451 *
|
|
452 * @see org.eclipse.swt.custom.CCombo#addVerifyListener
|
|
453 * @see org.eclipse.swt.widgets.Combo#addVerifyListener
|
|
454 * @see org.eclipse.swt.custom.StyledText#addVerifyListener
|
|
455 * @see org.eclipse.swt.widgets.Text#addVerifyListener
|
|
456 * @see org.eclipse.swt.events.VerifyListener#verifyText
|
|
457 * @see org.eclipse.swt.events.VerifyEvent
|
|
458 */
|
|
459 public static const int Verify = 25;
|
|
460
|
|
461 /**
|
|
462 * The activate event type (value is 26).
|
|
463 *
|
|
464 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
465 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
466 * @see org.eclipse.swt.widgets.Event
|
|
467 *
|
|
468 * @see org.eclipse.swt.widgets.Shell#addShellListener
|
|
469 * @see org.eclipse.swt.events.ShellListener#shellActivated
|
|
470 * @see org.eclipse.swt.events.ShellEvent
|
|
471 */
|
|
472 public static const int Activate = 26;
|
|
473
|
|
474 /**
|
|
475 * The deactivate event type (value is 27).
|
|
476 *
|
|
477 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
478 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
479 * @see org.eclipse.swt.widgets.Event
|
|
480 *
|
|
481 * @see org.eclipse.swt.widgets.Shell#addShellListener
|
|
482 * @see org.eclipse.swt.events.ShellListener#shellDeactivated
|
|
483 * @see org.eclipse.swt.events.ShellEvent
|
|
484 */
|
|
485 public static const int Deactivate = 27;
|
|
486
|
|
487 /**
|
|
488 * The help event type (value is 28).
|
|
489 *
|
|
490 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
491 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
492 * @see org.eclipse.swt.widgets.Event
|
|
493 *
|
|
494 * @see org.eclipse.swt.widgets.Control#addHelpListener
|
|
495 * @see org.eclipse.swt.widgets.Menu#addHelpListener
|
|
496 * @see org.eclipse.swt.widgets.MenuItem#addHelpListener
|
|
497 * @see org.eclipse.swt.events.HelpListener#helpRequested
|
|
498 * @see org.eclipse.swt.events.HelpEvent
|
|
499 */
|
|
500 public static const int Help = 28;
|
|
501
|
|
502 /**
|
|
503 * The drag detect event type (value is 29).
|
|
504 *
|
|
505 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
506 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
507 * @see org.eclipse.swt.widgets.Event
|
|
508 *
|
|
509 * @see org.eclipse.swt.dnd.DragSource
|
|
510 */
|
|
511 public static const int DragDetect = 29;
|
|
512
|
|
513 /**
|
|
514 * The arm event type (value is 30).
|
|
515 *
|
|
516 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
517 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
518 * @see org.eclipse.swt.widgets.Event
|
|
519 *
|
|
520 * @see org.eclipse.swt.widgets.MenuItem#addArmListener
|
|
521 * @see org.eclipse.swt.events.ArmListener#widgetArmed
|
|
522 * @see org.eclipse.swt.events.ArmEvent
|
|
523 */
|
|
524 public static const int Arm = 30;
|
|
525
|
|
526 /**
|
|
527 * The traverse event type (value is 31).
|
|
528 *
|
|
529 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
530 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
531 * @see org.eclipse.swt.widgets.Event
|
|
532 *
|
|
533 * @see org.eclipse.swt.widgets.Control#addTraverseListener
|
|
534 * @see org.eclipse.swt.events.TraverseListener#keyTraversed
|
|
535 * @see org.eclipse.swt.events.TraverseEvent
|
|
536 */
|
|
537 public static const int Traverse = 31;
|
|
538
|
|
539 /**
|
|
540 * The mouse hover event type (value is 32).
|
|
541 *
|
|
542 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
543 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
544 * @see org.eclipse.swt.widgets.Event
|
|
545 *
|
|
546 * @see org.eclipse.swt.widgets.Control#addMouseTrackListener
|
|
547 * @see org.eclipse.swt.events.MouseTrackListener#mouseHover
|
|
548 * @see org.eclipse.swt.events.MouseEvent
|
|
549 */
|
|
550 public static const int MouseHover = 32;
|
|
551
|
|
552 /**
|
|
553 * The hardware key down event type (value is 33).
|
|
554 *
|
|
555 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
556 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
557 * @see org.eclipse.swt.widgets.Event
|
|
558 */
|
|
559 public static const int HardKeyDown = 33;
|
|
560
|
|
561 /**
|
|
562 * The hardware key up event type (value is 34).
|
|
563 *
|
|
564 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
565 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
566 * @see org.eclipse.swt.widgets.Event
|
|
567 */
|
|
568 public static const int HardKeyUp = 34;
|
|
569
|
|
570 /**
|
|
571 * The menu detect event type (value is 35).
|
|
572 *
|
|
573 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
574 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
575 * @see org.eclipse.swt.widgets.Event
|
|
576 *
|
|
577 * @since 3.0
|
|
578 */
|
|
579 public static const int MenuDetect = 35;
|
|
580
|
|
581 /**
|
|
582 * The set data event type (value is 36).
|
|
583 *
|
|
584 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
585 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
586 * @see org.eclipse.swt.widgets.Event
|
|
587 *
|
|
588 * @see org.eclipse.swt.widgets.Table
|
|
589 * @see org.eclipse.swt.widgets.Tree
|
|
590 *
|
|
591 * @since 3.0
|
|
592 */
|
|
593 public static const int SetData = 36;
|
|
594
|
|
595 /**
|
|
596 * The mouse wheel event type (value is 37).
|
|
597 *
|
|
598 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
599 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
600 * @see org.eclipse.swt.widgets.Event
|
|
601 *
|
|
602 * @since 3.1
|
|
603 */
|
|
604 public static const int MouseWheel = 37;
|
|
605
|
|
606 /**
|
|
607 * The settings changed event type (value is 39).
|
|
608 * <p>
|
|
609 * The settings changed event is sent when an operating system
|
|
610 * property, such as a system font or color, has been changed.
|
|
611 * The event occurs after the property has been changed, but
|
|
612 * before any widget is redrawn. Applications that cache operating
|
|
613 * system properties can use this event to update their caches.
|
|
614 * A specific property change can be detected by querying the
|
|
615 * new value of a property and comparing it with the equivalent
|
|
616 * cached value. The operating system automatically redraws and
|
|
617 * lays out all widgets after this event is sent.
|
|
618 * </p>
|
|
619 *
|
|
620 * @see org.eclipse.swt.widgets.Display#addListener
|
|
621 * @see org.eclipse.swt.widgets.Event
|
|
622 *
|
|
623 * @since 3.2
|
|
624 */
|
|
625 public static const int Settings = 39;
|
|
626
|
|
627 /**
|
|
628 * The erase item event type (value is 40).
|
|
629 *
|
|
630 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
631 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
632 * @see org.eclipse.swt.widgets.Event
|
|
633 *
|
|
634 * @since 3.2
|
|
635 */
|
|
636 public static const int EraseItem = 40;
|
|
637
|
|
638 /**
|
|
639 * The measure item event type (value is 41).
|
|
640 *
|
|
641 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
642 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
643 * @see org.eclipse.swt.widgets.Event
|
|
644 *
|
|
645 * @since 3.2
|
|
646 */
|
|
647 public static const int MeasureItem = 41;
|
|
648
|
|
649 /**
|
|
650 * The paint item event type (value is 42).
|
|
651 *
|
|
652 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
653 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
654 * @see org.eclipse.swt.widgets.Event
|
|
655 *
|
|
656 * @since 3.2
|
|
657 */
|
|
658 public static const int PaintItem = 42;
|
|
659
|
|
660 /**
|
|
661 * The IME composition event type (value is 43).
|
|
662 * <p>
|
|
663 * The IME composition event is sent to allow
|
|
664 * custom text editors to implement in-line
|
|
665 * editing of international text.
|
|
666 * </p>
|
|
667 *
|
|
668 * The detail field indicates the action to be taken:
|
|
669 * <p><ul>
|
|
670 * <li>{@link SWT#COMPOSITION_CHANGED}</li>
|
|
671 * <li>{@link SWT#COMPOSITION_OFFSET}</li>
|
|
672 * <li>{@link SWT#COMPOSITION_SELECTION}</li>
|
|
673 * </ul></p>
|
|
674 *
|
|
675 * @see org.eclipse.swt.widgets.Widget#addListener
|
|
676 * @see org.eclipse.swt.widgets.Display#addFilter
|
|
677 * @see org.eclipse.swt.widgets.Event
|
|
678 *
|
|
679 * @since 3.4
|
|
680 */
|
|
681 public static const int ImeComposition = 43;
|
|
682
|
|
683 /* Event Details */
|
|
684
|
|
685 /**
|
|
686 * The IME composition event detail that indicates
|
|
687 * a change in the IME composition. The text field
|
|
688 * of the event is the new composition text.
|
|
689 * The start and end indicate the offsets where the
|
|
690 * composition text should be inserted.
|
|
691 * The styles and ranges are stored in the IME
|
|
692 * object (value is 1).
|
|
693 *
|
|
694 * @see SWT#ImeComposition
|
|
695 *
|
|
696 * @since 3.4
|
|
697 */
|
|
698 public static const int COMPOSITION_CHANGED = 1;
|
|
699
|
|
700 /**
|
|
701 * The IME composition event detail that indicates
|
|
702 * that the IME needs the offset for a given location.
|
|
703 * The x and y fields of the event are used by the
|
|
704 * application to determine the offset.
|
|
705 *
|
|
706 * The index field of the event should be set to the
|
|
707 * text offset at that location. The count field should
|
|
708 * be set to indicate whether the location is closer to
|
|
709 * the leading edge (0) or the trailing edge (1) (value is 2).
|
|
710 *
|
|
711 * @see SWT#ImeComposition
|
|
712 * @see org.eclipse.swt.graphics.TextLayout#getOffset(int, int, int[])
|
|
713 *
|
|
714 * @since 3.4
|
|
715 */
|
|
716 public static const int COMPOSITION_OFFSET = 2;
|
|
717
|
|
718 /**
|
|
719 * The IME composition event detail that indicates
|
|
720 * that IME needs the selected text and its start
|
|
721 * and end offsets (value is 3).
|
|
722 *
|
|
723 * @see SWT#ImeComposition
|
|
724 *
|
|
725 * @since 3.4
|
|
726 */
|
|
727 public static const int COMPOSITION_SELECTION = 3;
|
|
728
|
|
729 /**
|
|
730 * Indicates that a user-interface component is being dragged,
|
|
731 * for example dragging the thumb of a scroll bar (value is 1).
|
|
732 */
|
|
733 public static const int DRAG = 1;
|
|
734
|
|
735 /**
|
|
736 * Event detail field that indicates a user-interface component
|
|
737 * state is selected (value is 1<<1).
|
|
738 *
|
|
739 * @since 3.2
|
|
740 */
|
|
741 public static const int SELECTED = 1 << 1;
|
|
742
|
|
743 /**
|
|
744 * Event detail field that indicates a user-interface component
|
|
745 * state is focused (value is 1<<2).
|
|
746 *
|
|
747 * @since 3.2
|
|
748 */
|
|
749 public static const int FOCUSED = 1 << 2;
|
|
750
|
|
751 /**
|
|
752 * Event detail field that indicates a user-interface component
|
|
753 * draws the background (value is 1<<3).
|
|
754 *
|
|
755 * @since 3.2
|
|
756 */
|
|
757 public static const int BACKGROUND = 1 << 3;
|
|
758
|
|
759 /**
|
|
760 * Event detail field that indicates a user-interface component
|
|
761 * draws the foreground (value is 1<<4).
|
|
762 *
|
|
763 * @since 3.2
|
|
764 */
|
|
765 public static const int FOREGROUND = 1 << 4;
|
|
766
|
|
767 /**
|
|
768 * Event detail field that indicates a user-interface component
|
|
769 * state is hot (value is 1<<5).
|
|
770 *
|
|
771 * @since 3.3
|
|
772 */
|
|
773 public static const int HOT = 1 << 5;
|
|
774
|
|
775 /* This code is intentionally commented */
|
|
776 //public static const int PRESSED = 1 << 3;
|
|
777 //public static const int ACTIVE = 1 << 4;
|
|
778 //public static const int DISABLED = 1 << 5;
|
|
779 //public static const int HOT = 1 << 6;
|
|
780 //public static const int DEFAULTED = 1 << 7;
|
|
781
|
|
782 /**
|
|
783 * Traversal event detail field value indicating that no
|
|
784 * traversal action should be taken
|
|
785 * (value is 0).
|
|
786 */
|
|
787 public static const int TRAVERSE_NONE = 0;
|
|
788
|
|
789 /**
|
|
790 * Traversal event detail field value indicating that the
|
|
791 * key which designates that a dialog should be cancelled was
|
|
792 * pressed; typically, this is the ESC key
|
|
793 * (value is 1<<1).
|
|
794 */
|
|
795 public static const int TRAVERSE_ESCAPE = 1 << 1;
|
|
796
|
|
797 /**
|
|
798 * Traversal event detail field value indicating that the
|
|
799 * key which activates the default button in a dialog was
|
|
800 * pressed; typically, this is the ENTER key
|
|
801 * (value is 1<<2).
|
|
802 */
|
|
803 public static const int TRAVERSE_RETURN = 1 << 2;
|
|
804
|
|
805 /**
|
|
806 * Traversal event detail field value indicating that the
|
|
807 * key which designates that focus should be given to the
|
|
808 * previous tab group was pressed; typically, this is the
|
|
809 * SHIFT-TAB key sequence
|
|
810 * (value is 1<<3).
|
|
811 */
|
|
812 public static const int TRAVERSE_TAB_PREVIOUS = 1 << 3;
|
|
813
|
|
814 /**
|
|
815 * Traversal event detail field value indicating that the
|
|
816 * key which designates that focus should be given to the
|
|
817 * next tab group was pressed; typically, this is the
|
|
818 * TAB key
|
|
819 * (value is 1<<4).
|
|
820 */
|
|
821 public static const int TRAVERSE_TAB_NEXT = 1 << 4;
|
|
822
|
|
823 /**
|
|
824 * Traversal event detail field value indicating that the
|
|
825 * key which designates that focus should be given to the
|
|
826 * previous tab item was pressed; typically, this is either
|
|
827 * the LEFT-ARROW or UP-ARROW keys
|
|
828 * (value is 1<<5).
|
|
829 */
|
|
830 public static const int TRAVERSE_ARROW_PREVIOUS = 1 << 5;
|
|
831
|
|
832 /**
|
|
833 * Traversal event detail field value indicating that the
|
|
834 * key which designates that focus should be given to the
|
|
835 * previous tab item was pressed; typically, this is either
|
|
836 * the RIGHT-ARROW or DOWN-ARROW keys
|
|
837 * (value is 1<<6).
|
|
838 */
|
|
839 public static const int TRAVERSE_ARROW_NEXT = 1 << 6;
|
|
840
|
|
841 /**
|
|
842 * Traversal event detail field value indicating that a
|
|
843 * mnemonic key sequence was pressed
|
|
844 * (value is 1<<7).
|
|
845 */
|
|
846 public static const int TRAVERSE_MNEMONIC = 1 << 7;
|
|
847
|
|
848 /**
|
|
849 * Traversal event detail field value indicating that the
|
|
850 * key which designates that the previous page of a multi-page
|
|
851 * window should be shown was pressed; typically, this
|
|
852 * is the CTRL-PAGEUP key sequence
|
|
853 * (value is 1<<8).
|
|
854 */
|
|
855 public static const int TRAVERSE_PAGE_PREVIOUS = 1 << 8;
|
|
856
|
|
857 /**
|
|
858 * Traversal event detail field value indicating that the
|
|
859 * key which designates that the next page of a multi-page
|
|
860 * window should be shown was pressed; typically, this
|
|
861 * is the CTRL-PAGEDOWN key sequence
|
|
862 * (value is 1<<9).
|
|
863 */
|
|
864 public static const int TRAVERSE_PAGE_NEXT = 1 << 9;
|
|
865
|
|
866 /**
|
|
867 * A constant known to be zero (0), typically used in operations
|
|
868 * which take bit flags to indicate that "no bits are set".
|
|
869 */
|
|
870 public static const int NONE = 0;
|
|
871
|
|
872 /**
|
|
873 * A constant known to be zero (0), used in operations which
|
|
874 * take pointers to indicate a null argument.
|
|
875 */
|
|
876 public static const int NULL = 0;
|
|
877
|
|
878 /**
|
|
879 * Indicates that a default should be used (value is -1).
|
|
880 */
|
|
881 public static const int DEFAULT = -1;
|
|
882
|
|
883 /**
|
|
884 * Indicates that a property is off (value is 0).
|
|
885 *
|
|
886 * @since 3.1
|
|
887 */
|
|
888 public static const int OFF = 0;
|
|
889
|
|
890 /**
|
|
891 * Indicates that a property is on (value is 1).
|
|
892 *
|
|
893 * @since 3.1
|
|
894 */
|
|
895 public static const int ON = 1;
|
|
896
|
|
897 /**
|
|
898 * Indicates low quality (value is 1).
|
|
899 *
|
|
900 * @since 3.1
|
|
901 */
|
|
902 public static const int LOW = 1;
|
|
903
|
|
904 /**
|
|
905 * Indicates high quality (value is 2).
|
|
906 *
|
|
907 * @since 3.1
|
|
908 */
|
|
909 public static const int HIGH = 2;
|
|
910
|
|
911 /**
|
|
912 * Style constant for menu bar behavior (value is 1<<1).
|
|
913 * <p><b>Used By:</b><ul>
|
|
914 * <li><code>Menu</code></li>
|
|
915 * </ul></p>
|
|
916 */
|
|
917 public static const int BAR = 1 << 1;
|
|
918
|
|
919 /**
|
|
920 * Style constant for drop down menu/list behavior (value is 1<<2).
|
|
921 * <p><b>Used By:</b><ul>
|
|
922 * <li><code>Menu</code></li>
|
|
923 * <li><code>ToolItem</code></li>
|
|
924 * <li><code>CoolItem</code></li>
|
|
925 * <li><code>Combo</code></li>
|
|
926 * </ul></p>
|
|
927 */
|
|
928 public static const int DROP_DOWN = 1 << 2;
|
|
929
|
|
930 /**
|
|
931 * Style constant for pop up menu behavior (value is 1<<3).
|
|
932 * <p><b>Used By:</b><ul>
|
|
933 * <li><code>Menu</code></li>
|
|
934 * </ul></p>
|
|
935 */
|
|
936 public static const int POP_UP = 1 << 3;
|
|
937
|
|
938 /**
|
|
939 * Style constant for line separator behavior (value is 1<<1).
|
|
940 * <p><b>Used By:</b><ul>
|
|
941 * <li><code>Label</code></li>
|
|
942 * <li><code>MenuItem</code></li>
|
|
943 * <li><code>ToolItem</code></li>
|
|
944 * </ul></p>
|
|
945 */
|
|
946 public static const int SEPARATOR = 1 << 1;
|
|
947
|
|
948 /**
|
|
949 * Style constant for toggle button behavior (value is 1<<1).
|
|
950 * <p><b>Used By:</b><ul>
|
|
951 * <li><code>Button</code></li>
|
|
952 * </ul></p>
|
|
953 */
|
|
954 public static const int TOGGLE = 1 << 1;
|
|
955
|
|
956 /**
|
|
957 * Style constant for arrow button behavior (value is 1<<2).
|
|
958 * <p><b>Used By:</b><ul>
|
|
959 * <li><code>Button</code></li>
|
|
960 * </ul></p>
|
|
961 */
|
|
962 public static const int ARROW = 1 << 2;
|
|
963
|
|
964 /**
|
|
965 * Style constant for push button behavior (value is 1<<3).
|
|
966 * <p><b>Used By:</b><ul>
|
|
967 * <li><code>Button</code></li>
|
|
968 * <li><code>MenuItem</code></li>
|
|
969 * <li><code>ToolItem</code></li>
|
|
970 * </ul></p>
|
|
971 */
|
|
972 public static const int PUSH = 1 << 3;
|
|
973
|
|
974 /**
|
|
975 * Style constant for radio button behavior (value is 1<<4).
|
|
976 * <p><b>Used By:</b><ul>
|
|
977 * <li><code>Button</code></li>
|
|
978 * <li><code>MenuItem</code></li>
|
|
979 * <li><code>ToolItem</code></li>
|
|
980 * </ul></p>
|
|
981 */
|
|
982 public static const int RADIO = 1 << 4;
|
|
983
|
|
984 /**
|
|
985 * Style constant for check box behavior (value is 1<<5).
|
|
986 * <p><b>Used By:</b><ul>
|
|
987 * <li><code>Button</code></li>
|
|
988 * <li><code>MenuItem</code></li>
|
|
989 * <li><code>ToolItem</code></li>
|
|
990 * <li><code>Table</code></li>
|
|
991 * <li><code>Tree</code></li>
|
|
992 * </ul></p>
|
|
993 */
|
|
994 public static const int CHECK = 1 << 5;
|
|
995
|
|
996 /**
|
|
997 * Style constant for cascade behavior (value is 1<<6).
|
|
998 * <p><b>Used By:</b><ul>
|
|
999 * <li><code>MenuItem</code></li>
|
|
1000 * </ul></p>
|
|
1001 */
|
|
1002 public static const int CASCADE = 1 << 6;
|
|
1003
|
|
1004 /**
|
|
1005 * Style constant for multi-selection behavior in lists
|
|
1006 * and multiple line support on text fields (value is 1<<1).
|
|
1007 * <p><b>Used By:</b><ul>
|
|
1008 * <li><code>Text</code></li>
|
|
1009 * <li><code>List</code></li>
|
|
1010 * <li><code>FileDialog</code></li>
|
|
1011 * </ul></p>
|
|
1012 */
|
|
1013 public static const int MULTI = 1 << 1;
|
|
1014
|
|
1015 /**
|
|
1016 * Style constant for single selection behavior in lists
|
|
1017 * and single line support on text fields (value is 1<<2).
|
|
1018 * <p><b>Used By:</b><ul>
|
|
1019 * <li><code>Text</code></li>
|
|
1020 * <li><code>List</code></li>
|
|
1021 * <li><code>Table</code></li>
|
|
1022 * <li><code>Tree</code></li>
|
|
1023 * </ul></p>
|
|
1024 */
|
|
1025 public static const int SINGLE = 1 << 2;
|
|
1026
|
|
1027 /**
|
|
1028 * Style constant for read-only behavior (value is 1<<3).
|
|
1029 * <p><b>Used By:</b><ul>
|
|
1030 * <li><code>Combo</code></li>
|
|
1031 * <li><code>Text</code></li>
|
|
1032 * </ul></p>
|
|
1033 */
|
|
1034 public static const int READ_ONLY = 1 << 3;
|
|
1035
|
|
1036 /**
|
|
1037 * Style constant for automatic line wrap behavior (value is 1<<6).
|
|
1038 * <p><b>Used By:</b><ul>
|
|
1039 * <li><code>Label</code></li>
|
|
1040 * <li><code>Text</code></li>
|
|
1041 * <li><code>ToolBar</code></li>
|
|
1042 * <li><code>Spinner</code></li>
|
|
1043 * </ul></p>
|
|
1044 */
|
|
1045 public static const int WRAP = 1 << 6;
|
|
1046
|
|
1047 /**
|
|
1048 * Style constant for search behavior (value is 1<<7).
|
|
1049 * <p><b>Used By:</b><ul>
|
|
1050 * <li><code>Text</code></li>
|
|
1051 * </ul></p>
|
|
1052 *
|
|
1053 * @since 3.3
|
|
1054 */
|
|
1055 public static const int SEARCH = 1 << 7;
|
|
1056
|
|
1057 /**
|
|
1058 * Style constant for simple (not drop down) behavior (value is 1<<6).
|
|
1059 * <p><b>Used By:</b><ul>
|
|
1060 * <li><code>Combo</code></li>
|
|
1061 * </ul></p>
|
|
1062 */
|
|
1063 public static const int SIMPLE = 1 << 6;
|
|
1064
|
|
1065 /**
|
|
1066 * Style constant for password behavior (value is 1<<22).
|
|
1067 * <p><b>Used By:</b><ul>
|
|
1068 * <li><code>Text</code></li>
|
|
1069 * </ul></p>
|
|
1070 *
|
|
1071 * @since 3.0
|
|
1072 */
|
|
1073 public static const int PASSWORD = 1 << 22;
|
|
1074
|
|
1075 /**
|
|
1076 * Style constant for shadow in behavior (value is 1<<2).
|
|
1077 * <br>Note that this is a <em>HINT</em>.
|
|
1078 * <p><b>Used By:</b><ul>
|
|
1079 * <li><code>Label</code></li>
|
|
1080 * <li><code>Group</code></li>
|
|
1081 * </ul></p>
|
|
1082 */
|
|
1083 public static const int SHADOW_IN = 1 << 2;
|
|
1084
|
|
1085 /**
|
|
1086 * Style constant for shadow out behavior (value is 1<<3).
|
|
1087 * <br>Note that this is a <em>HINT</em>.
|
|
1088 * <p><b>Used By:</b><ul>
|
|
1089 * <li><code>Label</code></li>
|
|
1090 * <li><code>Group</code></li>
|
|
1091 * <li><code>ToolBar</code></li>
|
|
1092 * </ul></p>
|
|
1093 */
|
|
1094 public static const int SHADOW_OUT = 1 << 3;
|
|
1095
|
|
1096 /**
|
|
1097 * Style constant for shadow etched in behavior (value is 1<<4).
|
|
1098 * <br>Note that this is a <em>HINT</em>. It is ignored on all platforms except Motif.
|
|
1099 * <p><b>Used By:</b><ul>
|
|
1100 * <li><code>Group</code></li>
|
|
1101 * </ul></p>
|
|
1102 */
|
|
1103 public static const int SHADOW_ETCHED_IN = 1 << 4;
|
|
1104
|
|
1105 /**
|
|
1106 * Style constant for shadow etched out behavior (value is 1<<6).
|
|
1107 * <br>Note that this is a <em>HINT</em>. It is ignored on all platforms except Motif.
|
|
1108 * <p><b>Used By:</b><ul>
|
|
1109 * <li><code>Group</code></li>
|
|
1110 * </ul></p>
|
|
1111 */
|
|
1112 public static const int SHADOW_ETCHED_OUT = 1 << 6;
|
|
1113
|
|
1114 /**
|
|
1115 * Style constant for no shadow behavior (value is 1<<5).
|
|
1116 * <br>Note that this is a <em>HINT</em>.
|
|
1117 * <p><b>Used By:</b><ul>
|
|
1118 * <li><code>Label</code></li>
|
|
1119 * <li><code>Group</code></li>
|
|
1120 * </ul></p>
|
|
1121 */
|
|
1122 public static const int SHADOW_NONE = 1 << 5;
|
|
1123
|
|
1124 /**
|
|
1125 * Style constant for progress bar behavior (value is 1<<1).
|
|
1126 * <p><b>Used By:</b><ul>
|
|
1127 * <li><code>ProgressBar</code></li>
|
|
1128 * </ul></p>
|
|
1129 */
|
|
1130 public static const int INDETERMINATE = 1 << 1;
|
|
1131
|
|
1132 /**
|
|
1133 * Style constant for tool window behavior (value is 1<<2).
|
|
1134 * <p>
|
|
1135 * A tool window is a window intended to be used as a floating toolbar.
|
|
1136 * It typically has a title bar that is shorter than a normal title bar,
|
|
1137 * and the window title is typically drawn using a smaller font.
|
|
1138 * <br>Note that this is a <em>HINT</em>.
|
|
1139 * </p><p><b>Used By:</b><ul>
|
|
1140 * <li><code>Decorations</code> and subclasses</li>
|
|
1141 * </ul></p>
|
|
1142 */
|
|
1143 public static const int TOOL = 1 << 2;
|
|
1144
|
|
1145 /**
|
|
1146 * Style constant to ensure no trimmings are used (value is 1<<3).
|
|
1147 * <br>Note that this overrides all other trim styles.
|
|
1148 * <p><b>Used By:</b><ul>
|
|
1149 * <li><code>Decorations</code> and subclasses</li>
|
|
1150 * </ul></p>
|
|
1151 */
|
|
1152 public static const int NO_TRIM = 1 << 3;
|
|
1153
|
|
1154 /**
|
|
1155 * Style constant for resize box trim (value is 1<<4).
|
|
1156 * <p><b>Used By:</b><ul>
|
|
1157 * <li><code>Decorations</code> and subclasses</li>
|
|
1158 * <li><code>Tracker</code></li>
|
|
1159 * </ul></p>
|
|
1160 */
|
|
1161 public static const int RESIZE = 1 << 4;
|
|
1162
|
|
1163 /**
|
|
1164 * Style constant for title area trim (value is 1<<5).
|
|
1165 * <p><b>Used By:</b><ul>
|
|
1166 * <li><code>Decorations</code> and subclasses</li>
|
|
1167 * </ul></p>
|
|
1168 */
|
|
1169 public static const int TITLE = 1 << 5;
|
|
1170
|
|
1171 /**
|
|
1172 * Style constant for close box trim (value is 1<<6,
|
|
1173 * since we do not distinguish between CLOSE style and MENU style).
|
|
1174 * <p><b>Used By:</b><ul>
|
|
1175 * <li><code>Decorations</code> and subclasses</li>
|
|
1176 * </ul></p>
|
|
1177 */
|
|
1178 public static const int CLOSE = 1 << 6;
|
|
1179
|
|
1180 /**
|
|
1181 * Style constant for shell menu trim (value is 1<<6,
|
|
1182 * since we do not distinguish between CLOSE style and MENU style).
|
|
1183 * <p><b>Used By:</b><ul>
|
|
1184 * <li><code>Decorations</code> and subclasses</li>
|
|
1185 * </ul></p>
|
|
1186 */
|
|
1187 public static const int MENU = CLOSE;
|
|
1188
|
|
1189 /**
|
|
1190 * Style constant for minimize box trim (value is 1<<7).
|
|
1191 * <p><b>Used By:</b><ul>
|
|
1192 * <li><code>Decorations</code> and subclasses</li>
|
|
1193 * </ul></p>
|
|
1194 */
|
|
1195 public static const int MIN = 1 << 7;
|
|
1196
|
|
1197 /**
|
|
1198 * Style constant for maximize box trim (value is 1<<10).
|
|
1199 * <p><b>Used By:</b><ul>
|
|
1200 * <li><code>Decorations</code> and subclasses</li>
|
|
1201 * </ul></p>
|
|
1202 */
|
|
1203 public static const int MAX = 1 << 10;
|
|
1204
|
|
1205 /**
|
|
1206 * Style constant for horizontal scrollbar behavior (value is 1<<8).
|
|
1207 * <p><b>Used By:</b><ul>
|
|
1208 * <li><code>Scrollable</code> and subclasses</li>
|
|
1209 * </ul></p>
|
|
1210 */
|
|
1211 public static const int H_SCROLL = 1 << 8;
|
|
1212
|
|
1213 /**
|
|
1214 * Style constant for vertical scrollbar behavior (value is 1<<9).
|
|
1215 * <p><b>Used By:</b><ul>
|
|
1216 * <li><code>Scrollable</code> and subclasses</li>
|
|
1217 * </ul></p>
|
|
1218 */
|
|
1219 public static const int V_SCROLL = 1 << 9;
|
|
1220
|
|
1221 /**
|
|
1222 * Style constant for no scrollbar behavior (value is 1<<4).
|
|
1223 * <p>
|
|
1224 * When neither H_SCROLL or V_SCROLL are specified, controls
|
|
1225 * are free to create the default scroll bars for the control.
|
|
1226 * Using NO_SCROLL overrides the default and forces the control
|
|
1227 * to have no scroll bars.
|
|
1228 *
|
|
1229 * <b>Used By:</b><ul>
|
|
1230 * <li><code>Tree</code></li>
|
|
1231 * <li><code>Table</code></li>
|
|
1232 * </ul></p>
|
|
1233 *
|
|
1234 * @since 3.4
|
|
1235 */
|
|
1236 public static const int NO_SCROLL = 1 << 4;
|
|
1237
|
|
1238 /**
|
|
1239 * Style constant for bordered behavior (value is 1<<11).
|
|
1240 * <br>Note that this is a <em>HINT</em>.
|
|
1241 * <p><b>Used By:</b><ul>
|
|
1242 * <li><code>Control</code> and subclasses</li>
|
|
1243 * </ul></p>
|
|
1244 */
|
|
1245 public static const int BORDER = 1 << 11;
|
|
1246
|
|
1247 /**
|
|
1248 * Style constant indicating that the window manager should clip
|
|
1249 * a widget's children with respect to its viewable area. (value is 1<<12).
|
|
1250 * <br>Note that this is a <em>HINT</em>.
|
|
1251 * <p><b>Used By:</b><ul>
|
|
1252 * <li><code>Control</code> and subclasses</li>
|
|
1253 * </ul></p>
|
|
1254 */
|
|
1255 public static const int CLIP_CHILDREN = 1 << 12;
|
|
1256
|
|
1257 /**
|
|
1258 * Style constant indicating that the window manager should clip
|
|
1259 * a widget's siblings with respect to its viewable area. (value is 1<<13).
|
|
1260 * <br>Note that this is a <em>HINT</em>.
|
|
1261 * <p><b>Used By:</b><ul>
|
|
1262 * <li><code>Control</code> and subclasses</li>
|
|
1263 * </ul></p>
|
|
1264 */
|
|
1265 public static const int CLIP_SIBLINGS = 1 << 13;
|
|
1266
|
|
1267 /**
|
|
1268 * Style constant for always on top behavior (value is 1<<14).
|
|
1269 * <br>Note that this is a <em>HINT</em>.
|
|
1270 * <p><b>Used By:</b><ul>
|
|
1271 * <li><code>Shell</code> and subclasses</li>
|
|
1272 * </ul></p>
|
|
1273 */
|
|
1274 public static const int ON_TOP = 1 << 14;
|
|
1275
|
|
1276 /**
|
|
1277 * Trim style convenience constant for the most common top level shell appearance
|
|
1278 * (value is CLOSE|TITLE|MIN|MAX|RESIZE).
|
|
1279 * <p><b>Used By:</b><ul>
|
|
1280 * <li><code>Shell</code></li>
|
|
1281 * </ul></p>
|
|
1282 */
|
|
1283 public static const int SHELL_TRIM = CLOSE | TITLE | MIN | MAX | RESIZE;
|
|
1284
|
|
1285 /**
|
|
1286 * Trim style convenience constant for the most common dialog shell appearance
|
|
1287 * (value is CLOSE|TITLE|BORDER).
|
|
1288 * <p><b>Used By:</b><ul>
|
|
1289 * <li><code>Shell</code></li>
|
|
1290 * </ul></p>
|
|
1291 */
|
|
1292 public static const int DIALOG_TRIM = TITLE | CLOSE | BORDER;
|
|
1293
|
|
1294 /**
|
|
1295 * Style constant for modeless behavior (value is 0).
|
|
1296 * <br>Note that this is a <em>HINT</em>.
|
|
1297 * <p><b>Used By:</b><ul>
|
|
1298 * <li><code>Dialog</code></li>
|
|
1299 * <li><code>Shell</code></li>
|
|
1300 * </ul></p>
|
|
1301 */
|
|
1302 public static const int MODELESS = 0;
|
|
1303
|
|
1304 /**
|
|
1305 * Style constant for primary modal behavior (value is 1<<15).
|
|
1306 * <br>Note that this is a <em>HINT</em>.
|
|
1307 * <p><b>Used By:</b><ul>
|
|
1308 * <li><code>Dialog</code></li>
|
|
1309 * <li><code>Shell</code></li>
|
|
1310 * </ul></p>
|
|
1311 */
|
|
1312 public static const int PRIMARY_MODAL = 1 << 15;
|
|
1313
|
|
1314 /**
|
|
1315 * Style constant for application modal behavior (value is 1<<16).
|
|
1316 * <br>Note that this is a <em>HINT</em>.
|
|
1317 * <p><b>Used By:</b><ul>
|
|
1318 * <li><code>Dialog</code></li>
|
|
1319 * <li><code>Shell</code></li>
|
|
1320 * </ul></p>
|
|
1321 */
|
|
1322 public static const int APPLICATION_MODAL = 1 << 16;
|
|
1323
|
|
1324 /**
|
|
1325 * Style constant for system modal behavior (value is 1<<17).
|
|
1326 * <br>Note that this is a <em>HINT</em>.
|
|
1327 * <p><b>Used By:</b><ul>
|
|
1328 * <li><code>Dialog</code></li>
|
|
1329 * <li><code>Shell</code></li>
|
|
1330 * </ul></p>
|
|
1331 */
|
|
1332 public static const int SYSTEM_MODAL = 1 << 17;
|
|
1333
|
|
1334 /**
|
|
1335 * Style constant for selection hiding behavior when the widget loses focus (value is 1<<15).
|
|
1336 * <br>Note that this is a <em>HINT</em>.
|
|
1337 * <p><b>Used By:</b><ul>
|
|
1338 * <li><code>Table</code></li>
|
|
1339 * </ul></p>
|
|
1340 */
|
|
1341 public static const int HIDE_SELECTION = 1 << 15;
|
|
1342
|
|
1343 /**
|
|
1344 * Style constant for full row selection behavior and
|
|
1345 * selection constant indicating that a full line should be
|
|
1346 * drawn. (value is 1<<16).
|
|
1347 * <br>Note that for some widgets this is a <em>HINT</em>.
|
|
1348 * <p><b>Used By:</b><ul>
|
|
1349 * <li><code>Table</code></li>
|
|
1350 * <li><code>Tree</code></li>
|
|
1351 * <li><code>StyledText</code></li>
|
|
1352 * <li><code>TextLayout</code></li>
|
|
1353 * </ul></p>
|
|
1354 */
|
|
1355 public static const int FULL_SELECTION = 1 << 16;
|
|
1356
|
|
1357 /**
|
|
1358 * Style constant for flat appearance. (value is 1<<23).
|
|
1359 * <br>Note that this is a <em>HINT</em>.
|
|
1360 * <p><b>Used By:</b><ul>
|
|
1361 * <li><code>Button</code></li>
|
|
1362 * <li><code>ToolBar</code></li>
|
|
1363 * </ul></p>
|
|
1364 */
|
|
1365 public static const int FLAT = 1 << 23;
|
|
1366
|
|
1367 /**
|
|
1368 * Style constant for smooth appearance. (value is 1<<16).
|
|
1369 * <br>Note that this is a <em>HINT</em>.
|
|
1370 * <p><b>Used By:</b><ul>
|
|
1371 * <li><code>ProgressBar</code></li>
|
|
1372 * <li><code>Sash</code></li>
|
|
1373 * </ul></p>
|
|
1374 */
|
|
1375 public static const int SMOOTH = 1 << 16;
|
|
1376
|
|
1377 /**
|
|
1378 * Style constant for no background behavior (value is 1<<18).
|
|
1379 * <p>
|
|
1380 * By default, before a widget paints, the client area is filled with the current background.
|
|
1381 * When this style is specified, the background is not filled, and the application is responsible
|
|
1382 * for filling every pixel of the client area.
|
|
1383 * This style might be used as an alternative to "double-buffering" in order to reduce flicker.
|
|
1384 * This style does not mean "transparent" - widgets that are obscured will not draw through.
|
|
1385 * </p><p><b>Used By:</b><ul>
|
|
1386 * <li><code>Composite</code></li>
|
|
1387 * </ul></p>
|
|
1388 */
|
|
1389 public static const int NO_BACKGROUND = 1 << 18;
|
|
1390
|
|
1391 /**
|
|
1392 * Style constant for no focus from the mouse behavior (value is 1<<19).
|
|
1393 * <p>
|
|
1394 * Normally, when the user clicks on a control, focus is assigned to that
|
|
1395 * control, providing the control has no children. Some controls, such as
|
|
1396 * tool bars and sashes, don't normally take focus when the mouse is clicked
|
|
1397 * or accept focus when assigned from within the program. This style allows
|
|
1398 * Composites to implement "no focus" mouse behavior.
|
|
1399 *
|
|
1400 * <br>Note that this is a <em>HINT</em>.
|
|
1401 * </p>
|
|
1402 * <p><b>Used By:</b><ul>
|
|
1403 * <li><code>Composite</code></li>
|
|
1404 * </ul></p>
|
|
1405 */
|
|
1406 public static const int NO_FOCUS = 1 << 19;
|
|
1407
|
|
1408 /**
|
|
1409 * Style constant for no redraw on resize behavior (value is 1<<20).
|
|
1410 * <p>
|
|
1411 * This style stops the entire client area from being invalidated when the size
|
|
1412 * of the Canvas changes. Specifically, when the size of the Canvas gets smaller,
|
|
1413 * the SWT.Paint event is not sent. When it gets bigger, an SWT.Paint event is
|
|
1414 * sent with a GC clipped to only the new areas to be painted. Without this
|
|
1415 * style, the entire client area will be repainted.
|
|
1416 *
|
|
1417 * <br>Note that this is a <em>HINT</em>.
|
|
1418 * </p><p><b>Used By:</b><ul>
|
|
1419 * <li><code>Composite</code></li>
|
|
1420 * </ul></p>
|
|
1421 */
|
|
1422 public static const int NO_REDRAW_RESIZE = 1 << 20;
|
|
1423
|
|
1424 /**
|
|
1425 * Style constant for no paint event merging behavior (value is 1<<21).
|
|
1426 *
|
|
1427 * <br>Note that this is a <em>HINT</em>.
|
|
1428 * <p><b>Used By:</b><ul>
|
|
1429 * <li><code>Composite</code></li>
|
|
1430 * </ul></p>
|
|
1431 */
|
|
1432 public static const int NO_MERGE_PAINTS = 1 << 21;
|
|
1433
|
|
1434 /**
|
|
1435 * Style constant for preventing child radio group behavior (value is 1<<22).
|
|
1436 * <p><b>Used By:</b><ul>
|
|
1437 * <li><code>Composite</code></li>
|
|
1438 * </ul></p>
|
|
1439 */
|
|
1440 public static const int NO_RADIO_GROUP = 1 << 22;
|
|
1441
|
|
1442 /**
|
|
1443 * Style constant for left to right orientation (value is 1<<25).
|
|
1444 * <p>
|
|
1445 * When orientation is not explicitly specified, orientation is
|
|
1446 * inherited. This means that children will be assigned the
|
|
1447 * orientation of their parent. To override this behavior and
|
|
1448 * force an orientation for a child, explicitly set the orientation
|
|
1449 * of the child when that child is created.
|
|
1450 * <br>Note that this is a <em>HINT</em>.
|
|
1451 * </p>
|
|
1452 * <p><b>Used By:</b><ul>
|
|
1453 * <li><code>Control</code></li>
|
|
1454 * <li><code>Menu</code></li>
|
|
1455 * <li><code>GC</code></li>
|
|
1456 * </ul></p>
|
|
1457 *
|
|
1458 * @since 2.1.2
|
|
1459 */
|
|
1460 public static const int LEFT_TO_RIGHT = 1 << 25;
|
|
1461
|
|
1462 /**
|
|
1463 * Style constant for right to left orientation (value is 1<<26).
|
|
1464 * <p>
|
|
1465 * When orientation is not explicitly specified, orientation is
|
|
1466 * inherited. This means that children will be assigned the
|
|
1467 * orientation of their parent. To override this behavior and
|
|
1468 * force an orientation for a child, explicitly set the orientation
|
|
1469 * of the child when that child is created.
|
|
1470 * <br>Note that this is a <em>HINT</em>.
|
|
1471 * </p>
|
|
1472 * <p><b>Used By:</b><ul>
|
|
1473 * <li><code>Control</code></li>
|
|
1474 * <li><code>Menu</code></li>
|
|
1475 * <li><code>GC</code></li>
|
|
1476 * </ul></p>
|
|
1477 *
|
|
1478 * @since 2.1.2
|
|
1479 */
|
|
1480 public static const int RIGHT_TO_LEFT = 1 << 26;
|
|
1481
|
|
1482 /**
|
|
1483 * Style constant to indicate coordinate mirroring (value is 1<<27).
|
|
1484 * <p><b>Used By:</b><ul>
|
|
1485 * <li><code>Control</code></li>
|
|
1486 * <li><code>Menu</code></li>
|
|
1487 * </ul></p>
|
|
1488 *
|
|
1489 * @since 2.1.2
|
|
1490 */
|
|
1491 public static const int MIRRORED = 1 << 27;
|
|
1492
|
|
1493 /**
|
|
1494 * Style constant to allow embedding (value is 1<<24).
|
|
1495 * <p><b>Used By:</b><ul>
|
|
1496 * <li><code>Composite</code></li>
|
|
1497 * </ul></p>
|
|
1498 *
|
|
1499 * @since 3.0
|
|
1500 */
|
|
1501 public static const int EMBEDDED = 1 << 24;
|
|
1502
|
|
1503 /**
|
|
1504 * Style constant to allow virtual data (value is 1<<28).
|
|
1505 * <p><b>Used By:</b><ul>
|
|
1506 * <li><code>Table</code></li>
|
|
1507 * <li><code>Tree</code></li>
|
|
1508 * </ul></p>
|
|
1509 *
|
|
1510 * @since 3.0
|
|
1511 */
|
|
1512 public static const int VIRTUAL = 1 << 28;
|
|
1513
|
|
1514 /**
|
|
1515 * Style constant to indicate double buffering (value is 1<<29).
|
|
1516 * <p><b>Used By:</b><ul>
|
|
1517 * <li><code>Control</code></li>
|
|
1518 * </ul></p>
|
|
1519 *
|
|
1520 * @since 3.1
|
|
1521 */
|
|
1522 public static const int DOUBLE_BUFFERED = 1 << 29;
|
|
1523
|
|
1524 /**
|
|
1525 * Style constant for transparent behavior (value is 1<<30).
|
|
1526 * <p>
|
|
1527 * By default, before a widget paints, the client area is filled with the current background.
|
|
1528 * When this style is specified, the background is not filled and widgets that are obscured
|
|
1529 * will draw through.
|
|
1530 * </p><p><b>Used By:</b><ul>
|
|
1531 * <li><code>Composite</code></li>
|
|
1532 * </ul></p>
|
|
1533 *
|
|
1534 * @since 3.4
|
|
1535 *
|
|
1536 * WARNING: THIS API IS UNDER CONSTRUCTION AND SHOULD NOT BE USED
|
|
1537 */
|
|
1538 public static const int TRANSPARENT = 1 << 30;
|
|
1539
|
|
1540 /**
|
|
1541 * Style constant for align up behavior (value is 1<<7,
|
|
1542 * since align UP and align TOP are considered the same).
|
|
1543 * <p><b>Used By:</b><ul>
|
|
1544 * <li><code>Button</code> with <code>ARROW</code> style</li>
|
|
1545 * <li><code>Tracker</code></li>
|
|
1546 * <li><code>Table</code></li>
|
|
1547 * <li><code>Tree</code></li>
|
|
1548 * </ul></p>
|
|
1549 */
|
|
1550 public static const int UP = 1 << 7;
|
|
1551
|
|
1552 /**
|
|
1553 * Style constant to indicate single underline (value is 0).
|
|
1554 * <p><b>Used By:</b><ul>
|
|
1555 * <li><code>TextStyle</code></li>
|
|
1556 * </ul></p>
|
|
1557 *
|
|
1558 * @since 3.4
|
|
1559 */
|
|
1560 public static const int UNDERLINE_SINGLE = 0;
|
|
1561
|
|
1562 /**
|
|
1563 * Style constant to indicate double underline (value is 1).
|
|
1564 * <p><b>Used By:</b><ul>
|
|
1565 * <li><code>TextStyle</code></li>
|
|
1566 * </ul></p>
|
|
1567 *
|
|
1568 * @since 3.4
|
|
1569 */
|
|
1570 public static const int UNDERLINE_DOUBLE = 1;
|
|
1571
|
|
1572 /**
|
|
1573 * Style constant to indicate error underline (value is 2).
|
|
1574 * <p><b>Used By:</b><ul>
|
|
1575 * <li><code>TextStyle</code></li>
|
|
1576 * </ul></p>
|
|
1577 *
|
|
1578 * @since 3.4
|
|
1579 */
|
|
1580 public static const int UNDERLINE_ERROR = 2;
|
|
1581
|
|
1582 /**
|
|
1583 * Style constant to indicate squiggle underline (value is 3).
|
|
1584 * <p><b>Used By:</b><ul>
|
|
1585 * <li><code>TextStyle</code></li>
|
|
1586 * </ul></p>
|
|
1587 *
|
|
1588 * @since 3.4
|
|
1589 */
|
|
1590 public static const int UNDERLINE_SQUIGGLE = 3;
|
|
1591
|
|
1592 /**
|
|
1593 * Style constant to indicate solid border (value is 1).
|
|
1594 * <p><b>Used By:</b><ul>
|
|
1595 * <li><code>TextStyle</code></li>
|
|
1596 * </ul></p>
|
|
1597 *
|
|
1598 * @since 3.4
|
|
1599 */
|
|
1600 public static const int BORDER_SOLID = 1;
|
|
1601
|
|
1602 /**
|
|
1603 * Style constant to indicate dashed border (value is 2).
|
|
1604 * <p><b>Used By:</b><ul>
|
|
1605 * <li><code>TextStyle</code></li>
|
|
1606 * </ul></p>
|
|
1607 *
|
|
1608 * @since 3.4
|
|
1609 */
|
|
1610 public static const int BORDER_DASH = 2;
|
|
1611
|
|
1612 /**
|
|
1613 * Style constant to indicate dotted border (value is 4).
|
|
1614 * <p><b>Used By:</b><ul>
|
|
1615 * <li><code>TextStyle</code></li>
|
|
1616 * </ul></p>
|
|
1617 *
|
|
1618 * @since 3.4
|
|
1619 */
|
|
1620 public static const int BORDER_DOT = 4;
|
|
1621
|
|
1622 /**
|
|
1623 * Style constant for align top behavior (value is 1<<7,
|
|
1624 * since align UP and align TOP are considered the same).
|
|
1625 * <p><b>Used By:</b><ul>
|
|
1626 * <li><code>FormAttachment</code> in a <code>FormLayout</code></li>
|
|
1627 * </ul></p>
|
|
1628 */
|
|
1629 public static const int TOP = UP;
|
|
1630
|
|
1631 /**
|
|
1632 * Style constant for align down behavior (value is 1<<10,
|
|
1633 * since align DOWN and align BOTTOM are considered the same).
|
|
1634 * <p><b>Used By:</b><ul>
|
|
1635 * <li><code>Button</code> with <code>ARROW</code> style</li>
|
|
1636 * <li><code>Tracker</code></li>
|
|
1637 * <li><code>Table</code></li>
|
|
1638 * <li><code>Tree</code></li>
|
|
1639 * </ul></p>
|
|
1640 */
|
|
1641 public static const int DOWN = 1 << 10;
|
|
1642
|
|
1643 /**
|
|
1644 * Style constant for align bottom behavior (value is 1<<10,
|
|
1645 * since align DOWN and align BOTTOM are considered the same).
|
|
1646 * <p><b>Used By:</b><ul>
|
|
1647 * <li><code>FormAttachment</code> in a <code>FormLayout</code></li>
|
|
1648 * </ul></p>
|
|
1649 */
|
|
1650 public static const int BOTTOM = DOWN;
|
|
1651
|
|
1652 /**
|
|
1653 * Style constant for leading alignment (value is 1<<14).
|
|
1654 * <p><b>Used By:</b><ul>
|
|
1655 * <li><code>Button</code></li>
|
|
1656 * <li><code>Label</code></li>
|
|
1657 * <li><code>TableColumn</code></li>
|
|
1658 * <li><code>Tracker</code></li>
|
|
1659 * <li><code>FormAttachment</code> in a <code>FormLayout</code></li>
|
|
1660 * </ul></p>
|
|
1661 *
|
|
1662 * @since 2.1.2
|
|
1663 */
|
|
1664 public static const int LEAD = 1 << 14;
|
|
1665
|
|
1666 /**
|
|
1667 * Style constant for align left behavior (value is 1<<14).
|
|
1668 * This is a synonym for LEAD (value is 1<<14). Newer
|
|
1669 * applications should use LEAD instead of LEFT to make code more
|
|
1670 * understandable on right-to-left platforms.
|
|
1671 */
|
|
1672 public static const int LEFT = LEAD;
|
|
1673
|
|
1674 /**
|
|
1675 * Style constant for trailing alignment (value is 1<<17).
|
|
1676 * <p><b>Used By:</b><ul>
|
|
1677 * <li><code>Button</code></li>
|
|
1678 * <li><code>Label</code></li>
|
|
1679 * <li><code>TableColumn</code></li>
|
|
1680 * <li><code>Tracker</code></li>
|
|
1681 * <li><code>FormAttachment</code> in a <code>FormLayout</code></li>
|
|
1682 * </ul></p>
|
|
1683 *
|
|
1684 * @since 2.1.2
|
|
1685 */
|
|
1686 public static const int TRAIL = 1 << 17;
|
|
1687
|
|
1688 /**
|
|
1689 * Style constant for align right behavior (value is 1<<17).
|
|
1690 * This is a synonym for TRAIL (value is 1<<17). Newer
|
|
1691 * applications should use TRAIL instead of RIGHT to make code more
|
|
1692 * understandable on right-to-left platforms.
|
|
1693 */
|
|
1694 public static const int RIGHT = TRAIL;
|
|
1695
|
|
1696 /**
|
|
1697 * Style constant for align center behavior (value is 1<<24).
|
|
1698 * <p><b>Used By:</b><ul>
|
|
1699 * <li><code>Button</code></li>
|
|
1700 * <li><code>Label</code></li>
|
|
1701 * <li><code>TableColumn</code></li>
|
|
1702 * <li><code>FormAttachment</code> in a <code>FormLayout</code></li>
|
|
1703 * </ul></p>
|
|
1704 */
|
|
1705 public static const int CENTER = 1 << 24;
|
|
1706
|
|
1707 /**
|
|
1708 * Style constant for horizontal alignment or orientation behavior (value is 1<<8).
|
|
1709 * <p><b>Used By:</b><ul>
|
|
1710 * <li><code>Label</code></li>
|
|
1711 * <li><code>ProgressBar</code></li>
|
|
1712 * <li><code>Sash</code></li>
|
|
1713 * <li><code>Scale</code></li>
|
|
1714 * <li><code>ScrollBar</code></li>
|
|
1715 * <li><code>Slider</code></li>
|
|
1716 * <li><code>ToolBar</code></li>
|
|
1717 * <li><code>FillLayout</code> type</li>
|
|
1718 * <li><code>RowLayout</code> type</li>
|
|
1719 * </ul></p>
|
|
1720 */
|
|
1721 public static const int HORIZONTAL = 1 << 8;
|
|
1722
|
|
1723 /**
|
|
1724 * Style constant for vertical alignment or orientation behavior (value is 1<<9).
|
|
1725 * <p><b>Used By:</b><ul>
|
|
1726 * <li><code>Label</code></li>
|
|
1727 * <li><code>ProgressBar</code></li>
|
|
1728 * <li><code>Sash</code></li>
|
|
1729 * <li><code>Scale</code></li>
|
|
1730 * <li><code>ScrollBar</code></li>
|
|
1731 * <li><code>Slider</code></li>
|
|
1732 * <li><code>ToolBar</code></li>
|
|
1733 * <li><code>CoolBar</code></li>
|
|
1734 * <li><code>FillLayout</code> type</li>
|
|
1735 * <li><code>RowLayout</code> type</li>
|
|
1736 * </ul></p>
|
|
1737 */
|
|
1738 public static const int VERTICAL = 1 << 9;
|
|
1739
|
|
1740 /**
|
|
1741 * Style constant for date display (value is 1<<5).
|
|
1742 * <p><b>Used By:</b><ul>
|
|
1743 * <li><code>DateTime</code></li>
|
|
1744 * </ul></p>
|
|
1745 *
|
|
1746 * @since 3.3
|
|
1747 */
|
|
1748 public static const int DATE = 1 << 5;
|
|
1749
|
|
1750 /**
|
|
1751 * Style constant for time display (value is 1<<7).
|
|
1752 * <p><b>Used By:</b><ul>
|
|
1753 * <li><code>DateTime</code></li>
|
|
1754 * </ul></p>
|
|
1755 *
|
|
1756 * @since 3.3
|
|
1757 */
|
|
1758 public static const int TIME = 1 << 7;
|
|
1759
|
|
1760 /**
|
|
1761 * Style constant for calendar display (value is 1<<10).
|
|
1762 * <p><b>Used By:</b><ul>
|
|
1763 * <li><code>DateTime</code></li>
|
|
1764 * </ul></p>
|
|
1765 *
|
|
1766 * @since 3.3
|
|
1767 */
|
|
1768 public static const int CALENDAR = 1 << 10;
|
|
1769
|
|
1770 /**
|
|
1771 * Style constant for short date/time format (value is 1<<15).
|
|
1772 * <p>
|
|
1773 * A short date displays the month and year.
|
|
1774 * A short time displays hours and minutes.
|
|
1775 * <br>Note that this is a <em>HINT</em>.
|
|
1776 * </p>
|
|
1777 * <p><b>Used By:</b><ul>
|
|
1778 * <li><code>DateTime</code></li>
|
|
1779 * </ul></p>
|
|
1780 *
|
|
1781 * @since 3.3
|
|
1782 */
|
|
1783 public static const int SHORT = 1 << 15;
|
|
1784
|
|
1785 /**
|
|
1786 * Style constant for medium date/time format (value is 1<<16).
|
|
1787 * <p>
|
|
1788 * A medium date displays the day, month and year.
|
|
1789 * A medium time displays hours, minutes, and seconds.
|
|
1790 * <br>Note that this is a <em>HINT</em>.
|
|
1791 * </p>
|
|
1792 * <p><b>Used By:</b><ul>
|
|
1793 * <li><code>DateTime</code></li>
|
|
1794 * </ul></p>
|
|
1795 *
|
|
1796 * @since 3.3
|
|
1797 */
|
|
1798 public static const int MEDIUM = 1 << 16;
|
|
1799
|
|
1800 /**
|
|
1801 * Style constant for long date/time format (value is 1<<28).
|
|
1802 * <p>
|
|
1803 * A long date displays the day, month and year.
|
|
1804 * A long time displays hours, minutes, and seconds.
|
|
1805 * The day and month names may be displayed.
|
|
1806 * <br>Note that this is a <em>HINT</em>.
|
|
1807 * </p>
|
|
1808 * <p><b>Used By:</b><ul>
|
|
1809 * <li><code>DateTime</code></li>
|
|
1810 * </ul></p>
|
|
1811 *
|
|
1812 * @since 3.3
|
|
1813 */
|
|
1814 public static const int LONG = 1 << 28;
|
|
1815
|
|
1816 /**
|
|
1817 * Style constant specifying that a Browser should use a Mozilla GRE
|
|
1818 * for rendering its content (value is 1<<15).
|
|
1819 * <p>
|
|
1820 * <p><b>Used By:</b><ul>
|
|
1821 * <li><code>Browser</code></li>
|
|
1822 * </ul></p>
|
|
1823 *
|
|
1824 * @since 3.3
|
|
1825 */
|
|
1826 public static const int MOZILLA = 1 << 15;
|
|
1827
|
|
1828 /**
|
|
1829 * Style constant for balloon behavior (value is 1<<12).
|
|
1830 * <p><b>Used By:</b><ul>
|
|
1831 * <li><code>ToolTip</code></li>
|
|
1832 * </ul></p>
|
|
1833 *
|
|
1834 * @since 3.2
|
|
1835 */
|
|
1836 public static const int BALLOON = 1 << 12;
|
|
1837
|
|
1838 /**
|
|
1839 * Style constant for vertical alignment or orientation behavior (value is 1).
|
|
1840 * <p><b>Used By:</b><ul>
|
|
1841 * <li><code>GridLayout</code> type</li>
|
|
1842 * </ul></p>
|
|
1843 */
|
|
1844 public static const int BEGINNING = 1;
|
|
1845
|
|
1846 /**
|
|
1847 * Style constant for vertical alignment or orientation behavior (value is 4).
|
|
1848 * <p><b>Used By:</b><ul>
|
|
1849 * <li><code>GridLayout</code> type</li>
|
|
1850 * </ul></p>
|
|
1851 */
|
|
1852 public static const int FILL = 4;
|
|
1853
|
|
1854 /**
|
|
1855 * Input Method Editor style constant for double byte
|
|
1856 * input behavior (value is 1<<1).
|
|
1857 */
|
|
1858 public static const int DBCS = 1 << 1;
|
|
1859
|
|
1860 /**
|
|
1861 * Input Method Editor style constant for alpha
|
|
1862 * input behavior (value is 1<<2).
|
|
1863 */
|
|
1864 public static const int ALPHA = 1 << 2;
|
|
1865
|
|
1866 /**
|
|
1867 * Input Method Editor style constant for native
|
|
1868 * input behavior (value is 1<<3).
|
|
1869 */
|
|
1870 public static const int NATIVE = 1 << 3;
|
|
1871
|
|
1872 /**
|
|
1873 * Input Method Editor style constant for phonetic
|
|
1874 * input behavior (value is 1<<4).
|
|
1875 */
|
|
1876 public static const int PHONETIC = 1 << 4;
|
|
1877
|
|
1878 /**
|
|
1879 * Input Method Editor style constant for romanicized
|
|
1880 * input behavior (value is 1<<5).
|
|
1881 */
|
|
1882 public static const int ROMAN = 1 << 5;
|
|
1883
|
|
1884 /**
|
|
1885 * ASCII character convenience constant for the backspace character
|
|
1886 * (value is the <code>char</code> '\b').
|
|
1887 */
|
|
1888 public static const char BS = '\b';
|
|
1889
|
|
1890 /**
|
|
1891 * ASCII character convenience constant for the carriage return character
|
|
1892 * (value is the <code>char</code> '\r').
|
|
1893 */
|
|
1894 public static const char CR = '\r';
|
|
1895
|
|
1896 /**
|
|
1897 * ASCII character convenience constant for the delete character
|
|
1898 * (value is the <code>char</code> with value 127).
|
|
1899 */
|
|
1900 public static const char DEL = 0x7F;
|
|
1901
|
|
1902 /**
|
|
1903 * ASCII character convenience constant for the escape character
|
|
1904 * (value is the <code>char</code> with value 27).
|
|
1905 */
|
|
1906 public static const char ESC = 0x1B;
|
|
1907
|
|
1908 /**
|
|
1909 * ASCII character convenience constant for the line feed character
|
|
1910 * (value is the <code>char</code> '\n').
|
|
1911 */
|
|
1912 public static const char LF = '\n';
|
|
1913
|
|
1914 /**
|
|
1915 * ASCII character convenience constant for the tab character
|
|
1916 * (value is the <code>char</code> '\t').
|
|
1917 *
|
|
1918 * @since 2.1
|
|
1919 */
|
|
1920 public static const char TAB = '\t';
|
|
1921
|
|
1922 /**
|
|
1923 * keyboard and/or mouse event mask indicating that the ALT key
|
|
1924 * was pushed on the keyboard when the event was generated
|
|
1925 * (value is 1<<16).
|
|
1926 */
|
|
1927 public static const int ALT = 1 << 16;
|
|
1928
|
|
1929 /**
|
|
1930 * Keyboard and/or mouse event mask indicating that the SHIFT key
|
|
1931 * was pushed on the keyboard when the event was generated
|
|
1932 * (value is 1<<17).
|
|
1933 */
|
|
1934 public static const int SHIFT = 1 << 17;
|
|
1935
|
|
1936 /**
|
|
1937 * Keyboard and/or mouse event mask indicating that the CTRL key
|
|
1938 * was pushed on the keyboard when the event was generated
|
|
1939 * (value is 1<<18).
|
|
1940 */
|
|
1941 public static const int CTRL = 1 << 18;
|
|
1942
|
|
1943 /**
|
|
1944 * Keyboard and/or mouse event mask indicating that the CTRL key
|
|
1945 * was pushed on the keyboard when the event was generated. This
|
|
1946 * is a synonym for CTRL (value is 1<<18).
|
|
1947 */
|
|
1948 public static const int CONTROL = CTRL;
|
|
1949
|
|
1950 /**
|
|
1951 * Keyboard and/or mouse event mask indicating that the COMMAND key
|
|
1952 * was pushed on the keyboard when the event was generated
|
|
1953 * (value is 1<<22).
|
|
1954 *
|
|
1955 * @since 2.1
|
|
1956 */
|
|
1957 public static const int COMMAND = 1 << 22;
|
|
1958
|
|
1959 /**
|
|
1960 * Keyboard and/or mouse event mask indicating all possible
|
|
1961 * keyboard modifiers.
|
|
1962 *
|
|
1963 * To allow for the future, this mask is intended to be used in
|
|
1964 * place of code that references each individual keyboard mask.
|
|
1965 * For example, the following expression will determine whether
|
|
1966 * any modifier is pressed and will continue to work as new modifier
|
|
1967 * masks are added.
|
|
1968 *
|
|
1969 * <code>(stateMask & SWT.MODIFIER_MASK) != 0</code>.
|
|
1970 *
|
|
1971 * @since 2.1
|
|
1972 */
|
|
1973 public static const int MODIFIER_MASK = ALT | SHIFT | CTRL | COMMAND;
|
|
1974
|
|
1975 /**
|
|
1976 * Keyboard and/or mouse event mask indicating that mouse button one
|
|
1977 * was pushed when the event was generated. (value is 1<<19).
|
|
1978 */
|
|
1979 public static const int BUTTON1 = 1 << 19;
|
|
1980
|
|
1981 /**
|
|
1982 * Keyboard and/or mouse event mask indicating that mouse button two
|
|
1983 * was pushed when the event was generated. (value is 1<<20).
|
|
1984 */
|
|
1985 public static const int BUTTON2 = 1 << 20;
|
|
1986
|
|
1987 /**
|
|
1988 * Keyboard and/or mouse event mask indicating that mouse button three
|
|
1989 * was pushed when the event was generated. (value is 1<<21).
|
|
1990 */
|
|
1991 public static const int BUTTON3 = 1 << 21;
|
|
1992
|
|
1993 /**
|
|
1994 * Keyboard and/or mouse event mask indicating that mouse button four
|
|
1995 * was pushed when the event was generated. (value is 1<<23).
|
|
1996 *
|
|
1997 * @since 3.1
|
|
1998 */
|
|
1999 public static const int BUTTON4 = 1 << 23;
|
|
2000
|
|
2001 /**
|
|
2002 * Keyboard and/or mouse event mask indicating that mouse button five
|
|
2003 * was pushed when the event was generated. (value is 1<<25).
|
|
2004 *
|
|
2005 * @since 3.1
|
|
2006 */
|
|
2007 public static const int BUTTON5 = 1 << 25;
|
|
2008
|
|
2009 /**
|
|
2010 * Keyboard and/or mouse event mask indicating all possible
|
|
2011 * mouse buttons.
|
|
2012 *
|
|
2013 * To allow for the future, this mask is intended to be used
|
|
2014 * in place of code that references each individual button mask.
|
|
2015 * For example, the following expression will determine whether
|
|
2016 * any button is pressed and will continue to work as new button
|
|
2017 * masks are added.
|
|
2018 *
|
|
2019 * <code>(stateMask & SWT.BUTTON_MASK) != 0</code>.
|
|
2020 *
|
|
2021 * @since 2.1
|
|
2022 */
|
|
2023 public static const int BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5;
|
|
2024
|
|
2025 /**
|
|
2026 * Keyboard and/or mouse event mask indicating that the MOD1 key
|
|
2027 * was pushed on the keyboard when the event was generated.
|
|
2028 *
|
|
2029 * This is the primary keyboard modifier for the platform.
|
|
2030 *
|
|
2031 * @since 2.1
|
|
2032 */
|
|
2033 version(CARBON){
|
|
2034 public static const int MOD1 = COMMAND;
|
|
2035 }
|
|
2036 else{
|
|
2037 public static const int MOD1 = CONTROL;
|
|
2038 }
|
|
2039
|
|
2040 /**
|
|
2041 * Keyboard and/or mouse event mask indicating that the MOD2 key
|
|
2042 * was pushed on the keyboard when the event was generated.
|
|
2043 *
|
|
2044 * This is the secondary keyboard modifier for the platform.
|
|
2045 *
|
|
2046 * @since 2.1
|
|
2047 */
|
|
2048 version(CARBON){
|
|
2049 public static const int MOD2 = SHIFT;
|
|
2050 }
|
|
2051 else{
|
|
2052 public static const int MOD2 = SHIFT;
|
|
2053 }
|
|
2054
|
|
2055 /**
|
|
2056 * Keyboard and/or mouse event mask indicating that the MOD3 key
|
|
2057 * was pushed on the keyboard when the event was generated.
|
|
2058 *
|
|
2059 * @since 2.1
|
|
2060 */
|
|
2061 version(CARBON){
|
|
2062 public static const int MOD3 = ALT;
|
|
2063 }
|
|
2064 else{
|
|
2065 public static const int MOD3 = ALT;
|
|
2066 }
|
|
2067
|
|
2068 /**
|
|
2069 * Keyboard and/or mouse event mask indicating that the MOD4 key
|
|
2070 * was pushed on the keyboard when the event was generated.
|
|
2071 *
|
|
2072 * @since 2.1
|
|
2073 */
|
|
2074 version(CARBON){
|
|
2075 public static const int MOD4 = CONTROL;
|
|
2076 }
|
|
2077 else{
|
|
2078 public static const int MOD4 = 0;
|
|
2079 }
|
|
2080
|
|
2081 /**
|
|
2082 * Constants to indicate line scrolling (value is 1).
|
|
2083 * <p><b>Used By:</b><ul>
|
|
2084 * <li><code>Control</code></li>
|
|
2085 * </ul></p>
|
|
2086 *
|
|
2087 * @since 3.1
|
|
2088 */
|
|
2089 public static const int SCROLL_LINE = 1;
|
|
2090
|
|
2091 /**
|
|
2092 * Constants to indicate page scrolling (value is 2).
|
|
2093 * <p><b>Used By:</b><ul>
|
|
2094 * <li><code>Control</code></li>
|
|
2095 * </ul></p>
|
|
2096 *
|
|
2097 * @since 3.1
|
|
2098 */
|
|
2099 public static const int SCROLL_PAGE = 2;
|
|
2100
|
|
2101 /**
|
|
2102 * Accelerator constant used to differentiate a key code from a
|
|
2103 * unicode character.
|
|
2104 *
|
|
2105 * If this bit is set, then the key stroke
|
|
2106 * portion of an accelerator represents a key code. If this bit
|
|
2107 * is not set, then the key stroke portion of an accelerator is
|
|
2108 * a unicode character.
|
|
2109 *
|
|
2110 * The following expression is false:
|
|
2111 *
|
|
2112 * <code>((SWT.MOD1 | SWT.MOD2 | 'T') & SWT.KEYCODE_BIT) != 0</code>.
|
|
2113 *
|
|
2114 * The following expression is true:
|
|
2115 *
|
|
2116 * <code>((SWT.MOD3 | SWT.F2) & SWT.KEYCODE_BIT) != 0</code>.
|
|
2117 *
|
|
2118 * (value is (1<<24))
|
|
2119 *
|
|
2120 * @since 2.1
|
|
2121 */
|
|
2122 public static const int KEYCODE_BIT = (1 << 24);
|
|
2123
|
|
2124 /**
|
|
2125 * Accelerator constant used to extract the key stroke portion of
|
|
2126 * an accelerator.
|
|
2127 *
|
|
2128 * The key stroke may be a key code or a unicode
|
|
2129 * value. If the key stroke is a key code <code>KEYCODE_BIT</code>
|
|
2130 * will be set.
|
|
2131 *
|
|
2132 * @since 2.1
|
|
2133 */
|
|
2134 public static const int KEY_MASK = KEYCODE_BIT + 0xFFFF;
|
|
2135
|
|
2136 /**
|
|
2137 * Keyboard event constant representing the UP ARROW key
|
|
2138 * (value is (1<<24)+1).
|
|
2139 */
|
|
2140 public static const int ARROW_UP = KEYCODE_BIT + 1;
|
|
2141
|
|
2142 /**
|
|
2143 * Keyboard event constant representing the DOWN ARROW key
|
|
2144 * (value is (1<<24)+2).
|
|
2145 */
|
|
2146 public static const int ARROW_DOWN = KEYCODE_BIT + 2;
|
|
2147
|
|
2148 /**
|
|
2149 * Keyboard event constant representing the LEFT ARROW key
|
|
2150 * (value is (1<<24)+3).
|
|
2151 */
|
|
2152 public static const int ARROW_LEFT = KEYCODE_BIT + 3;
|
|
2153
|
|
2154 /**
|
|
2155 * Keyboard event constant representing the RIGHT ARROW key
|
|
2156 * (value is (1<<24)+4).
|
|
2157 */
|
|
2158 public static const int ARROW_RIGHT = KEYCODE_BIT + 4;
|
|
2159
|
|
2160 /**
|
|
2161 * Keyboard event constant representing the PAGE UP key
|
|
2162 * (value is (1<<24)+5).
|
|
2163 */
|
|
2164 public static const int PAGE_UP = KEYCODE_BIT + 5;
|
|
2165
|
|
2166 /**
|
|
2167 * Keyboard event constant representing the PAGE DOWN key
|
|
2168 * (value is (1<<24)+6).
|
|
2169 */
|
|
2170 public static const int PAGE_DOWN = KEYCODE_BIT + 6;
|
|
2171
|
|
2172 /**
|
|
2173 * Keyboard event constant representing the HOME key
|
|
2174 * (value is (1<<24)+7).
|
|
2175 */
|
|
2176 public static const int HOME = KEYCODE_BIT + 7;
|
|
2177
|
|
2178 /**
|
|
2179 * Keyboard event constant representing the END key
|
|
2180 * (value is (1<<24)+8).
|
|
2181 */
|
|
2182 public static const int END = KEYCODE_BIT + 8;
|
|
2183
|
|
2184 /**
|
|
2185 * Keyboard event constant representing the INSERT key
|
|
2186 * (value is (1<<24)+9).
|
|
2187 */
|
|
2188 public static const int INSERT = KEYCODE_BIT + 9;
|
|
2189
|
|
2190 /**
|
|
2191 * Keyboard event constant representing the F1 key
|
|
2192 * (value is (1<<24)+10).
|
|
2193 */
|
|
2194 public static const int F1 = KEYCODE_BIT + 10;
|
|
2195
|
|
2196 /**
|
|
2197 * Keyboard event constant representing the F2 key
|
|
2198 * (value is (1<<24)+11).
|
|
2199 */
|
|
2200 public static const int F2 = KEYCODE_BIT + 11;
|
|
2201
|
|
2202 /**
|
|
2203 * Keyboard event constant representing the F3 key
|
|
2204 * (value is (1<<24)+12).
|
|
2205 */
|
|
2206 public static const int F3 = KEYCODE_BIT + 12;
|
|
2207
|
|
2208 /**
|
|
2209 * Keyboard event constant representing the F4 key
|
|
2210 * (value is (1<<24)+13).
|
|
2211 */
|
|
2212 public static const int F4 = KEYCODE_BIT + 13;
|
|
2213
|
|
2214 /**
|
|
2215 * Keyboard event constant representing the F5 key
|
|
2216 * (value is (1<<24)+14).
|
|
2217 */
|
|
2218 public static const int F5 = KEYCODE_BIT + 14;
|
|
2219
|
|
2220 /**
|
|
2221 * Keyboard event constant representing the F6 key
|
|
2222 * (value is (1<<24)+15).
|
|
2223 */
|
|
2224 public static const int F6 = KEYCODE_BIT + 15;
|
|
2225
|
|
2226 /**
|
|
2227 * Keyboard event constant representing the F7 key
|
|
2228 * (value is (1<<24)+16).
|
|
2229 */
|
|
2230 public static const int F7 = KEYCODE_BIT + 16;
|
|
2231
|
|
2232 /**
|
|
2233 * Keyboard event constant representing the F8 key
|
|
2234 * (value is (1<<24)+17).
|
|
2235 */
|
|
2236 public static const int F8 = KEYCODE_BIT + 17;
|
|
2237
|
|
2238 /**
|
|
2239 * Keyboard event constant representing the F9 key
|
|
2240 * (value is (1<<24)+18).
|
|
2241 */
|
|
2242 public static const int F9 = KEYCODE_BIT + 18;
|
|
2243
|
|
2244 /**
|
|
2245 * Keyboard event constant representing the F10 key
|
|
2246 * (value is (1<<24)+19).
|
|
2247 */
|
|
2248 public static const int F10 = KEYCODE_BIT + 19;
|
|
2249
|
|
2250 /**
|
|
2251 * Keyboard event constant representing the F11 key
|
|
2252 * (value is (1<<24)+20).
|
|
2253 */
|
|
2254 public static const int F11 = KEYCODE_BIT + 20;
|
|
2255
|
|
2256 /**
|
|
2257 * Keyboard event constant representing the F12 key
|
|
2258 * (value is (1<<24)+21).
|
|
2259 */
|
|
2260 public static const int F12 = KEYCODE_BIT + 21;
|
|
2261
|
|
2262 /**
|
|
2263 * Keyboard event constant representing the F13 key
|
|
2264 * (value is (1<<24)+22).
|
|
2265 *
|
|
2266 * @since 3.0
|
|
2267 */
|
|
2268 public static const int F13 = KEYCODE_BIT + 22;
|
|
2269
|
|
2270 /**
|
|
2271 * Keyboard event constant representing the F14 key
|
|
2272 * (value is (1<<24)+23).
|
|
2273 *
|
|
2274 * @since 3.0
|
|
2275 */
|
|
2276 public static const int F14 = KEYCODE_BIT + 23;
|
|
2277
|
|
2278 /**
|
|
2279 * Keyboard event constant representing the F15 key
|
|
2280 * (value is (1<<24)+24).
|
|
2281 *
|
|
2282 * @since 3.0
|
|
2283 */
|
|
2284 public static const int F15 = KEYCODE_BIT + 24;
|
|
2285
|
|
2286 /**
|
|
2287 * Keyboard event constant representing the numeric key
|
|
2288 * pad multiply key (value is (1<<24)+42).
|
|
2289 *
|
|
2290 * @since 3.0
|
|
2291 */
|
|
2292 public static const int KEYPAD_MULTIPLY = KEYCODE_BIT + 42;
|
|
2293
|
|
2294 /**
|
|
2295 * Keyboard event constant representing the numeric key
|
|
2296 * pad add key (value is (1<<24)+43).
|
|
2297 *
|
|
2298 * @since 3.0
|
|
2299 */
|
|
2300 public static const int KEYPAD_ADD = KEYCODE_BIT + 43;
|
|
2301
|
|
2302 /**
|
|
2303 * Keyboard event constant representing the numeric key
|
|
2304 * pad subtract key (value is (1<<24)+45).
|
|
2305 *
|
|
2306 * @since 3.0
|
|
2307 */
|
|
2308 public static const int KEYPAD_SUBTRACT = KEYCODE_BIT + 45;
|
|
2309
|
|
2310 /**
|
|
2311 * Keyboard event constant representing the numeric key
|
|
2312 * pad decimal key (value is (1<<24)+46).
|
|
2313 *
|
|
2314 * @since 3.0
|
|
2315 */
|
|
2316 public static const int KEYPAD_DECIMAL = KEYCODE_BIT + 46;
|
|
2317
|
|
2318 /**
|
|
2319 * Keyboard event constant representing the numeric key
|
|
2320 * pad divide key (value is (1<<24)+47).
|
|
2321 *
|
|
2322 * @since 3.0
|
|
2323 */
|
|
2324 public static const int KEYPAD_DIVIDE = KEYCODE_BIT + 47;
|
|
2325
|
|
2326 /**
|
|
2327 * Keyboard event constant representing the numeric key
|
|
2328 * pad zero key (value is (1<<24)+48).
|
|
2329 *
|
|
2330 * @since 3.0
|
|
2331 */
|
|
2332 public static const int KEYPAD_0 = KEYCODE_BIT + 48;
|
|
2333
|
|
2334 /**
|
|
2335 * Keyboard event constant representing the numeric key
|
|
2336 * pad one key (value is (1<<24)+49).
|
|
2337 *
|
|
2338 * @since 3.0
|
|
2339 */
|
|
2340 public static const int KEYPAD_1 = KEYCODE_BIT + 49;
|
|
2341
|
|
2342 /**
|
|
2343 * Keyboard event constant representing the numeric key
|
|
2344 * pad two key (value is (1<<24)+50).
|
|
2345 *
|
|
2346 * @since 3.0
|
|
2347 */
|
|
2348 public static const int KEYPAD_2 = KEYCODE_BIT + 50;
|
|
2349
|
|
2350 /**
|
|
2351 * Keyboard event constant representing the numeric key
|
|
2352 * pad three key (value is (1<<24)+51).
|
|
2353 *
|
|
2354 * @since 3.0
|
|
2355 */
|
|
2356 public static const int KEYPAD_3 = KEYCODE_BIT + 51;
|
|
2357
|
|
2358 /**
|
|
2359 * Keyboard event constant representing the numeric key
|
|
2360 * pad four key (value is (1<<24)+52).
|
|
2361 *
|
|
2362 * @since 3.0
|
|
2363 */
|
|
2364 public static const int KEYPAD_4 = KEYCODE_BIT + 52;
|
|
2365
|
|
2366 /**
|
|
2367 * Keyboard event constant representing the numeric key
|
|
2368 * pad five key (value is (1<<24)+53).
|
|
2369 *
|
|
2370 * @since 3.0
|
|
2371 */
|
|
2372 public static const int KEYPAD_5 = KEYCODE_BIT + 53;
|
|
2373
|
|
2374 /**
|
|
2375 * Keyboard event constant representing the numeric key
|
|
2376 * pad six key (value is (1<<24)+54).
|
|
2377 *
|
|
2378 * @since 3.0
|
|
2379 */
|
|
2380 public static const int KEYPAD_6 = KEYCODE_BIT + 54;
|
|
2381
|
|
2382 /**
|
|
2383 * Keyboard event constant representing the numeric key
|
|
2384 * pad seven key (value is (1<<24)+55).
|
|
2385 *
|
|
2386 * @since 3.0
|
|
2387 */
|
|
2388 public static const int KEYPAD_7 = KEYCODE_BIT + 55;
|
|
2389
|
|
2390 /**
|
|
2391 * Keyboard event constant representing the numeric key
|
|
2392 * pad eight key (value is (1<<24)+56).
|
|
2393 *
|
|
2394 * @since 3.0
|
|
2395 */
|
|
2396 public static const int KEYPAD_8 = KEYCODE_BIT + 56;
|
|
2397
|
|
2398 /**
|
|
2399 * Keyboard event constant representing the numeric key
|
|
2400 * pad nine key (value is (1<<24)+57).
|
|
2401 *
|
|
2402 * @since 3.0
|
|
2403 */
|
|
2404 public static const int KEYPAD_9 = KEYCODE_BIT + 57;
|
|
2405
|
|
2406 /**
|
|
2407 * Keyboard event constant representing the numeric key
|
|
2408 * pad equal key (value is (1<<24)+61).
|
|
2409 *
|
|
2410 * @since 3.0
|
|
2411 */
|
|
2412 public static const int KEYPAD_EQUAL = KEYCODE_BIT + 61;
|
|
2413
|
|
2414 /**
|
|
2415 * Keyboard event constant representing the numeric key
|
|
2416 * pad enter key (value is (1<<24)+80).
|
|
2417 *
|
|
2418 * @since 3.0
|
|
2419 */
|
|
2420 public static const int KEYPAD_CR = KEYCODE_BIT + 80;
|
|
2421
|
|
2422 /**
|
|
2423 * Keyboard event constant representing the help
|
|
2424 * key (value is (1<<24)+81).
|
|
2425 *
|
|
2426 * NOTE: The HELP key maps to the key labeled "help",
|
|
2427 * not "F1". If your keyboard does not have a HELP key,
|
|
2428 * you will never see this key press. To listen for
|
|
2429 * help on a control, use SWT.Help.
|
|
2430 *
|
|
2431 * @since 3.0
|
|
2432 *
|
|
2433 * @see SWT#Help
|
|
2434 */
|
|
2435 public static const int HELP = KEYCODE_BIT + 81;
|
|
2436
|
|
2437 /**
|
|
2438 * Keyboard event constant representing the caps
|
|
2439 * lock key (value is (1<<24)+82).
|
|
2440 *
|
|
2441 * @since 3.0
|
|
2442 */
|
|
2443 public static const int CAPS_LOCK = KEYCODE_BIT + 82;
|
|
2444
|
|
2445 /**
|
|
2446 * Keyboard event constant representing the num
|
|
2447 * lock key (value is (1<<24)+83).
|
|
2448 *
|
|
2449 * @since 3.0
|
|
2450 */
|
|
2451 public static const int NUM_LOCK = KEYCODE_BIT + 83;
|
|
2452
|
|
2453 /**
|
|
2454 * Keyboard event constant representing the scroll
|
|
2455 * lock key (value is (1<<24)+84).
|
|
2456 *
|
|
2457 * @since 3.0
|
|
2458 */
|
|
2459 public static const int SCROLL_LOCK = KEYCODE_BIT + 84;
|
|
2460
|
|
2461 /**
|
|
2462 * Keyboard event constant representing the pause
|
|
2463 * key (value is (1<<24)+85).
|
|
2464 *
|
|
2465 * @since 3.0
|
|
2466 */
|
|
2467 public static const int PAUSE = KEYCODE_BIT + 85;
|
|
2468
|
|
2469 /**
|
|
2470 * Keyboard event constant representing the break
|
|
2471 * key (value is (1<<24)+86).
|
|
2472 *
|
|
2473 * @since 3.0
|
|
2474 */
|
|
2475 public static const int BREAK = KEYCODE_BIT + 86;
|
|
2476
|
|
2477 /**
|
|
2478 * Keyboard event constant representing the print screen
|
|
2479 * key (value is (1<<24)+87).
|
|
2480 *
|
|
2481 * @since 3.0
|
|
2482 */
|
|
2483 public static const int PRINT_SCREEN = KEYCODE_BIT + 87;
|
|
2484
|
|
2485 /**
|
|
2486 * The <code>MessageBox</code> style constant for error icon
|
|
2487 * behavior (value is 1).
|
|
2488 */
|
|
2489 public static const int ICON_ERROR = 1;
|
|
2490
|
|
2491 /**
|
|
2492 * The <code>MessageBox</code> style constant for information icon
|
|
2493 * behavior (value is 1<<1).
|
|
2494 */
|
|
2495 public static const int ICON_INFORMATION = 1 << 1;
|
|
2496
|
|
2497 /**
|
|
2498 * The <code>MessageBox</code> style constant for question icon
|
|
2499 * behavior (value is 1<<2).
|
|
2500 */
|
|
2501 public static const int ICON_QUESTION = 1 << 2;
|
|
2502
|
|
2503 /**
|
|
2504 * The <code>MessageBox</code> style constant for warning icon
|
|
2505 * behavior (value is 1<<3).
|
|
2506 */
|
|
2507 public static const int ICON_WARNING = 1 << 3;
|
|
2508
|
|
2509 /**
|
|
2510 * The <code>MessageBox</code> style constant for "working" icon
|
|
2511 * behavior (value is 1<<4).
|
|
2512 */
|
|
2513 public static const int ICON_WORKING = 1 << 4;
|
|
2514
|
|
2515 /**
|
|
2516 * The <code>MessageBox</code> style constant for an OK button;
|
|
2517 * valid combinations are OK, OK|CANCEL
|
|
2518 * (value is 1<<5).
|
|
2519 */
|
|
2520 public static const int OK = 1 << 5;
|
|
2521
|
|
2522 /**
|
|
2523 * The <code>MessageBox</code> style constant for YES button;
|
|
2524 * valid combinations are YES|NO, YES|NO|CANCEL
|
|
2525 * (value is 1<<6).
|
|
2526 */
|
|
2527 public static const int YES = 1 << 6;
|
|
2528
|
|
2529 /**
|
|
2530 * The <code>MessageBox</code> style constant for NO button;
|
|
2531 * valid combinations are YES|NO, YES|NO|CANCEL
|
|
2532 * (value is 1<<7).
|
|
2533 */
|
|
2534 public static const int NO = 1 << 7;
|
|
2535
|
|
2536 /**
|
|
2537 * The <code>MessageBox</code> style constant for a CANCEL button;
|
|
2538 * valid combinations are OK|CANCEL, YES|NO|CANCEL, RETRY|CANCEL
|
|
2539 * (value is 1<<8). This style constant is also used with
|
|
2540 * <code>Text</code> in combination with SEARCH.
|
|
2541 *
|
|
2542 * <p><b>Used By:</b><ul>
|
|
2543 * <li><code>MessageBox</code></li>
|
|
2544 * <li><code>Text</code></li>
|
|
2545 * </ul></p>
|
|
2546 */
|
|
2547 public static const int CANCEL = 1 << 8;
|
|
2548
|
|
2549 /**
|
|
2550 * The <code>MessageBox</code> style constant for an ABORT button;
|
|
2551 * the only valid combination is ABORT|RETRY|IGNORE
|
|
2552 * (value is 1<<9).
|
|
2553 */
|
|
2554 public static const int ABORT = 1 << 9;
|
|
2555
|
|
2556 /**
|
|
2557 * The <code>MessageBox</code> style constant for a RETRY button;
|
|
2558 * valid combinations are ABORT|RETRY|IGNORE, RETRY|CANCEL
|
|
2559 * (value is 1<<10).
|
|
2560 */
|
|
2561 public static const int RETRY = 1 << 10;
|
|
2562
|
|
2563 /**
|
|
2564 * The <code>MessageBox</code> style constant for an IGNORE button;
|
|
2565 * the only valid combination is ABORT|RETRY|IGNORE
|
|
2566 * (value is 1<<11).
|
|
2567 */
|
|
2568 public static const int IGNORE = 1 << 11;
|
|
2569
|
|
2570 /**
|
|
2571 * The <code>FileDialog</code> style constant for open file dialog behavior
|
|
2572 * (value is 1<<12).
|
|
2573 */
|
|
2574 public static const int OPEN = 1 << 12;
|
|
2575
|
|
2576 /**
|
|
2577 * The <code>FileDialog</code> style constant for save file dialog behavior
|
|
2578 * (value is 1<<13).
|
|
2579 */
|
|
2580 public static const int SAVE = 1 << 13;
|
|
2581
|
|
2582 /**
|
|
2583 * The <code>Composite</code> constant to indicate that
|
|
2584 * an attribute (such as background) is not inherited
|
|
2585 * by the children (value is 0).
|
|
2586 *
|
|
2587 * @since 3.2
|
|
2588 */
|
|
2589 public static const int INHERIT_NONE = 0;
|
|
2590
|
|
2591 /**
|
|
2592 * The <code>Composite</code> constant to indicate that
|
|
2593 * an attribute (such as background) is inherited by
|
|
2594 * children who choose this value as their "default"
|
|
2595 * (value is 1). For example, a label child will
|
|
2596 * typically choose to inherit the background color
|
|
2597 * of a composite while a list or table will not.
|
|
2598 *
|
|
2599 * @since 3.2
|
|
2600 */
|
|
2601 public static const int INHERIT_DEFAULT = 1;
|
|
2602
|
|
2603 /**
|
|
2604 * The <code>Composite</code> constant to indicate that
|
|
2605 * an attribute (such as background) is inherited by
|
|
2606 * all children.
|
|
2607 *
|
|
2608 * @since 3.2
|
|
2609 */
|
|
2610 public static const int INHERIT_FORCE = 2;
|
|
2611
|
|
2612 /**
|
|
2613 * Default color white (value is 1).
|
|
2614 */
|
|
2615 public static const int COLOR_WHITE = 1;
|
|
2616
|
|
2617 /**
|
|
2618 * Default color black (value is 2).
|
|
2619 */
|
|
2620 public static const int COLOR_BLACK = 2;
|
|
2621
|
|
2622 /**
|
|
2623 * Default color red (value is 3).
|
|
2624 */
|
|
2625 public static const int COLOR_RED = 3;
|
|
2626
|
|
2627 /**
|
|
2628 * Default color dark red (value is 4).
|
|
2629 */
|
|
2630 public static const int COLOR_DARK_RED = 4;
|
|
2631
|
|
2632 /**
|
|
2633 * Default color green (value is 5).
|
|
2634 */
|
|
2635 public static const int COLOR_GREEN = 5;
|
|
2636
|
|
2637 /**
|
|
2638 * Default color dark green (value is 6).
|
|
2639 */
|
|
2640 public static const int COLOR_DARK_GREEN = 6;
|
|
2641
|
|
2642 /**
|
|
2643 * Default color yellow (value is 7).
|
|
2644 */
|
|
2645 public static const int COLOR_YELLOW = 7;
|
|
2646
|
|
2647 /**
|
|
2648 * Default color dark yellow (value is 8).
|
|
2649 */
|
|
2650 public static const int COLOR_DARK_YELLOW = 8;
|
|
2651
|
|
2652 /**
|
|
2653 * Default color blue (value is 9).
|
|
2654 */
|
|
2655 public static const int COLOR_BLUE = 9;
|
|
2656
|
|
2657 /**
|
|
2658 * Default color dark blue (value is 10).
|
|
2659 */
|
|
2660 public static const int COLOR_DARK_BLUE = 10;
|
|
2661
|
|
2662 /**
|
|
2663 * Default color magenta (value is 11).
|
|
2664 */
|
|
2665 public static const int COLOR_MAGENTA = 11;
|
|
2666
|
|
2667 /**
|
|
2668 * Default color dark magenta (value is 12).
|
|
2669 */
|
|
2670 public static const int COLOR_DARK_MAGENTA = 12;
|
|
2671
|
|
2672 /**
|
|
2673 * Default color cyan (value is 13).
|
|
2674 */
|
|
2675 public static const int COLOR_CYAN = 13;
|
|
2676
|
|
2677 /**
|
|
2678 * Default color dark cyan (value is 14).
|
|
2679 */
|
|
2680 public static const int COLOR_DARK_CYAN = 14;
|
|
2681
|
|
2682 /**
|
|
2683 * Default color gray (value is 15).
|
|
2684 */
|
|
2685 public static const int COLOR_GRAY = 15;
|
|
2686
|
|
2687 /**
|
|
2688 * Default color dark gray (value is 16).
|
|
2689 */
|
|
2690 public static const int COLOR_DARK_GRAY = 16;
|
|
2691
|
|
2692 /*
|
|
2693 * System Colors
|
|
2694 *
|
|
2695 * Dealing with system colors is an area where there are
|
|
2696 * many platform differences. On some platforms, system
|
|
2697 * colors can change dynamically while the program is
|
|
2698 * running. On other platforms, system colors can be
|
|
2699 * changed for all instances of a particular widget.
|
|
2700 * Therefore, the only truly portable method to obtain
|
|
2701 * a widget color query is to query the color from an
|
|
2702 * instance of the widget.
|
|
2703 *
|
|
2704 * It is expected that the list of supported colors
|
|
2705 * will grow over time.
|
|
2706 */
|
|
2707
|
|
2708 /**
|
|
2709 * System color used to paint dark shadow areas (value is 17).
|
|
2710 */
|
|
2711 public static const int COLOR_WIDGET_DARK_SHADOW = 17;
|
|
2712
|
|
2713 /**
|
|
2714 * System color used to paint normal shadow areas (value is 18).
|
|
2715 */
|
|
2716 public static const int COLOR_WIDGET_NORMAL_SHADOW = 18;
|
|
2717
|
|
2718 /**
|
|
2719 * System color used to paint light shadow areas (value is 19).
|
|
2720 */
|
|
2721 public static const int COLOR_WIDGET_LIGHT_SHADOW = 19;
|
|
2722
|
|
2723 /**
|
|
2724 * System color used to paint highlight shadow areas (value is 20).
|
|
2725 */
|
|
2726 public static const int COLOR_WIDGET_HIGHLIGHT_SHADOW = 20;
|
|
2727
|
|
2728 /**
|
|
2729 * System color used to paint foreground areas (value is 21).
|
|
2730 */
|
|
2731 public static const int COLOR_WIDGET_FOREGROUND = 21;
|
|
2732
|
|
2733 /**
|
|
2734 * System color used to paint background areas (value is 22).
|
|
2735 */
|
|
2736 public static const int COLOR_WIDGET_BACKGROUND = 22;
|
|
2737
|
|
2738 /**
|
|
2739 * System color used to paint border areas (value is 23).
|
|
2740 */
|
|
2741 public static const int COLOR_WIDGET_BORDER = 23;
|
|
2742
|
|
2743 /**
|
|
2744 * System color used to paint list foreground areas (value is 24).
|
|
2745 */
|
|
2746 public static const int COLOR_LIST_FOREGROUND = 24;
|
|
2747
|
|
2748 /**
|
|
2749 * System color used to paint list background areas (value is 25).
|
|
2750 */
|
|
2751 public static const int COLOR_LIST_BACKGROUND = 25;
|
|
2752
|
|
2753 /**
|
|
2754 * System color used to paint list selection background areas (value is 26).
|
|
2755 */
|
|
2756 public static const int COLOR_LIST_SELECTION = 26;
|
|
2757
|
|
2758 /**
|
|
2759 * System color used to paint list selected text (value is 27).
|
|
2760 */
|
|
2761 public static const int COLOR_LIST_SELECTION_TEXT = 27;
|
|
2762
|
|
2763 /**
|
|
2764 * System color used to paint tooltip text (value is 28).
|
|
2765 */
|
|
2766 public static const int COLOR_INFO_FOREGROUND = 28;
|
|
2767
|
|
2768 /**
|
|
2769 * System color used to paint tooltip background areas (value is 29).
|
|
2770 */
|
|
2771 public static const int COLOR_INFO_BACKGROUND = 29;
|
|
2772
|
|
2773 /**
|
|
2774 * System color used to paint title text (value is 30).
|
|
2775 */
|
|
2776 public static const int COLOR_TITLE_FOREGROUND = 30;
|
|
2777
|
|
2778 /**
|
|
2779 * System color used to paint title background areas (value is 31).
|
|
2780 */
|
|
2781 public static const int COLOR_TITLE_BACKGROUND = 31;
|
|
2782
|
|
2783 /**
|
|
2784 * System color used to paint title background gradient (value is 32).
|
|
2785 */
|
|
2786 public static const int COLOR_TITLE_BACKGROUND_GRADIENT = 32;
|
|
2787
|
|
2788 /**
|
|
2789 * System color used to paint inactive title text (value is 33).
|
|
2790 */
|
|
2791 public static const int COLOR_TITLE_INACTIVE_FOREGROUND = 33;
|
|
2792
|
|
2793 /**
|
|
2794 * System color used to paint inactive title background areas (value is 34).
|
|
2795 */
|
|
2796 public static const int COLOR_TITLE_INACTIVE_BACKGROUND = 34;
|
|
2797
|
|
2798 /**
|
|
2799 * System color used to paint inactive title background gradient (value is 35).
|
|
2800 */
|
|
2801 public static const int COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT = 35;
|
|
2802
|
|
2803 /**
|
|
2804 * Draw constant indicating whether the drawing operation
|
|
2805 * should fill the background (value is 1<<0).
|
|
2806 */
|
|
2807 public static const int DRAW_TRANSPARENT = 1 << 0;
|
|
2808
|
|
2809 /**
|
|
2810 * Draw constant indicating whether the string drawing operation
|
|
2811 * should handle line-delimiters (value is 1<<1).
|
|
2812 */
|
|
2813 public static const int DRAW_DELIMITER = 1 << 1;
|
|
2814
|
|
2815 /**
|
|
2816 * Draw constant indicating whether the string drawing operation
|
|
2817 * should expand TAB characters (value is 1<<2).
|
|
2818 */
|
|
2819 public static const int DRAW_TAB = 1 << 2;
|
|
2820
|
|
2821 /**
|
|
2822 * Draw constant indicating whether the string drawing operation
|
|
2823 * should handle mnemonics (value is 1<<3).
|
|
2824 */
|
|
2825 public static const int DRAW_MNEMONIC = 1 << 3;
|
|
2826
|
|
2827
|
|
2828 /**
|
|
2829 * Selection constant indicating that a line delimiter should be
|
|
2830 * drawn (value is 1<<17).
|
|
2831 *
|
|
2832 * <p><b>Used By:</b><ul>
|
|
2833 * <li><code>TextLayout</code></li>
|
|
2834 * </ul></p>
|
|
2835 *
|
|
2836 * @see #FULL_SELECTION
|
|
2837 * @see #LAST_LINE_SELECTION
|
|
2838 *
|
|
2839 * @since 3.3
|
|
2840 */
|
|
2841 public static const int DELIMITER_SELECTION = 1 << 17;
|
|
2842
|
|
2843 /**
|
|
2844 * Selection constant indicating that the last line is selected
|
|
2845 * to the end and should be drawn using either a line delimiter
|
|
2846 * or full line selection (value is 1<<20).
|
|
2847 *
|
|
2848 * <p><b>Used By:</b><ul>
|
|
2849 * <li><code>TextLayout</code></li>
|
|
2850 * </ul></p>
|
|
2851 *
|
|
2852 * @see #DELIMITER_SELECTION
|
|
2853 * @see #FULL_SELECTION
|
|
2854 *
|
|
2855 * @since 3.3
|
|
2856 */
|
|
2857 public static const int LAST_LINE_SELECTION = 1 << 20;
|
|
2858
|
|
2859 /**
|
|
2860 * SWT error constant indicating that no error number was specified
|
|
2861 * (value is 1).
|
|
2862 */
|
|
2863 public static const int ERROR_UNSPECIFIED = 1;
|
|
2864
|
|
2865 /**
|
|
2866 * SWT error constant indicating that no more handles for an
|
|
2867 * operating system resource are available
|
|
2868 * (value is 2).
|
|
2869 */
|
|
2870 public static const int ERROR_NO_HANDLES = 2;
|
|
2871
|
|
2872 /**
|
|
2873 * SWT error constant indicating that no more callback resources are available
|
|
2874 * (value is 3).
|
|
2875 */
|
|
2876 public static const int ERROR_NO_MORE_CALLBACKS = 3;
|
|
2877
|
|
2878 /**
|
|
2879 * SWT error constant indicating that a null argument was passed in
|
|
2880 * (value is 4).
|
|
2881 */
|
|
2882 public static const int ERROR_NULL_ARGUMENT = 4;
|
|
2883
|
|
2884 /**
|
|
2885 * SWT error constant indicating that an invalid argument was passed in
|
|
2886 * (value is 5).
|
|
2887 */
|
|
2888 public static const int ERROR_INVALID_ARGUMENT = 5;
|
|
2889
|
|
2890 /**
|
|
2891 * SWT error constant indicating that a value was found to be
|
|
2892 * outside the allowable range
|
|
2893 * (value is 6).
|
|
2894 */
|
|
2895 public static const int ERROR_INVALID_RANGE = 6;
|
|
2896
|
|
2897 /**
|
|
2898 * SWT error constant indicating that a value which can not be
|
|
2899 * zero was found to be
|
|
2900 * (value is 7).
|
|
2901 */
|
|
2902 public static const int ERROR_CANNOT_BE_ZERO = 7;
|
|
2903
|
|
2904 /**
|
|
2905 * SWT error constant indicating that the underlying operating
|
|
2906 * system was unable to provide the value of an item
|
|
2907 * (value is 8).
|
|
2908 */
|
|
2909 public static const int ERROR_CANNOT_GET_ITEM = 8;
|
|
2910
|
|
2911 /**
|
|
2912 * SWT error constant indicating that the underlying operating
|
|
2913 * system was unable to provide the selection
|
|
2914 * (value is 9).
|
|
2915 */
|
|
2916 public static const int ERROR_CANNOT_GET_SELECTION = 9;
|
|
2917
|
|
2918 /**
|
|
2919 * SWT error constant indicating that the matrix is not invertible
|
|
2920 * (value is 10).
|
|
2921 *
|
|
2922 * @since 3.1
|
|
2923 */
|
|
2924 public static const int ERROR_CANNOT_INVERT_MATRIX = 10;
|
|
2925
|
|
2926 /**
|
|
2927 * SWT error constant indicating that the underlying operating
|
|
2928 * system was unable to provide the height of an item
|
|
2929 * (value is 11).
|
|
2930 */
|
|
2931 public static const int ERROR_CANNOT_GET_ITEM_HEIGHT = 11;
|
|
2932
|
|
2933 /**
|
|
2934 * SWT error constant indicating that the underlying operating
|
|
2935 * system was unable to provide the text of a widget
|
|
2936 * (value is 12).
|
|
2937 */
|
|
2938 public static const int ERROR_CANNOT_GET_TEXT = 12;
|
|
2939
|
|
2940 /**
|
|
2941 * SWT error constant indicating that the underlying operating
|
|
2942 * system was unable to set the text of a widget
|
|
2943 * (value is 13).
|
|
2944 */
|
|
2945 public static const int ERROR_CANNOT_SET_TEXT = 13;
|
|
2946
|
|
2947 /**
|
|
2948 * SWT error constant indicating that the underlying operating
|
|
2949 * system was unable to add an item
|
|
2950 * (value is 14).
|
|
2951 */
|
|
2952 public static const int ERROR_ITEM_NOT_ADDED = 14;
|
|
2953
|
|
2954 /**
|
|
2955 * SWT error constant indicating that the underlying operating
|
|
2956 * system was unable to remove an item
|
|
2957 * (value is 15).
|
|
2958 */
|
|
2959 public static const int ERROR_ITEM_NOT_REMOVED = 15;
|
|
2960
|
|
2961 /**
|
|
2962 * SWT error constant indicating that the graphics library
|
|
2963 * is not available
|
|
2964 * (value is 16).
|
|
2965 */
|
|
2966 public static const int ERROR_NO_GRAPHICS_LIBRARY = 16;
|
|
2967
|
|
2968 /**
|
|
2969 * SWT error constant indicating that a particular feature has
|
|
2970 * not been implemented on this platform
|
|
2971 * (value is 20).
|
|
2972 */
|
|
2973 public static const int ERROR_NOT_IMPLEMENTED = 20;
|
|
2974
|
|
2975 /**
|
|
2976 * SWT error constant indicating that a menu which needed
|
|
2977 * to have the drop down style had some other style instead
|
|
2978 * (value is 21).
|
|
2979 */
|
|
2980 public static const int ERROR_MENU_NOT_DROP_DOWN = 21;
|
|
2981
|
|
2982 /**
|
|
2983 * SWT error constant indicating that an attempt was made to
|
|
2984 * invoke an SWT operation which can only be executed by the
|
|
2985 * user-interface thread from some other thread
|
|
2986 * (value is 22).
|
|
2987 */
|
|
2988 public static const int ERROR_THREAD_INVALID_ACCESS = 22;
|
|
2989
|
|
2990 /**
|
|
2991 * SWT error constant indicating that an attempt was made to
|
|
2992 * invoke an SWT operation using a widget which had already
|
|
2993 * been disposed
|
|
2994 * (value is 24).
|
|
2995 */
|
|
2996 public static const int ERROR_WIDGET_DISPOSED = 24;
|
|
2997
|
|
2998 /**
|
|
2999 * SWT error constant indicating that a menu item which needed
|
|
3000 * to have the cascade style had some other style instead
|
|
3001 * (value is 27).
|
|
3002 */
|
|
3003 public static const int ERROR_MENUITEM_NOT_CASCADE = 27;
|
|
3004
|
|
3005 /**
|
|
3006 * SWT error constant indicating that the underlying operating
|
|
3007 * system was unable to set the selection of a widget
|
|
3008 * (value is 28).
|
|
3009 */
|
|
3010 public static const int ERROR_CANNOT_SET_SELECTION = 28;
|
|
3011
|
|
3012 /**
|
|
3013 * SWT error constant indicating that the underlying operating
|
|
3014 * system was unable to set the menu
|
|
3015 * (value is 29).
|
|
3016 */
|
|
3017 public static const int ERROR_CANNOT_SET_MENU = 29;
|
|
3018
|
|
3019 /**
|
|
3020 * SWT error constant indicating that the underlying operating
|
|
3021 * system was unable to set the enabled state
|
|
3022 * (value is 30).
|
|
3023 */
|
|
3024 public static const int ERROR_CANNOT_SET_ENABLED = 30;
|
|
3025
|
|
3026 /**
|
|
3027 * SWT error constant indicating that the underlying operating
|
|
3028 * system was unable to provide enabled/disabled state information
|
|
3029 * (value is 31).
|
|
3030 */
|
|
3031 public static const int ERROR_CANNOT_GET_ENABLED = 31;
|
|
3032
|
|
3033 /**
|
|
3034 * SWT error constant indicating that a provided widget can
|
|
3035 * not be used as a parent in the current operation
|
|
3036 * (value is 32).
|
|
3037 */
|
|
3038 public static const int ERROR_INVALID_PARENT = 32;
|
|
3039
|
|
3040 /**
|
|
3041 * SWT error constant indicating that a menu which needed
|
|
3042 * to have the menu bar style had some other style instead
|
|
3043 * (value is 33).
|
|
3044 */
|
|
3045 public static const int ERROR_MENU_NOT_BAR = 33;
|
|
3046
|
|
3047 /**
|
|
3048 * SWT error constant indicating that the underlying operating
|
|
3049 * system was unable to provide count information
|
|
3050 * (value is 36).
|
|
3051 */
|
|
3052 public static const int ERROR_CANNOT_GET_COUNT = 36;
|
|
3053
|
|
3054 /**
|
|
3055 * SWT error constant indicating that a menu which needed
|
|
3056 * to have the pop up menu style had some other style instead
|
|
3057 * (value is 37).
|
|
3058 */
|
|
3059 public static const int ERROR_MENU_NOT_POP_UP = 37;
|
|
3060
|
|
3061 /**
|
|
3062 * SWT error constant indicating that a graphics operation
|
|
3063 * was attempted with an image of an unsupported depth
|
|
3064 * (value is 38).
|
|
3065 */
|
|
3066 public static const int ERROR_UNSUPPORTED_DEPTH = 38;
|
|
3067
|
|
3068 /**
|
|
3069 * SWT error constant indicating that an input/output operation
|
|
3070 * failed during the execution of an SWT operation
|
|
3071 * (value is 39).
|
|
3072 */
|
|
3073 public static const int ERROR_IO = 39;
|
|
3074
|
|
3075 /**
|
|
3076 * SWT error constant indicating that a graphics operation
|
|
3077 * was attempted with an image having an invalid format
|
|
3078 * (value is 40).
|
|
3079 */
|
|
3080 public static const int ERROR_INVALID_IMAGE = 40;
|
|
3081
|
|
3082 /**
|
|
3083 * SWT error constant indicating that a graphics operation
|
|
3084 * was attempted with an image having a valid but unsupported
|
|
3085 * format
|
|
3086 * (value is 42).
|
|
3087 */
|
|
3088 public static const int ERROR_UNSUPPORTED_FORMAT = 42;
|
|
3089
|
|
3090 /**
|
|
3091 * SWT error constant indicating that an attempt was made
|
|
3092 * to subclass an SWT widget class without implementing the
|
|
3093 * <code>checkSubclass()</code> method
|
|
3094 * (value is 43).
|
|
3095 *
|
|
3096 * For additional information see the comment in
|
|
3097 * <code>Widget.checkSubclass()</code>.
|
|
3098 *
|
|
3099 * @see org.eclipse.swt.widgets.Widget#checkSubclass
|
|
3100 */
|
|
3101 public static const int ERROR_INVALID_SUBCLASS = 43;
|
|
3102
|
|
3103 /**
|
|
3104 * SWT error constant indicating that an attempt was made to
|
|
3105 * invoke an SWT operation using a graphics object which had
|
|
3106 * already been disposed
|
|
3107 * (value is 44).
|
|
3108 */
|
|
3109 public static const int ERROR_GRAPHIC_DISPOSED = 44;
|
|
3110
|
|
3111 /**
|
|
3112 * SWT error constant indicating that an attempt was made to
|
|
3113 * invoke an SWT operation using a device which had already
|
|
3114 * been disposed
|
|
3115 * (value is 45).
|
|
3116 */
|
|
3117 public static const int ERROR_DEVICE_DISPOSED = 45;
|
|
3118
|
|
3119 /**
|
|
3120 * SWT error constant indicating that an exception happened
|
|
3121 * when executing a runnable
|
|
3122 * (value is 46).
|
|
3123 */
|
|
3124 public static const int ERROR_FAILED_EXEC = 46;
|
|
3125
|
|
3126 /**
|
|
3127 * SWT error constant indicating that an unsatisfied link
|
|
3128 * error occurred while attempting to load a library
|
|
3129 * (value is 47).
|
|
3130 *
|
|
3131 * @since 3.1
|
|
3132 */
|
|
3133 public static const int ERROR_FAILED_LOAD_LIBRARY = 47;
|
|
3134
|
|
3135 /**
|
|
3136 * SWT error constant indicating that a font is not valid
|
|
3137 * (value is 48).
|
|
3138 *
|
|
3139 * @since 3.1
|
|
3140 */
|
|
3141 public static const int ERROR_INVALID_FONT = 48;
|
|
3142
|
|
3143 /**
|
|
3144 * Constant indicating that an image or operation is of type bitmap (value is 0).
|
|
3145 */
|
|
3146 public static const int BITMAP = 0;
|
|
3147
|
|
3148 /**
|
|
3149 * Constant indicating that an image or operation is of type icon (value is 1).
|
|
3150 */
|
|
3151 public static const int ICON = 1;
|
|
3152
|
|
3153 /**
|
|
3154 * The <code>Image</code> constructor argument indicating that
|
|
3155 * the new image should be a copy of the image provided as
|
|
3156 * an argument (value is 0).
|
|
3157 */
|
|
3158 public static const int IMAGE_COPY = 0;
|
|
3159
|
|
3160 /**
|
|
3161 * The <code>Image</code> constructor argument indicating that
|
|
3162 * the new image should have the appearance of a "disabled"
|
|
3163 * (using the platform's rules for how this should look)
|
|
3164 * copy of the image provided as an argument (value is 1).
|
|
3165 */
|
|
3166 public static const int IMAGE_DISABLE = 1;
|
|
3167
|
|
3168 /**
|
|
3169 * The <code>Image</code> constructor argument indicating that
|
|
3170 * the new image should have the appearance of a "gray scaled"
|
|
3171 * copy of the image provided as an argument (value is 2).
|
|
3172 */
|
|
3173 public static const int IMAGE_GRAY = 2;
|
|
3174
|
|
3175 /**
|
|
3176 * Constant to indicate an error state (value is 1).
|
|
3177 * <p><b>Used By:</b><ul>
|
|
3178 * <li><code>ProgressBar</code></li>
|
|
3179 * </ul></p>
|
|
3180 *
|
|
3181 * @since 3.4
|
|
3182 */
|
|
3183 public static const int ERROR = 1;
|
|
3184
|
|
3185 /**
|
|
3186 * Constant to a indicate a paused state (value is 4).
|
|
3187 * <p><b>Used By:</b><ul>
|
|
3188 * <li><code>ProgressBar</code></li>
|
|
3189 * </ul></p>
|
|
3190 *
|
|
3191 * @since 3.4
|
|
3192 */
|
|
3193 public static const int PAUSED = 1 << 2;
|
|
3194
|
|
3195 /**
|
|
3196 * The font style constant indicating a normal weight, non-italic font
|
|
3197 * (value is 0). This constant is also used with <code>ProgressBar</code>
|
|
3198 * to indicate a normal state.
|
|
3199 * <p><b>Used By:</b><ul>
|
|
3200 * <li><code>ProgressBar</code></li>
|
|
3201 * </ul></p>
|
|
3202 */
|
|
3203 public static const int NORMAL = 0;
|
|
3204
|
|
3205 /**
|
|
3206 * The font style constant indicating a bold weight font
|
|
3207 * (value is 1<<0).
|
|
3208 */
|
|
3209 public static const int BOLD = 1 << 0;
|
|
3210
|
|
3211 /**
|
|
3212 * The font style constant indicating an italic font
|
|
3213 * (value is 1<<1).
|
|
3214 */
|
|
3215 public static const int ITALIC = 1 << 1;
|
|
3216
|
|
3217 /**
|
|
3218 * System arrow cursor (value is 0).
|
|
3219 */
|
|
3220 public static const int CURSOR_ARROW = 0;
|
|
3221
|
|
3222 /**
|
|
3223 * System wait cursor (value is 1).
|
|
3224 */
|
|
3225 public static const int CURSOR_WAIT = 1;
|
|
3226
|
|
3227 /**
|
|
3228 * System cross hair cursor (value is 2).
|
|
3229 */
|
|
3230 public static const int CURSOR_CROSS = 2;
|
|
3231
|
|
3232 /**
|
|
3233 * System app startup cursor (value is 3).
|
|
3234 */
|
|
3235 public static const int CURSOR_APPSTARTING = 3;
|
|
3236
|
|
3237 /**
|
|
3238 * System help cursor (value is 4).
|
|
3239 */
|
|
3240 public static const int CURSOR_HELP = 4;
|
|
3241
|
|
3242 /**
|
|
3243 * System resize all directions cursor (value is 5).
|
|
3244 */
|
|
3245 public static const int CURSOR_SIZEALL = 5;
|
|
3246
|
|
3247 /**
|
|
3248 * System resize north-east-south-west cursor (value is 6).
|
|
3249 */
|
|
3250 public static const int CURSOR_SIZENESW = 6;
|
|
3251
|
|
3252 /**
|
|
3253 * System resize north-south cursor (value is 7).
|
|
3254 */
|
|
3255 public static const int CURSOR_SIZENS = 7;
|
|
3256
|
|
3257 /**
|
|
3258 * System resize north-west-south-east cursor (value is 8).
|
|
3259 */
|
|
3260 public static const int CURSOR_SIZENWSE = 8;
|
|
3261
|
|
3262 /**
|
|
3263 * System resize west-east cursor (value is 9).
|
|
3264 */
|
|
3265 public static const int CURSOR_SIZEWE = 9;
|
|
3266
|
|
3267 /**
|
|
3268 * System resize north cursor (value is 10).
|
|
3269 */
|
|
3270 public static const int CURSOR_SIZEN = 10;
|
|
3271
|
|
3272 /**
|
|
3273 * System resize south cursor (value is 11).
|
|
3274 */
|
|
3275 public static const int CURSOR_SIZES = 11;
|
|
3276
|
|
3277 /**
|
|
3278 * System resize east cursor (value is 12).
|
|
3279 */
|
|
3280 public static const int CURSOR_SIZEE = 12;
|
|
3281
|
|
3282 /**
|
|
3283 * System resize west cursor (value is 13).
|
|
3284 */
|
|
3285 public static const int CURSOR_SIZEW = 13;
|
|
3286
|
|
3287 /**
|
|
3288 * System resize north-east cursor (value is 14).
|
|
3289 */
|
|
3290 public static const int CURSOR_SIZENE = 14;
|
|
3291
|
|
3292 /**
|
|
3293 * System resize south-east cursor (value is 15).
|
|
3294 */
|
|
3295 public static const int CURSOR_SIZESE = 15;
|
|
3296
|
|
3297 /**
|
|
3298 * System resize south-west cursor (value is 16).
|
|
3299 */
|
|
3300 public static const int CURSOR_SIZESW = 16;
|
|
3301
|
|
3302 /**
|
|
3303 * System resize north-west cursor (value is 17).
|
|
3304 */
|
|
3305 public static const int CURSOR_SIZENW = 17;
|
|
3306
|
|
3307 /**
|
|
3308 * System up arrow cursor (value is 18).
|
|
3309 */
|
|
3310 public static const int CURSOR_UPARROW = 18;
|
|
3311
|
|
3312 /**
|
|
3313 * System i-beam cursor (value is 19).
|
|
3314 */
|
|
3315 public static const int CURSOR_IBEAM = 19;
|
|
3316
|
|
3317 /**
|
|
3318 * System "not allowed" cursor (value is 20).
|
|
3319 */
|
|
3320 public static const int CURSOR_NO = 20;
|
|
3321
|
|
3322 /**
|
|
3323 * System hand cursor (value is 21).
|
|
3324 */
|
|
3325 public static const int CURSOR_HAND = 21;
|
|
3326
|
|
3327 /**
|
|
3328 * Line drawing style for flat end caps (value is 1).
|
|
3329 *
|
|
3330 * @see org.eclipse.swt.graphics.GC#setLineCap(int)
|
|
3331 * @see org.eclipse.swt.graphics.GC#getLineCap()
|
|
3332 *
|
|
3333 * @since 3.1
|
|
3334 */
|
|
3335 public static const int CAP_FLAT = 1;
|
|
3336
|
|
3337 /**
|
|
3338 * Line drawing style for rounded end caps (value is 2).
|
|
3339 *
|
|
3340 * @see org.eclipse.swt.graphics.GC#setLineCap(int)
|
|
3341 * @see org.eclipse.swt.graphics.GC#getLineCap()
|
|
3342 *
|
|
3343 * @since 3.1
|
|
3344 */
|
|
3345 public static const int CAP_ROUND = 2;
|
|
3346
|
|
3347 /**
|
|
3348 * Line drawing style for square end caps (value is 3).
|
|
3349 *
|
|
3350 * @see org.eclipse.swt.graphics.GC#setLineCap(int)
|
|
3351 * @see org.eclipse.swt.graphics.GC#getLineCap()
|
|
3352 *
|
|
3353 * @since 3.1
|
|
3354 */
|
|
3355 public static const int CAP_SQUARE = 3;
|
|
3356
|
|
3357 /**
|
|
3358 * Line drawing style for miter joins (value is 1).
|
|
3359 *
|
|
3360 * @see org.eclipse.swt.graphics.GC#setLineJoin(int)
|
|
3361 * @see org.eclipse.swt.graphics.GC#getLineJoin()
|
|
3362 *
|
|
3363 * @since 3.1
|
|
3364 */
|
|
3365 public static const int JOIN_MITER = 1;
|
|
3366
|
|
3367 /**
|
|
3368 * Line drawing style for rounded joins (value is 2).
|
|
3369 *
|
|
3370 * @see org.eclipse.swt.graphics.GC#setLineJoin(int)
|
|
3371 * @see org.eclipse.swt.graphics.GC#getLineJoin()
|
|
3372 *
|
|
3373 * @since 3.1
|
|
3374 */
|
|
3375 public static const int JOIN_ROUND = 2;
|
|
3376
|
|
3377 /**
|
|
3378 * Line drawing style for bevel joins (value is 3).
|
|
3379 *
|
|
3380 * @see org.eclipse.swt.graphics.GC#setLineJoin(int)
|
|
3381 * @see org.eclipse.swt.graphics.GC#getLineJoin()
|
|
3382 *
|
|
3383 * @since 3.1
|
|
3384 */
|
|
3385 public static const int JOIN_BEVEL = 3;
|
|
3386
|
|
3387 /**
|
|
3388 * Line drawing style for solid lines (value is 1).
|
|
3389 */
|
|
3390 public static const int LINE_SOLID = 1;
|
|
3391
|
|
3392 /**
|
|
3393 * Line drawing style for dashed lines (value is 2).
|
|
3394 */
|
|
3395 public static const int LINE_DASH = 2;
|
|
3396
|
|
3397 /**
|
|
3398 * Line drawing style for dotted lines (value is 3).
|
|
3399 */
|
|
3400 public static const int LINE_DOT = 3;
|
|
3401
|
|
3402 /**
|
|
3403 * Line drawing style for alternating dash-dot lines (value is 4).
|
|
3404 */
|
|
3405 public static const int LINE_DASHDOT = 4;
|
|
3406
|
|
3407 /**
|
|
3408 * Line drawing style for dash-dot-dot lines (value is 5).
|
|
3409 */
|
|
3410 public static const int LINE_DASHDOTDOT = 5;
|
|
3411
|
|
3412 /**
|
|
3413 * Line drawing style for custom dashed lines (value is 6).
|
|
3414 *
|
|
3415 * @see org.eclipse.swt.graphics.GC#setLineDash(int[])
|
|
3416 * @see org.eclipse.swt.graphics.GC#getLineDash()
|
|
3417 *
|
|
3418 * @since 3.1
|
|
3419 */
|
|
3420 public static const int LINE_CUSTOM = 6;
|
|
3421
|
|
3422 /**
|
|
3423 * Path constant that represents a "move to" operation (value is 1).
|
|
3424 *
|
|
3425 * @since 3.1
|
|
3426 */
|
|
3427 public static const int PATH_MOVE_TO = 1;
|
|
3428
|
|
3429 /**
|
|
3430 * Path constant that represents a "line to" operation (value is 2).
|
|
3431 *
|
|
3432 * @since 3.1
|
|
3433 */
|
|
3434 public static const int PATH_LINE_TO = 2;
|
|
3435
|
|
3436 /**
|
|
3437 * Path constant that represents a "quadratic curve to" operation (value is 3).
|
|
3438 *
|
|
3439 * @since 3.1
|
|
3440 */
|
|
3441 public static const int PATH_QUAD_TO = 3;
|
|
3442
|
|
3443 /**
|
|
3444 * Path constant that represents a "cubic curve to" operation (value is 4).
|
|
3445 *
|
|
3446 * @since 3.1
|
|
3447 */
|
|
3448 public static const int PATH_CUBIC_TO = 4;
|
|
3449
|
|
3450 /**
|
|
3451 * Path constant that represents a "close" operation (value is 5).
|
|
3452 *
|
|
3453 * @since 3.1
|
|
3454 */
|
|
3455 public static const int PATH_CLOSE = 5;
|
|
3456
|
|
3457 /**
|
|
3458 * Even odd rule for filling operations (value is 1).
|
|
3459 *
|
|
3460 * @since 3.1
|
|
3461 */
|
|
3462 public static const int FILL_EVEN_ODD = 1;
|
|
3463
|
|
3464 /**
|
|
3465 * Winding rule for filling operations (value is 2).
|
|
3466 *
|
|
3467 * @since 3.1
|
|
3468 */
|
|
3469 public static const int FILL_WINDING = 2;
|
|
3470
|
|
3471 /**
|
|
3472 * Image format constant indicating an unknown image type (value is -1).
|
|
3473 */
|
|
3474 public static const int IMAGE_UNDEFINED = -1;
|
|
3475
|
|
3476 /**
|
|
3477 * Image format constant indicating a Windows BMP format image (value is 0).
|
|
3478 */
|
|
3479 public static const int IMAGE_BMP = 0;
|
|
3480
|
|
3481 /**
|
|
3482 * Image format constant indicating a run-length encoded
|
|
3483 * Windows BMP format image (value is 1).
|
|
3484 */
|
|
3485 public static const int IMAGE_BMP_RLE = 1;
|
|
3486
|
|
3487 /**
|
|
3488 * Image format constant indicating a GIF format image (value is 2).
|
|
3489 */
|
|
3490 public static const int IMAGE_GIF = 2;
|
|
3491
|
|
3492 /**
|
|
3493 * Image format constant indicating a ICO format image (value is 3).
|
|
3494 */
|
|
3495 public static const int IMAGE_ICO = 3;
|
|
3496
|
|
3497 /**
|
|
3498 * Image format constant indicating a JPEG format image (value is 4).
|
|
3499 */
|
|
3500 public static const int IMAGE_JPEG = 4;
|
|
3501
|
|
3502 /**
|
|
3503 * Image format constant indicating a PNG format image (value is 5).
|
|
3504 */
|
|
3505 public static const int IMAGE_PNG = 5;
|
|
3506
|
|
3507 /**
|
|
3508 * Image format constant indicating a TIFF format image (value is 6).
|
|
3509 */
|
|
3510 public static const int IMAGE_TIFF = 6;
|
|
3511
|
|
3512 /**
|
|
3513 * Image format constant indicating an OS/2 BMP format image (value is 7).
|
|
3514 */
|
|
3515 public static const int IMAGE_OS2_BMP = 7;
|
|
3516
|
|
3517 /**
|
|
3518 * GIF image disposal method constants indicating that the
|
|
3519 * disposal method is unspecified (value is 0).
|
|
3520 */
|
|
3521 public static const int DM_UNSPECIFIED = 0x0;
|
|
3522
|
|
3523 /**
|
|
3524 * GIF image disposal method constants indicating that the
|
|
3525 * disposal method is to do nothing; that is, to leave the
|
|
3526 * previous image in place (value is 1).
|
|
3527 */
|
|
3528 public static const int DM_FILL_NONE = 0x1;
|
|
3529
|
|
3530 /**
|
|
3531 * GIF image disposal method constants indicating that the
|
|
3532 * the previous images should be covered with the background
|
|
3533 * color before displaying the next image (value is 2).
|
|
3534 */
|
|
3535 public static const int DM_FILL_BACKGROUND = 0x2;
|
|
3536
|
|
3537 /**
|
|
3538 * GIF image disposal method constants indicating that the
|
|
3539 * disposal method is to restore the previous picture
|
|
3540 * (value is 3).
|
|
3541 */
|
|
3542 public static const int DM_FILL_PREVIOUS = 0x3;
|
|
3543
|
|
3544 /**
|
|
3545 * Image transparency constant indicating that the image
|
|
3546 * contains no transparency information (value is 0).
|
|
3547 */
|
|
3548 public static const int TRANSPARENCY_NONE = 0x0;
|
|
3549
|
|
3550 /**
|
|
3551 * Image transparency constant indicating that the image
|
|
3552 * contains alpha transparency information (value is 1<<0).
|
|
3553 */
|
|
3554 public static const int TRANSPARENCY_ALPHA = 1 << 0;
|
|
3555
|
|
3556 /**
|
|
3557 * Image transparency constant indicating that the image
|
|
3558 * contains a transparency mask (value is 1<<1).
|
|
3559 */
|
|
3560 public static const int TRANSPARENCY_MASK = 1 << 1;
|
|
3561
|
|
3562 /**
|
|
3563 * Image transparency constant indicating that the image
|
|
3564 * contains a transparent pixel (value is 1<<2).
|
|
3565 */
|
|
3566 public static const int TRANSPARENCY_PIXEL = 1 << 2;
|
|
3567
|
|
3568 /**
|
|
3569 * The character movement type (value is 1<<0).
|
|
3570 * This constant is used to move a text offset over a character.
|
|
3571 *
|
|
3572 * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int)
|
|
3573 * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int)
|
|
3574 *
|
|
3575 * @since 3.0
|
|
3576 */
|
|
3577 public static const int MOVEMENT_CHAR = 1 << 0;
|
|
3578
|
|
3579 /**
|
|
3580 * The cluster movement type (value is 1<<1).
|
|
3581 * This constant is used to move a text offset over a cluster.
|
|
3582 * A cluster groups one or more characters. A cluster is
|
|
3583 * undivisible, this means that a caret offset can not be placed in the
|
|
3584 * middle of a cluster.
|
|
3585 *
|
|
3586 * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int)
|
|
3587 * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int)
|
|
3588 *
|
|
3589 * @since 3.0
|
|
3590 */
|
|
3591 public static const int MOVEMENT_CLUSTER = 1 << 1;
|
|
3592
|
|
3593 /**
|
|
3594 * The word movement type (value is 1<<2).
|
|
3595 * This constant is used to move a text offset over a word.
|
|
3596 * The behavior of this constant depends on the platform and on the
|
|
3597 * direction of the movement. For example, on Windows the stop is
|
|
3598 * always at the start of the word. On GTK and Mac the stop is at the end
|
|
3599 * of the word if the direction is next and at the start of the word if the
|
|
3600 * direction is previous.
|
|
3601 *
|
|
3602 * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int)
|
|
3603 * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int)
|
|
3604 *
|
|
3605 * @since 3.0
|
|
3606 */
|
|
3607 public static const int MOVEMENT_WORD = 1 << 2;
|
|
3608
|
|
3609 /**
|
|
3610 * The word end movement type (value is 1<<3).
|
|
3611 * This constant is used to move a text offset to the next or previous
|
|
3612 * word end. The behavior of this constant does not depend on the platform.
|
|
3613 *
|
|
3614 *
|
|
3615 * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int)
|
|
3616 * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int)
|
|
3617 *
|
|
3618 * @since 3.3
|
|
3619 */
|
|
3620 public static const int MOVEMENT_WORD_END = 1 << 3;
|
|
3621
|
|
3622 /**
|
|
3623 * The word start movement type (value is 1<<4).
|
|
3624 * This constant is used to move a text offset to the next or previous
|
|
3625 * word start. The behavior of this constant does not depend on the platform.
|
|
3626 *
|
|
3627 * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int)
|
|
3628 * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int)
|
|
3629 *
|
|
3630 * @since 3.3
|
|
3631 */
|
|
3632 public static const int MOVEMENT_WORD_START = 1 << 4;
|
|
3633
|
|
3634
|
|
3635 /**
|
|
3636 * Answers a concise, human readable description of the error code.
|
|
3637 *
|
|
3638 * @param code the SWT error code.
|
|
3639 * @return a description of the error code.
|
|
3640 *
|
|
3641 * @see SWT
|
|
3642 */
|
|
3643 static String findErrorText (int code) {
|
|
3644 switch (code) {
|
|
3645 case ERROR_UNSPECIFIED: return "Unspecified error"; //$NON-NLS-1$
|
|
3646 case ERROR_NO_HANDLES: return "No more handles"; //$NON-NLS-1$
|
|
3647 case ERROR_NO_MORE_CALLBACKS: return "No more callbacks"; //$NON-NLS-1$
|
|
3648 case ERROR_NULL_ARGUMENT: return "Argument cannot be null"; //$NON-NLS-1$
|
|
3649 case ERROR_INVALID_ARGUMENT: return "Argument not valid"; //$NON-NLS-1$
|
|
3650 case ERROR_INVALID_RANGE: return "Index out of bounds"; //$NON-NLS-1$
|
|
3651 case ERROR_CANNOT_BE_ZERO: return "Argument cannot be zero"; //$NON-NLS-1$
|
|
3652 case ERROR_CANNOT_GET_ITEM: return "Cannot get item"; //$NON-NLS-1$
|
|
3653 case ERROR_CANNOT_GET_SELECTION: return "Cannot get selection"; //$NON-NLS-1$
|
|
3654 case ERROR_CANNOT_GET_ITEM_HEIGHT: return "Cannot get item height"; //$NON-NLS-1$
|
|
3655 case ERROR_CANNOT_GET_TEXT: return "Cannot get text"; //$NON-NLS-1$
|
|
3656 case ERROR_CANNOT_SET_TEXT: return "Cannot set text"; //$NON-NLS-1$
|
|
3657 case ERROR_ITEM_NOT_ADDED: return "Item not added"; //$NON-NLS-1$
|
|
3658 case ERROR_ITEM_NOT_REMOVED: return "Item not removed"; //$NON-NLS-1$
|
|
3659 case ERROR_NOT_IMPLEMENTED: return "Not implemented"; //$NON-NLS-1$
|
|
3660 case ERROR_MENU_NOT_DROP_DOWN: return "Menu must be a drop down"; //$NON-NLS-1$
|
|
3661 case ERROR_THREAD_INVALID_ACCESS: return "Invalid thread access"; //$NON-NLS-1$
|
|
3662 case ERROR_WIDGET_DISPOSED: return "Widget is disposed"; //$NON-NLS-1$
|
|
3663 case ERROR_MENUITEM_NOT_CASCADE: return "Menu item is not a CASCADE"; //$NON-NLS-1$
|
|
3664 case ERROR_CANNOT_SET_SELECTION: return "Cannot set selection"; //$NON-NLS-1$
|
|
3665 case ERROR_CANNOT_SET_MENU: return "Cannot set menu"; //$NON-NLS-1$
|
|
3666 case ERROR_CANNOT_SET_ENABLED: return "Cannot set the enabled state"; //$NON-NLS-1$
|
|
3667 case ERROR_CANNOT_GET_ENABLED: return "Cannot get the enabled state"; //$NON-NLS-1$
|
|
3668 case ERROR_INVALID_PARENT: return "Widget has the wrong parent"; //$NON-NLS-1$
|
|
3669 case ERROR_MENU_NOT_BAR: return "Menu is not a BAR"; //$NON-NLS-1$
|
|
3670 case ERROR_CANNOT_GET_COUNT: return "Cannot get count"; //$NON-NLS-1$
|
|
3671 case ERROR_MENU_NOT_POP_UP: return "Menu is not a POP_UP"; //$NON-NLS-1$
|
|
3672 case ERROR_UNSUPPORTED_DEPTH: return "Unsupported color depth"; //$NON-NLS-1$
|
|
3673 case ERROR_IO: return "i/o error"; //$NON-NLS-1$
|
|
3674 case ERROR_INVALID_IMAGE: return "Invalid image"; //$NON-NLS-1$
|
|
3675 case ERROR_UNSUPPORTED_FORMAT: return "Unsupported or unrecognized format"; //$NON-NLS-1$
|
|
3676 case ERROR_INVALID_SUBCLASS: return "Subclassing not allowed"; //$NON-NLS-1$
|
|
3677 case ERROR_GRAPHIC_DISPOSED: return "Graphic is disposed"; //$NON-NLS-1$
|
|
3678 case ERROR_DEVICE_DISPOSED: return "Device is disposed"; //$NON-NLS-1$
|
|
3679 case ERROR_FAILED_EXEC: return "Failed to execute runnable"; //$NON-NLS-1$
|
|
3680 case ERROR_FAILED_LOAD_LIBRARY: return "Unable to load library"; //$NON-NLS-1$
|
|
3681 case ERROR_CANNOT_INVERT_MATRIX: return "Cannot invert matrix"; //$NON-NLS-1$
|
|
3682 case ERROR_NO_GRAPHICS_LIBRARY: return "Unable to load graphics library"; //$NON-NLS-1$
|
|
3683 case ERROR_INVALID_FONT: return "Font not valid"; //$NON-NLS-1$
|
|
3684 default:
|
|
3685 }
|
|
3686 return "Unknown error"; //$NON-NLS-1$
|
|
3687 }
|
|
3688
|
|
3689
|
|
3690 /**
|
|
3691 * Returns the NLS'ed message for the given argument.
|
|
3692 *
|
|
3693 * @param key the key to look up
|
|
3694 * @return the message for the given key
|
|
3695 *
|
|
3696 * @exception IllegalArgumentException <ul>
|
|
3697 * <li>ERROR_NULL_ARGUMENT - if the key is null</li>
|
|
3698 * </ul>
|
|
3699 */
|
|
3700 public static String getMessage(String key) {
|
|
3701 return Compatibility.getMessage(key);
|
|
3702 }
|
|
3703
|
|
3704 /**
|
|
3705 * Returns the SWT platform name.
|
|
3706 * Examples: "win32", "motif", "gtk", "photon", "carbon"
|
|
3707 *
|
|
3708 * @return the SWT platform name
|
|
3709 */
|
|
3710 public static String getPlatform () {
|
|
3711 return Platform.PLATFORM;
|
|
3712 }
|
|
3713
|
|
3714 /**
|
|
3715 * Returns the SWT version number as an integer.
|
|
3716 * Example: "SWT051" == 51
|
|
3717 *
|
|
3718 * @return the SWT version number
|
|
3719 */
|
|
3720 public static int getVersion () {
|
|
3721 return Library.SWT_VERSION;
|
|
3722 }
|
|
3723
|
|
3724 /**
|
|
3725 * Throws an appropriate exception based on the passed in error code.
|
|
3726 *
|
|
3727 * @param code the SWT error code
|
|
3728 */
|
|
3729 public static void error (String file, long line, int code) {
|
|
3730 error (code, null);
|
|
3731 }
|
|
3732 public static void error (int code) {
|
|
3733 error (code, null);
|
|
3734 }
|
|
3735
|
|
3736 /**
|
|
3737 * Throws an appropriate exception based on the passed in error code.
|
|
3738 * The <code>throwable</code> argument should be either null, or the
|
|
3739 * throwable which caused SWT to throw an exception.
|
|
3740 * <p>
|
|
3741 * In SWT, errors are reported by throwing one of three exceptions:
|
|
3742 * <dl>
|
|
3743 * <dd>java.lang.IllegalArgumentException</dd>
|
|
3744 * <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt>
|
|
3745 * <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd>
|
|
3746 * <dt>thrown whenever a recoverable error happens internally in SWT</dt>
|
|
3747 * <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd>
|
|
3748 * <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt>
|
|
3749 * </dl>
|
|
3750 * This method provides the logic which maps between error codes
|
|
3751 * and one of the above exceptions.
|
|
3752 * </p>
|
|
3753 *
|
|
3754 * @param code the SWT error code.
|
|
3755 * @param throwable the exception which caused the error to occur.
|
|
3756 *
|
|
3757 * @see SWTError
|
|
3758 * @see SWTException
|
|
3759 * @see IllegalArgumentException
|
|
3760 */
|
|
3761 public static void error (int code, Exception throwable) {
|
|
3762 error (code, throwable, null);
|
|
3763 }
|
|
3764
|
|
3765 /**
|
|
3766 * Throws an appropriate exception based on the passed in error code.
|
|
3767 * The <code>throwable</code> argument should be either null, or the
|
|
3768 * throwable which caused SWT to throw an exception.
|
|
3769 * <p>
|
|
3770 * In SWT, errors are reported by throwing one of three exceptions:
|
|
3771 * <dl>
|
|
3772 * <dd>java.lang.IllegalArgumentException</dd>
|
|
3773 * <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt>
|
|
3774 * <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd>
|
|
3775 * <dt>thrown whenever a recoverable error happens internally in SWT</dt>
|
|
3776 * <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd>
|
|
3777 * <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt>
|
|
3778 * </dl>
|
|
3779 * This method provides the logic which maps between error codes
|
|
3780 * and one of the above exceptions.
|
|
3781 * </p>
|
|
3782 *
|
|
3783 * @param code the SWT error code.
|
|
3784 * @param throwable the exception which caused the error to occur.
|
|
3785 * @param detail more information about error.
|
|
3786 *
|
|
3787 * @see SWTError
|
|
3788 * @see SWTException
|
|
3789 * @see IllegalArgumentException
|
|
3790 *
|
|
3791 * @since 3.0
|
|
3792 */
|
|
3793 public static void error (int code, Exception throwable, String detail) {
|
|
3794
|
|
3795 /*
|
|
3796 * This code prevents the creation of "chains" of SWTErrors and
|
|
3797 * SWTExceptions which in turn contain other SWTErrors and
|
|
3798 * SWTExceptions as their throwable. This can occur when low level
|
|
3799 * code throws an exception past a point where a higher layer is
|
|
3800 * being "safe" and catching all exceptions. (Note that, this is
|
|
3801 * _a_bad_thing_ which we always try to avoid.)
|
|
3802 *
|
|
3803 * On the theory that the low level code is closest to the
|
|
3804 * original problem, we simply re-throw the original exception here.
|
|
3805 *
|
|
3806 * NOTE: Exceptions thrown in syncExec and asyncExec must be
|
|
3807 * wrapped.
|
|
3808 */
|
|
3809 if (code != SWT.ERROR_FAILED_EXEC) {
|
|
3810 if (auto t = cast(SWTError)throwable) throw t;
|
|
3811 if (auto t = cast(SWTException)throwable) throw t;
|
|
3812 }
|
|
3813
|
|
3814 String message = findErrorText (code);
|
|
3815 if (detail != null) message ~= detail;
|
|
3816 switch (code) {
|
|
3817
|
|
3818 /* Illegal Arguments (non-fatal) */
|
|
3819 case ERROR_NULL_ARGUMENT:
|
|
3820 case ERROR_CANNOT_BE_ZERO:
|
|
3821 case ERROR_INVALID_ARGUMENT:
|
|
3822 case ERROR_MENU_NOT_BAR:
|
|
3823 case ERROR_MENU_NOT_DROP_DOWN:
|
|
3824 case ERROR_MENU_NOT_POP_UP:
|
|
3825 case ERROR_MENUITEM_NOT_CASCADE:
|
|
3826 case ERROR_INVALID_PARENT:
|
|
3827 case ERROR_INVALID_RANGE: {
|
|
3828 throw new IllegalArgumentException (message);
|
|
3829 }
|
|
3830
|
|
3831 /* SWT Exceptions (non-fatal) */
|
|
3832 case ERROR_INVALID_SUBCLASS:
|
|
3833 case ERROR_THREAD_INVALID_ACCESS:
|
|
3834 case ERROR_WIDGET_DISPOSED:
|
|
3835 case ERROR_GRAPHIC_DISPOSED:
|
|
3836 case ERROR_DEVICE_DISPOSED:
|
|
3837 case ERROR_INVALID_IMAGE:
|
|
3838 case ERROR_UNSUPPORTED_DEPTH:
|
|
3839 case ERROR_UNSUPPORTED_FORMAT:
|
|
3840 case ERROR_FAILED_EXEC:
|
|
3841 case ERROR_CANNOT_INVERT_MATRIX:
|
|
3842 case ERROR_NO_GRAPHICS_LIBRARY:
|
|
3843 case ERROR_IO: {
|
|
3844 SWTException exception = new SWTException (code, message);
|
|
3845 exception.throwable = throwable;
|
|
3846 throw exception;
|
|
3847 }
|
|
3848
|
|
3849 /* Operation System Errors (fatal, may occur only on some platforms) */
|
|
3850 case ERROR_CANNOT_GET_COUNT:
|
|
3851 case ERROR_CANNOT_GET_ENABLED:
|
|
3852 case ERROR_CANNOT_GET_ITEM:
|
|
3853 case ERROR_CANNOT_GET_ITEM_HEIGHT:
|
|
3854 case ERROR_CANNOT_GET_SELECTION:
|
|
3855 case ERROR_CANNOT_GET_TEXT:
|
|
3856 case ERROR_CANNOT_SET_ENABLED:
|
|
3857 case ERROR_CANNOT_SET_MENU:
|
|
3858 case ERROR_CANNOT_SET_SELECTION:
|
|
3859 case ERROR_CANNOT_SET_TEXT:
|
|
3860 case ERROR_ITEM_NOT_ADDED:
|
|
3861 case ERROR_ITEM_NOT_REMOVED:
|
|
3862 case ERROR_NO_HANDLES:
|
|
3863 //FALL THROUGH
|
|
3864
|
|
3865 /* SWT Errors (fatal, may occur only on some platforms) */
|
|
3866 case ERROR_FAILED_LOAD_LIBRARY:
|
|
3867 case ERROR_NO_MORE_CALLBACKS:
|
|
3868 case ERROR_NOT_IMPLEMENTED:
|
|
3869 case ERROR_UNSPECIFIED: {
|
|
3870 SWTError error = new SWTError (code, message);
|
|
3871 error.throwable = throwable;
|
|
3872 throw error;
|
|
3873 }
|
|
3874 default:
|
|
3875 }
|
|
3876
|
|
3877 /* Unknown/Undefined Error */
|
|
3878 SWTError error = new SWTError (code, message);
|
|
3879 error.throwable = throwable;
|
|
3880 throw error;
|
|
3881 }
|
|
3882
|
|
3883 }
|