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