blob: 4c75f03fd3491b92413be5539316640c16ed16ce [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26package sun.awt.X11;
27
28public interface XConstants {
29 public static final int X_PROTOCOL = 11 ; /* current protocol version */
30 public static final int X_PROTOCOL_REVISION = 0 ; /* current minor version */
31
32 /* Resources */
33
34 /*
35 * _XSERVER64 must ONLY be defined when compiling X server sources on
36 * systems where unsigned long is not 32 bits, must NOT be used in
37 * client or library code.
38 */
39
40 /*
41 #ifndef _XSERVER64
42 typedef unsigned long XID;
43 typedef unsigned long Mask;
44 typedef unsigned long Atom;
45 typedef unsigned long VisualID;
46 typedef unsigned long Time;
47 #else
48 typedef CARD32 XID;
49 typedef CARD32 Mask;
50 typedef CARD32 Atom;
51 typedef CARD32 VisualID;
52 typedef CARD32 Time;
53 #endif
54
55 typedef XID Window;
56 typedef XID Drawable;
57 typedef XID Font;
58 typedef XID Pixmap;
59 typedef XID Cursor;
60 typedef XID Colormap;
61 typedef XID GContext;
62 typedef XID KeySym;
63
64 typedef unsigned char KeyCode;
65 */
66 /*****************************************************************
67 * RESERVED RESOURCE AND CONSTANT DEFINITIONS
68 *****************************************************************/
69
70 public static final long None = 0L ; /* universal null resource or null atom */
71
72 /* background pixmap in CreateWindow and ChangeWindowAttributes */
73 public static final long ParentRelative = 1L ;
74
75 /* border pixmap in CreateWindow and ChangeWindowAttributes special
76 * VisualID and special window class passed to CreateWindow */
77 public static final long CopyFromParent = 0L ;
78
79 public static final long PointerWindow = 0L ; /* destination window in SendEvent */
80 public static final long InputFocus = 1L ; /* destination window in SendEvent */
81
82 public static final long PointerRoot = 1L ; /* focus window in SetInputFocus */
83
84 public static final long AnyPropertyType = 0L ; /* special Atom, passed to GetProperty */
85
86 public static final long AnyKey = 0L ; /* special Key Code, passed to GrabKey */
87
88 public static final long AnyButton = 0L ; /* special Button Code, passed to GrabButton */
89
90 public static final long AllTemporary = 0L ; /* special Resource ID passed to KillClient */
91
92 public static final long CurrentTime = 0L ; /* special Time */
93
94 public static final long NoSymbol = 0L ; /* special KeySym */
95
96 /*****************************************************************
97 * EVENT DEFINITIONS
98 *****************************************************************/
99
100 /* Input Event Masks. Used as event-mask window attribute and as arguments
101 to Grab requests. Not to be confused with event names. */
102
103 public static final long NoEventMask = 0L ;
104 public static final long KeyPressMask = (1L<<0) ;
105 public static final long KeyReleaseMask = (1L<<1) ;
106 public static final long ButtonPressMask = (1L<<2) ;
107 public static final long ButtonReleaseMask = (1L<<3) ;
108 public static final long EnterWindowMask = (1L<<4) ;
109 public static final long LeaveWindowMask = (1L<<5) ;
110 public static final long PointerMotionMask = (1L<<6) ;
111 public static final long PointerMotionHintMask = (1L<<7) ;
112 public static final long Button1MotionMask = (1L<<8) ;
113 public static final long Button2MotionMask = (1L<<9) ;
114 public static final long Button3MotionMask = (1L<<10) ;
115 public static final long Button4MotionMask = (1L<<11) ;
116 public static final long Button5MotionMask = (1L<<12) ;
117 public static final long ButtonMotionMask = (1L<<13) ;
118 public static final long KeymapStateMask = (1L<<14) ;
119 public static final long ExposureMask = (1L<<15) ;
120 public static final long VisibilityChangeMask = (1L<<16) ;
121 public static final long StructureNotifyMask = (1L<<17) ;
122 public static final long ResizeRedirectMask = (1L<<18) ;
123 public static final long SubstructureNotifyMask = (1L<<19) ;
124 public static final long SubstructureRedirectMask = (1L<<20) ;
125 public static final long FocusChangeMask = (1L<<21) ;
126 public static final long PropertyChangeMask = (1L<<22) ;
127 public static final long ColormapChangeMask = (1L<<23) ;
128 public static final long OwnerGrabButtonMask = (1L<<24) ;
129
130 /* Event names. Used in "type" field in XEvent structures. Not to be
131 confused with event masks above. They start from 2 because 0 and 1
132 are reserved in the protocol for errors and replies. */
133
134 public static final int KeyPress = 2 ;
135 public static final int KeyRelease = 3 ;
136 public static final int ButtonPress = 4 ;
137 public static final int ButtonRelease = 5 ;
138 public static final int MotionNotify = 6 ;
139 public static final int EnterNotify = 7 ;
140 public static final int LeaveNotify = 8 ;
141 public static final int FocusIn = 9 ;
142 public static final int FocusOut = 10 ;
143 public static final int KeymapNotify = 11 ;
144 public static final int Expose = 12 ;
145 public static final int GraphicsExpose = 13 ;
146 public static final int NoExpose = 14 ;
147 public static final int VisibilityNotify = 15 ;
148 public static final int CreateNotify = 16 ;
149 public static final int DestroyNotify = 17 ;
150 public static final int UnmapNotify = 18 ;
151 public static final int MapNotify = 19 ;
152 public static final int MapRequest = 20 ;
153 public static final int ReparentNotify = 21 ;
154 public static final int ConfigureNotify = 22 ;
155 public static final int ConfigureRequest = 23 ;
156 public static final int GravityNotify = 24 ;
157 public static final int ResizeRequest = 25 ;
158 public static final int CirculateNotify = 26 ;
159 public static final int CirculateRequest = 27 ;
160 public static final int PropertyNotify = 28 ;
161 public static final int SelectionClear = 29 ;
162 public static final int SelectionRequest = 30 ;
163 public static final int SelectionNotify = 31 ;
164 public static final int ColormapNotify = 32 ;
165 public static final int ClientMessage = 33 ;
166 public static final int MappingNotify = 34 ;
167 public static final int LASTEvent = 35 ; /* must be bigger than any event # */
168
169
170 /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
171 state in various key-, mouse-, and button-related events. */
172
173 public static final int ShiftMask = (1<<0) ;
174 public static final int LockMask = (1<<1) ;
175 public static final int ControlMask = (1<<2) ;
176 public static final int Mod1Mask = (1<<3) ;
177 public static final int Mod2Mask = (1<<4) ;
178 public static final int Mod3Mask = (1<<5) ;
179 public static final int Mod4Mask = (1<<6) ;
180 public static final int Mod5Mask = (1<<7) ;
181
182 /* modifier names. Used to build a SetModifierMapping request or
183 to read a GetModifierMapping request. These correspond to the
184 masks defined above. */
185 public static final int ShiftMapIndex = 0 ;
186 public static final int LockMapIndex = 1 ;
187 public static final int ControlMapIndex = 2 ;
188 public static final int Mod1MapIndex = 3 ;
189 public static final int Mod2MapIndex = 4 ;
190 public static final int Mod3MapIndex = 5 ;
191 public static final int Mod4MapIndex = 6 ;
192 public static final int Mod5MapIndex = 7 ;
193
194
195 /* button masks. Used in same manner as Key masks above. Not to be confused
196 with button names below. */
197
198 public static final int Button1Mask = (1<<8) ;
199 public static final int Button2Mask = (1<<9) ;
200 public static final int Button3Mask = (1<<10) ;
201 public static final int Button4Mask = (1<<11) ;
202 public static final int Button5Mask = (1<<12) ;
203
204 public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
205
206
207 /* button names. Used as arguments to GrabButton and as detail in ButtonPress
208 and ButtonRelease events. Not to be confused with button masks above.
209 Note that 0 is already defined above as "AnyButton". */
210
211 public static final int Button1 = 1 ;
212 public static final int Button2 = 2 ;
213 public static final int Button3 = 3 ;
214 public static final int Button4 = 4 ;
215 public static final int Button5 = 5 ;
216
217 /* Notify modes */
218
219 public static final int NotifyNormal = 0 ;
220 public static final int NotifyGrab = 1 ;
221 public static final int NotifyUngrab = 2 ;
222 public static final int NotifyWhileGrabbed = 3 ;
223
224 public static final int NotifyHint = 1 ; /* for MotionNotify events */
225
226 /* Notify detail */
227
228 public static final int NotifyAncestor = 0 ;
229 public static final int NotifyVirtual = 1 ;
230 public static final int NotifyInferior = 2 ;
231 public static final int NotifyNonlinear = 3 ;
232 public static final int NotifyNonlinearVirtual = 4 ;
233 public static final int NotifyPointer = 5 ;
234 public static final int NotifyPointerRoot = 6 ;
235 public static final int NotifyDetailNone = 7 ;
236
237 /* Visibility notify */
238
239 public static final int VisibilityUnobscured = 0 ;
240 public static final int VisibilityPartiallyObscured = 1 ;
241 public static final int VisibilityFullyObscured = 2 ;
242
243 /* Circulation request */
244
245 public static final int PlaceOnTop = 0 ;
246 public static final int PlaceOnBottom = 1 ;
247
248 /* protocol families */
249
250 public static final int FamilyInternet = 0 ;
251 public static final int FamilyDECnet = 1 ;
252 public static final int FamilyChaos = 2 ;
253
254 /* Property notification */
255
256 public static final int PropertyNewValue = 0 ;
257 public static final int PropertyDelete = 1 ;
258
259 /* Color Map notification */
260
261 public static final int ColormapUninstalled = 0 ;
262 public static final int ColormapInstalled = 1 ;
263
264 /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
265
266 public static final int GrabModeSync = 0 ;
267 public static final int GrabModeAsync = 1 ;
268
269 /* GrabPointer, GrabKeyboard reply status */
270
271 public static final int GrabSuccess = 0 ;
272 public static final int AlreadyGrabbed = 1 ;
273 public static final int GrabInvalidTime = 2 ;
274 public static final int GrabNotViewable = 3 ;
275 public static final int GrabFrozen = 4 ;
276
277 /* AllowEvents modes */
278
279 public static final int AsyncPointer = 0 ;
280 public static final int SyncPointer = 1 ;
281 public static final int ReplayPointer = 2 ;
282 public static final int AsyncKeyboard = 3 ;
283 public static final int SyncKeyboard = 4 ;
284 public static final int ReplayKeyboard = 5 ;
285 public static final int AsyncBoth = 6 ;
286 public static final int SyncBoth = 7 ;
287
288 /* Used in SetInputFocus, GetInputFocus */
289
290 public static final int RevertToNone = (int)None ;
291 public static final int RevertToPointerRoot = (int)PointerRoot ;
292 public static final int RevertToParent = 2 ;
293
294 /* Used in XEventsQueued */
295 int QueuedAlready = 0;
296 int QueuedAfterReading = 1;
297 int QueuedAfterFlush = 2;
298
299
300 /*****************************************************************
301 * ERROR CODES
302 *****************************************************************/
303
304 public static final int Success = 0 ; /* everything's okay */
305 public static final int BadRequest = 1 ; /* bad request code */
306 public static final int BadValue = 2 ; /* int parameter out of range */
307 public static final int BadWindow = 3 ; /* parameter not a Window */
308 public static final int BadPixmap = 4 ; /* parameter not a Pixmap */
309 public static final int BadAtom = 5 ; /* parameter not an Atom */
310 public static final int BadCursor = 6 ; /* parameter not a Cursor */
311 public static final int BadFont = 7 ; /* parameter not a Font */
312 public static final int BadMatch = 8 ; /* parameter mismatch */
313 public static final int BadDrawable = 9 ; /* parameter not a Pixmap or Window */
314 public static final int BadAccess = 10 ; /* depending on context:
315 - key/button already grabbed
316 - attempt to free an illegal
317 cmap entry
318 - attempt to store into a read-only
319 color map entry.
320 - attempt to modify the access control
321 list from other than the local host.
322 */
323 public static final int BadAlloc = 11 ; /* insufficient resources */
324 public static final int BadColor = 12 ; /* no such colormap */
325 public static final int BadGC = 13 ; /* parameter not a GC */
326 public static final int BadIDChoice = 14 ; /* choice not in range or already used */
327 public static final int BadName = 15 ; /* font or color name doesn't exist */
328 public static final int BadLength = 16 ; /* Request length incorrect */
329 public static final int BadImplementation = 17 ; /* server is defective */
330
331 public static final int FirstExtensionError = 128 ;
332 public static final int LastExtensionError = 255 ;
333
334 /*****************************************************************
335 * WINDOW DEFINITIONS
336 *****************************************************************/
337
338 /* Window classes used by CreateWindow */
339 /* Note that CopyFromParent is already defined as 0 above */
340
341 public static final int InputOutput = 1 ;
342 public static final int InputOnly = 2 ;
343
344 /* Window attributes for CreateWindow and ChangeWindowAttributes */
345
346 public static final long CWBackPixmap = (1L<<0) ;
347 public static final long CWBackPixel = (1L<<1) ;
348 public static final long CWBorderPixmap = (1L<<2) ;
349 public static final long CWBorderPixel = (1L<<3) ;
350 public static final long CWBitGravity = (1L<<4) ;
351 public static final long CWWinGravity = (1L<<5) ;
352 public static final long CWBackingStore = (1L<<6) ;
353 public static final long CWBackingPlanes = (1L<<7) ;
354 public static final long CWBackingPixel = (1L<<8) ;
355 public static final long CWOverrideRedirect = (1L<<9) ;
356 public static final long CWSaveUnder = (1L<<10) ;
357 public static final long CWEventMask = (1L<<11) ;
358 public static final long CWDontPropagate = (1L<<12) ;
359 public static final long CWColormap = (1L<<13) ;
360 public static final long CWCursor = (1L<<14) ;
361
362 /* ConfigureWindow structure */
363
364 public static final int CWX = (1<<0) ;
365 public static final int CWY = (1<<1) ;
366 public static final int CWWidth = (1<<2) ;
367 public static final int CWHeight = (1<<3) ;
368 public static final int CWBorderWidth = (1<<4) ;
369 public static final int CWSibling = (1<<5) ;
370 public static final int CWStackMode = (1<<6) ;
371
372
373 /* Bit Gravity */
374
375 public static final int ForgetGravity = 0 ;
376 public static final int NorthWestGravity = 1 ;
377 public static final int NorthGravity = 2 ;
378 public static final int NorthEastGravity = 3 ;
379 public static final int WestGravity = 4 ;
380 public static final int CenterGravity = 5 ;
381 public static final int EastGravity = 6 ;
382 public static final int SouthWestGravity = 7 ;
383 public static final int SouthGravity = 8 ;
384 public static final int SouthEastGravity = 9 ;
385 public static final int StaticGravity = 10 ;
386
387 /* Window gravity + bit gravity above */
388
389 public static final int UnmapGravity = 0 ;
390
391 /* Used in CreateWindow for backing-store hint */
392
393 public static final int NotUseful = 0 ;
394 public static final int WhenMapped = 1 ;
395 public static final int Always = 2 ;
396
397 /* Used in GetWindowAttributes reply */
398
399 public static final int IsUnmapped = 0 ;
400 public static final int IsUnviewable = 1 ;
401 public static final int IsViewable = 2 ;
402
403 /* Used in ChangeSaveSet */
404
405 public static final int SetModeInsert = 0 ;
406 public static final int SetModeDelete = 1 ;
407
408 /* Used in ChangeCloseDownMode */
409
410 public static final int DestroyAll = 0 ;
411 public static final int RetainPermanent = 1 ;
412 public static final int RetainTemporary = 2 ;
413
414 /* Window stacking method (in configureWindow) */
415
416 public static final int Above = 0 ;
417 public static final int Below = 1 ;
418 public static final int TopIf = 2 ;
419 public static final int BottomIf = 3 ;
420 public static final int Opposite = 4 ;
421
422 /* Circulation direction */
423
424 public static final int RaiseLowest = 0 ;
425 public static final int LowerHighest = 1 ;
426
427 /* Property modes */
428
429 public static final int PropModeReplace = 0 ;
430 public static final int PropModePrepend = 1 ;
431 public static final int PropModeAppend = 2 ;
432
433 /*****************************************************************
434 * GRAPHICS DEFINITIONS
435 *****************************************************************/
436
437 /* graphics functions, as in GC.alu */
438
439 public static final int GXclear = 0x0 ; /* 0 */
440 public static final int GXand = 0x1 ; /* src AND dst */
441 public static final int GXandReverse = 0x2 ; /* src AND NOT dst */
442 public static final int GXcopy = 0x3 ; /* src */
443 public static final int GXandInverted = 0x4 ; /* NOT src AND dst */
444 public static final int GXnoop = 0x5 ; /* dst */
445 public static final int GXxor = 0x6 ; /* src XOR dst */
446 public static final int GXor = 0x7 ; /* src OR dst */
447 public static final int GXnor = 0x8 ; /* NOT src AND NOT dst */
448 public static final int GXequiv = 0x9 ; /* NOT src XOR dst */
449 public static final int GXinvert = 0xa ; /* NOT dst */
450 public static final int GXorReverse = 0xb ; /* src OR NOT dst */
451 public static final int GXcopyInverted = 0xc ; /* NOT src */
452 public static final int GXorInverted = 0xd ; /* NOT src OR dst */
453 public static final int GXnand = 0xe ; /* NOT src OR NOT dst */
454 public static final int GXset = 0xf ; /* 1 */
455
456 /* LineStyle */
457
458 public static final int LineSolid = 0 ;
459 public static final int LineOnOffDash = 1 ;
460 public static final int LineDoubleDash = 2 ;
461
462 /* capStyle */
463
464 public static final int CapNotLast = 0 ;
465 public static final int CapButt = 1 ;
466 public static final int CapRound = 2 ;
467 public static final int CapProjecting = 3 ;
468
469 /* joinStyle */
470
471 public static final int JoinMiter = 0 ;
472 public static final int JoinRound = 1 ;
473 public static final int JoinBevel = 2 ;
474
475 /* fillStyle */
476
477 public static final int FillSolid = 0 ;
478 public static final int FillTiled = 1 ;
479 public static final int FillStippled = 2 ;
480 public static final int FillOpaqueStippled = 3 ;
481
482 /* fillRule */
483
484 public static final int EvenOddRule = 0 ;
485 public static final int WindingRule = 1 ;
486
487 /* subwindow mode */
488
489 public static final int ClipByChildren = 0 ;
490 public static final int IncludeInferiors = 1 ;
491
492 /* SetClipRectangles ordering */
493
494 public static final int Unsorted = 0 ;
495 public static final int YSorted = 1 ;
496 public static final int YXSorted = 2 ;
497 public static final int YXBanded = 3 ;
498
499 /* CoordinateMode for drawing routines */
500
501 public static final int CoordModeOrigin = 0 ; /* relative to the origin */
502 public static final int CoordModePrevious = 1 ; /* relative to previous point */
503
504 /* Polygon shapes */
505
506 public static final int Complex = 0 ; /* paths may intersect */
507 public static final int Nonconvex = 1 ; /* no paths intersect, but not convex */
508 public static final int Convex = 2 ; /* wholly convex */
509
510 /* Arc modes for PolyFillArc */
511
512 public static final int ArcChord = 0 ; /* join endpoints of arc */
513 public static final int ArcPieSlice = 1 ; /* join endpoints to center of arc */
514
515 /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
516 GC.stateChanges */
517
518 public static final long GCFunction = (1L<<0) ;
519 public static final long GCPlaneMask = (1L<<1) ;
520 public static final long GCForeground = (1L<<2) ;
521 public static final long GCBackground = (1L<<3) ;
522 public static final long GCLineWidth = (1L<<4) ;
523 public static final long GCLineStyle = (1L<<5) ;
524 public static final long GCCapStyle = (1L<<6) ;
525 public static final long GCJoinStyle = (1L<<7) ;
526 public static final long GCFillStyle = (1L<<8) ;
527 public static final long GCFillRule = (1L<<9) ;
528 public static final long GCTile = (1L<<10) ;
529 public static final long GCStipple = (1L<<11) ;
530 public static final long GCTileStipXOrigin = (1L<<12) ;
531 public static final long GCTileStipYOrigin = (1L<<13) ;
532 public static final long GCFont = (1L<<14) ;
533 public static final long GCSubwindowMode = (1L<<15) ;
534 public static final long GCGraphicsExposures = (1L<<16) ;
535 public static final long GCClipXOrigin = (1L<<17) ;
536 public static final long GCClipYOrigin = (1L<<18) ;
537 public static final long GCClipMask = (1L<<19) ;
538 public static final long GCDashOffset = (1L<<20) ;
539 public static final long GCDashList = (1L<<21) ;
540 public static final long GCArcMode = (1L<<22) ;
541
542 public static final int GCLastBit = 22 ;
543 /*****************************************************************
544 * FONTS
545 *****************************************************************/
546
547 /* used in QueryFont -- draw direction */
548
549 public static final int FontLeftToRight = 0 ;
550 public static final int FontRightToLeft = 1 ;
551
552 public static final int FontChange = 255 ;
553
554 /*****************************************************************
555 * IMAGING
556 *****************************************************************/
557
558 /* ImageFormat -- PutImage, GetImage */
559
560 public static final int XYBitmap = 0 ; /* depth 1, XYFormat */
561 public static final int XYPixmap = 1 ; /* depth == drawable depth */
562 public static final int ZPixmap = 2 ; /* depth == drawable depth */
563
564 /*****************************************************************
565 * COLOR MAP STUFF
566 *****************************************************************/
567
568 /* For CreateColormap */
569
570 public static final int AllocNone = 0 ; /* create map with no entries */
571 public static final int AllocAll = 1 ; /* allocate entire map writeable */
572
573
574 /* Flags used in StoreNamedColor, StoreColors */
575
576 public static final int DoRed = (1<<0) ;
577 public static final int DoGreen = (1<<1) ;
578 public static final int DoBlue = (1<<2) ;
579
580 /*****************************************************************
581 * CURSOR STUFF
582 *****************************************************************/
583
584 /* QueryBestSize Class */
585
586 public static final int CursorShape = 0 ; /* largest size that can be displayed */
587 public static final int TileShape = 1 ; /* size tiled fastest */
588 public static final int StippleShape = 2 ; /* size stippled fastest */
589
590 /*****************************************************************
591 * KEYBOARD/POINTER STUFF
592 *****************************************************************/
593
594 public static final int AutoRepeatModeOff = 0 ;
595 public static final int AutoRepeatModeOn = 1 ;
596 public static final int AutoRepeatModeDefault = 2 ;
597
598 public static final int LedModeOff = 0 ;
599 public static final int LedModeOn = 1 ;
600
601 /* masks for ChangeKeyboardControl */
602
603 public static final long KBKeyClickPercent = (1L<<0) ;
604 public static final long KBBellPercent = (1L<<1) ;
605 public static final long KBBellPitch = (1L<<2) ;
606 public static final long KBBellDuration = (1L<<3) ;
607 public static final long KBLed = (1L<<4) ;
608 public static final long KBLedMode = (1L<<5) ;
609 public static final long KBKey = (1L<<6) ;
610 public static final long KBAutoRepeatMode = (1L<<7) ;
611
612 public static final int MappingSuccess = 0 ;
613 public static final int MappingBusy = 1 ;
614 public static final int MappingFailed = 2 ;
615
616 public static final int MappingModifier = 0 ;
617 public static final int MappingKeyboard = 1 ;
618 public static final int MappingPointer = 2 ;
619
620 /*****************************************************************
621 * SCREEN SAVER STUFF
622 *****************************************************************/
623
624 public static final int DontPreferBlanking = 0 ;
625 public static final int PreferBlanking = 1 ;
626 public static final int DefaultBlanking = 2 ;
627
628 public static final int DisableScreenSaver = 0 ;
629 public static final int DisableScreenInterval = 0 ;
630
631 public static final int DontAllowExposures = 0 ;
632 public static final int AllowExposures = 1 ;
633 public static final int DefaultExposures = 2 ;
634
635 /* for ForceScreenSaver */
636
637 public static final int ScreenSaverReset = 0 ;
638 public static final int ScreenSaverActive = 1 ;
639
640 /*****************************************************************
641 * HOSTS AND CONNECTIONS
642 *****************************************************************/
643
644 /* for ChangeHosts */
645
646 public static final int HostInsert = 0 ;
647 public static final int HostDelete = 1 ;
648
649 /* for ChangeAccessControl */
650
651 public static final int EnableAccess = 1 ;
652 public static final int DisableAccess = 0 ;
653
654 /* Display classes used in opening the connection
655 * Note that the statically allocated ones are even numbered and the
656 * dynamically changeable ones are odd numbered */
657
658 public static final int StaticGray = 0 ;
659 public static final int GrayScale = 1 ;
660 public static final int StaticColor = 2 ;
661 public static final int PseudoColor = 3 ;
662 public static final int TrueColor = 4 ;
663 public static final int DirectColor = 5 ;
664
665
666 /* Byte order used in imageByteOrder and bitmapBitOrder */
667
668 public static final int LSBFirst = 0 ;
669 public static final int MSBFirst = 1 ;
670}