Source Code Cross Referenced for XConstants.java in  » 6.0-JDK-Platform » solaris » sun » awt » X11 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Platform » solaris » sun.awt.X11 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004:         *
005:         * This code is free software; you can redistribute it and/or modify it
006:         * under the terms of the GNU General Public License version 2 only, as
007:         * published by the Free Software Foundation.  Sun designates this
008:         * particular file as subject to the "Classpath" exception as provided
009:         * by Sun in the LICENSE file that accompanied this code.
010:         *
011:         * This code is distributed in the hope that it will be useful, but WITHOUT
012:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013:         * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014:         * version 2 for more details (a copy is included in the LICENSE file that
015:         * accompanied this code).
016:         *
017:         * You should have received a copy of the GNU General Public License version
018:         * 2 along with this work; if not, write to the Free Software Foundation,
019:         * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020:         *
021:         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022:         * CA 95054 USA or visit www.sun.com if you need additional information or
023:         * have any questions.
024:         */
025:
026:        package sun.awt.X11;
027:
028:        public interface XConstants {
029:            public static final int X_PROTOCOL = 11; /* current protocol version */
030:            public static final int X_PROTOCOL_REVISION = 0; /* current minor version */
031:
032:            /* Resources */
033:
034:            /*
035:             * _XSERVER64 must ONLY be defined when compiling X server sources on
036:             * systems where unsigned long is not 32 bits, must NOT be used in
037:             * client or library code.
038:             */
039:
040:            /*
041:            #ifndef _XSERVER64
042:            typedef unsigned long XID;
043:            typedef unsigned long Mask;
044:            typedef unsigned long Atom;
045:            typedef unsigned long VisualID;
046:            typedef unsigned long Time;
047:            #else
048:            typedef CARD32 XID;
049:            typedef CARD32 Mask;
050:            typedef CARD32 Atom;
051:            typedef CARD32 VisualID;
052:            typedef CARD32 Time;
053:            #endif
054:            
055:            typedef XID Window;
056:            typedef XID Drawable;
057:            typedef XID Font;
058:            typedef XID Pixmap;
059:            typedef XID Cursor;
060:            typedef XID Colormap;
061:            typedef XID GContext;
062:            typedef XID KeySym;
063:            
064:            typedef unsigned char KeyCode;
065:             */
066:            /*****************************************************************
067:             * RESERVED RESOURCE AND CONSTANT DEFINITIONS
068:             *****************************************************************/
069:
070:            public static final long None = 0L; /* universal null resource or null atom */
071:
072:            /* background pixmap in CreateWindow and ChangeWindowAttributes */
073:            public static final long ParentRelative = 1L;
074:
075:            /* border pixmap in CreateWindow and ChangeWindowAttributes special 
076:             * VisualID and special window class passed to CreateWindow */
077:            public static final long CopyFromParent = 0L;
078:
079:            public static final long PointerWindow = 0L; /* destination window in SendEvent */
080:            public static final long InputFocus = 1L; /* destination window in SendEvent */
081:
082:            public static final long PointerRoot = 1L; /* focus window in SetInputFocus */
083:
084:            public static final long AnyPropertyType = 0L; /* special Atom, passed to GetProperty */
085:
086:            public static final long AnyKey = 0L; /* special Key Code, passed to GrabKey */
087:
088:            public static final long AnyButton = 0L; /* special Button Code, passed to GrabButton */
089:
090:            public static final long AllTemporary = 0L; /* special Resource ID passed to KillClient */
091:
092:            public static final long CurrentTime = 0L; /* special Time */
093:
094:            public static final long NoSymbol = 0L; /* special KeySym */
095:
096:            /***************************************************************** 
097:             * EVENT DEFINITIONS 
098:             *****************************************************************/
099:
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:            /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
170:               state in various key-, mouse-, and button-related events. */
171:
172:            public static final int ShiftMask = (1 << 0);
173:            public static final int LockMask = (1 << 1);
174:            public static final int ControlMask = (1 << 2);
175:            public static final int Mod1Mask = (1 << 3);
176:            public static final int Mod2Mask = (1 << 4);
177:            public static final int Mod3Mask = (1 << 5);
178:            public static final int Mod4Mask = (1 << 6);
179:            public static final int Mod5Mask = (1 << 7);
180:
181:            /* modifier names.  Used to build a SetModifierMapping request or
182:               to read a GetModifierMapping request.  These correspond to the
183:               masks defined above. */
184:            public static final int ShiftMapIndex = 0;
185:            public static final int LockMapIndex = 1;
186:            public static final int ControlMapIndex = 2;
187:            public static final int Mod1MapIndex = 3;
188:            public static final int Mod2MapIndex = 4;
189:            public static final int Mod3MapIndex = 5;
190:            public static final int Mod4MapIndex = 6;
191:            public static final int Mod5MapIndex = 7;
192:
193:            /* button masks.  Used in same manner as Key masks above. Not to be confused
194:               with button names below. */
195:
196:            public static final int Button1Mask = (1 << 8);
197:            public static final int Button2Mask = (1 << 9);
198:            public static final int Button3Mask = (1 << 10);
199:            public static final int Button4Mask = (1 << 11);
200:            public static final int Button5Mask = (1 << 12);
201:
202:            public static final int AnyModifier = (1 << 15); /* used in GrabButton, GrabKey */
203:
204:            /* button names. Used as arguments to GrabButton and as detail in ButtonPress
205:               and ButtonRelease events.  Not to be confused with button masks above.
206:               Note that 0 is already defined above as "AnyButton".  */
207:
208:            public static final int Button1 = 1;
209:            public static final int Button2 = 2;
210:            public static final int Button3 = 3;
211:            public static final int Button4 = 4;
212:            public static final int Button5 = 5;
213:
214:            /* Notify modes */
215:
216:            public static final int NotifyNormal = 0;
217:            public static final int NotifyGrab = 1;
218:            public static final int NotifyUngrab = 2;
219:            public static final int NotifyWhileGrabbed = 3;
220:
221:            public static final int NotifyHint = 1; /* for MotionNotify events */
222:
223:            /* Notify detail */
224:
225:            public static final int NotifyAncestor = 0;
226:            public static final int NotifyVirtual = 1;
227:            public static final int NotifyInferior = 2;
228:            public static final int NotifyNonlinear = 3;
229:            public static final int NotifyNonlinearVirtual = 4;
230:            public static final int NotifyPointer = 5;
231:            public static final int NotifyPointerRoot = 6;
232:            public static final int NotifyDetailNone = 7;
233:
234:            /* Visibility notify */
235:
236:            public static final int VisibilityUnobscured = 0;
237:            public static final int VisibilityPartiallyObscured = 1;
238:            public static final int VisibilityFullyObscured = 2;
239:
240:            /* Circulation request */
241:
242:            public static final int PlaceOnTop = 0;
243:            public static final int PlaceOnBottom = 1;
244:
245:            /* protocol families */
246:
247:            public static final int FamilyInternet = 0;
248:            public static final int FamilyDECnet = 1;
249:            public static final int FamilyChaos = 2;
250:
251:            /* Property notification */
252:
253:            public static final int PropertyNewValue = 0;
254:            public static final int PropertyDelete = 1;
255:
256:            /* Color Map notification */
257:
258:            public static final int ColormapUninstalled = 0;
259:            public static final int ColormapInstalled = 1;
260:
261:            /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
262:
263:            public static final int GrabModeSync = 0;
264:            public static final int GrabModeAsync = 1;
265:
266:            /* GrabPointer, GrabKeyboard reply status */
267:
268:            public static final int GrabSuccess = 0;
269:            public static final int AlreadyGrabbed = 1;
270:            public static final int GrabInvalidTime = 2;
271:            public static final int GrabNotViewable = 3;
272:            public static final int GrabFrozen = 4;
273:
274:            /* AllowEvents modes */
275:
276:            public static final int AsyncPointer = 0;
277:            public static final int SyncPointer = 1;
278:            public static final int ReplayPointer = 2;
279:            public static final int AsyncKeyboard = 3;
280:            public static final int SyncKeyboard = 4;
281:            public static final int ReplayKeyboard = 5;
282:            public static final int AsyncBoth = 6;
283:            public static final int SyncBoth = 7;
284:
285:            /* Used in SetInputFocus, GetInputFocus */
286:
287:            public static final int RevertToNone = (int) None;
288:            public static final int RevertToPointerRoot = (int) PointerRoot;
289:            public static final int RevertToParent = 2;
290:
291:            /* Used in XEventsQueued */
292:            int QueuedAlready = 0;
293:            int QueuedAfterReading = 1;
294:            int QueuedAfterFlush = 2;
295:
296:            /*****************************************************************
297:             * ERROR CODES 
298:             *****************************************************************/
299:
300:            public static final int Success = 0; /* everything's okay */
301:            public static final int BadRequest = 1; /* bad request code */
302:            public static final int BadValue = 2; /* int parameter out of range */
303:            public static final int BadWindow = 3; /* parameter not a Window */
304:            public static final int BadPixmap = 4; /* parameter not a Pixmap */
305:            public static final int BadAtom = 5; /* parameter not an Atom */
306:            public static final int BadCursor = 6; /* parameter not a Cursor */
307:            public static final int BadFont = 7; /* parameter not a Font */
308:            public static final int BadMatch = 8; /* parameter mismatch */
309:            public static final int BadDrawable = 9; /* parameter not a Pixmap or Window */
310:            public static final int BadAccess = 10; /* depending on context:
311:                                - key/button already grabbed
312:                                - attempt to free an illegal 
313:                                  cmap entry 
314:                               - attempt to store into a read-only 
315:                                  color map entry.
316:                               - attempt to modify the access control
317:                                  list from other than the local host.
318:             */
319:            public static final int BadAlloc = 11; /* insufficient resources */
320:            public static final int BadColor = 12; /* no such colormap */
321:            public static final int BadGC = 13; /* parameter not a GC */
322:            public static final int BadIDChoice = 14; /* choice not in range or already used */
323:            public static final int BadName = 15; /* font or color name doesn't exist */
324:            public static final int BadLength = 16; /* Request length incorrect */
325:            public static final int BadImplementation = 17; /* server is defective */
326:
327:            public static final int FirstExtensionError = 128;
328:            public static final int LastExtensionError = 255;
329:
330:            /*****************************************************************
331:             * WINDOW DEFINITIONS 
332:             *****************************************************************/
333:
334:            /* Window classes used by CreateWindow */
335:            /* Note that CopyFromParent is already defined as 0 above */
336:
337:            public static final int InputOutput = 1;
338:            public static final int InputOnly = 2;
339:
340:            /* Window attributes for CreateWindow and ChangeWindowAttributes */
341:
342:            public static final long CWBackPixmap = (1L << 0);
343:            public static final long CWBackPixel = (1L << 1);
344:            public static final long CWBorderPixmap = (1L << 2);
345:            public static final long CWBorderPixel = (1L << 3);
346:            public static final long CWBitGravity = (1L << 4);
347:            public static final long CWWinGravity = (1L << 5);
348:            public static final long CWBackingStore = (1L << 6);
349:            public static final long CWBackingPlanes = (1L << 7);
350:            public static final long CWBackingPixel = (1L << 8);
351:            public static final long CWOverrideRedirect = (1L << 9);
352:            public static final long CWSaveUnder = (1L << 10);
353:            public static final long CWEventMask = (1L << 11);
354:            public static final long CWDontPropagate = (1L << 12);
355:            public static final long CWColormap = (1L << 13);
356:            public static final long CWCursor = (1L << 14);
357:
358:            /* ConfigureWindow structure */
359:
360:            public static final int CWX = (1 << 0);
361:            public static final int CWY = (1 << 1);
362:            public static final int CWWidth = (1 << 2);
363:            public static final int CWHeight = (1 << 3);
364:            public static final int CWBorderWidth = (1 << 4);
365:            public static final int CWSibling = (1 << 5);
366:            public static final int CWStackMode = (1 << 6);
367:
368:            /* Bit Gravity */
369:
370:            public static final int ForgetGravity = 0;
371:            public static final int NorthWestGravity = 1;
372:            public static final int NorthGravity = 2;
373:            public static final int NorthEastGravity = 3;
374:            public static final int WestGravity = 4;
375:            public static final int CenterGravity = 5;
376:            public static final int EastGravity = 6;
377:            public static final int SouthWestGravity = 7;
378:            public static final int SouthGravity = 8;
379:            public static final int SouthEastGravity = 9;
380:            public static final int StaticGravity = 10;
381:
382:            /* Window gravity + bit gravity above */
383:
384:            public static final int UnmapGravity = 0;
385:
386:            /* Used in CreateWindow for backing-store hint */
387:
388:            public static final int NotUseful = 0;
389:            public static final int WhenMapped = 1;
390:            public static final int Always = 2;
391:
392:            /* Used in GetWindowAttributes reply */
393:
394:            public static final int IsUnmapped = 0;
395:            public static final int IsUnviewable = 1;
396:            public static final int IsViewable = 2;
397:
398:            /* Used in ChangeSaveSet */
399:
400:            public static final int SetModeInsert = 0;
401:            public static final int SetModeDelete = 1;
402:
403:            /* Used in ChangeCloseDownMode */
404:
405:            public static final int DestroyAll = 0;
406:            public static final int RetainPermanent = 1;
407:            public static final int RetainTemporary = 2;
408:
409:            /* Window stacking method (in configureWindow) */
410:
411:            public static final int Above = 0;
412:            public static final int Below = 1;
413:            public static final int TopIf = 2;
414:            public static final int BottomIf = 3;
415:            public static final int Opposite = 4;
416:
417:            /* Circulation direction */
418:
419:            public static final int RaiseLowest = 0;
420:            public static final int LowerHighest = 1;
421:
422:            /* Property modes */
423:
424:            public static final int PropModeReplace = 0;
425:            public static final int PropModePrepend = 1;
426:            public static final int PropModeAppend = 2;
427:
428:            /*****************************************************************
429:             * GRAPHICS DEFINITIONS
430:             *****************************************************************/
431:
432:            /* graphics functions, as in GC.alu */
433:
434:            public static final int GXclear = 0x0; /* 0 */
435:            public static final int GXand = 0x1; /* src AND dst */
436:            public static final int GXandReverse = 0x2; /* src AND NOT dst */
437:            public static final int GXcopy = 0x3; /* src */
438:            public static final int GXandInverted = 0x4; /* NOT src AND dst */
439:            public static final int GXnoop = 0x5; /* dst */
440:            public static final int GXxor = 0x6; /* src XOR dst */
441:            public static final int GXor = 0x7; /* src OR dst */
442:            public static final int GXnor = 0x8; /* NOT src AND NOT dst */
443:            public static final int GXequiv = 0x9; /* NOT src XOR dst */
444:            public static final int GXinvert = 0xa; /* NOT dst */
445:            public static final int GXorReverse = 0xb; /* src OR NOT dst */
446:            public static final int GXcopyInverted = 0xc; /* NOT src */
447:            public static final int GXorInverted = 0xd; /* NOT src OR dst */
448:            public static final int GXnand = 0xe; /* NOT src OR NOT dst */
449:            public static final int GXset = 0xf; /* 1 */
450:
451:            /* LineStyle */
452:
453:            public static final int LineSolid = 0;
454:            public static final int LineOnOffDash = 1;
455:            public static final int LineDoubleDash = 2;
456:
457:            /* capStyle */
458:
459:            public static final int CapNotLast = 0;
460:            public static final int CapButt = 1;
461:            public static final int CapRound = 2;
462:            public static final int CapProjecting = 3;
463:
464:            /* joinStyle */
465:
466:            public static final int JoinMiter = 0;
467:            public static final int JoinRound = 1;
468:            public static final int JoinBevel = 2;
469:
470:            /* fillStyle */
471:
472:            public static final int FillSolid = 0;
473:            public static final int FillTiled = 1;
474:            public static final int FillStippled = 2;
475:            public static final int FillOpaqueStippled = 3;
476:
477:            /* fillRule */
478:
479:            public static final int EvenOddRule = 0;
480:            public static final int WindingRule = 1;
481:
482:            /* subwindow mode */
483:
484:            public static final int ClipByChildren = 0;
485:            public static final int IncludeInferiors = 1;
486:
487:            /* SetClipRectangles ordering */
488:
489:            public static final int Unsorted = 0;
490:            public static final int YSorted = 1;
491:            public static final int YXSorted = 2;
492:            public static final int YXBanded = 3;
493:
494:            /* CoordinateMode for drawing routines */
495:
496:            public static final int CoordModeOrigin = 0; /* relative to the origin */
497:            public static final int CoordModePrevious = 1; /* relative to previous point */
498:
499:            /* Polygon shapes */
500:
501:            public static final int Complex = 0; /* paths may intersect */
502:            public static final int Nonconvex = 1; /* no paths intersect, but not convex */
503:            public static final int Convex = 2; /* wholly convex */
504:
505:            /* Arc modes for PolyFillArc */
506:
507:            public static final int ArcChord = 0; /* join endpoints of arc */
508:            public static final int ArcPieSlice = 1; /* join endpoints to center of arc */
509:
510:            /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
511:               GC.stateChanges */
512:
513:            public static final long GCFunction = (1L << 0);
514:            public static final long GCPlaneMask = (1L << 1);
515:            public static final long GCForeground = (1L << 2);
516:            public static final long GCBackground = (1L << 3);
517:            public static final long GCLineWidth = (1L << 4);
518:            public static final long GCLineStyle = (1L << 5);
519:            public static final long GCCapStyle = (1L << 6);
520:            public static final long GCJoinStyle = (1L << 7);
521:            public static final long GCFillStyle = (1L << 8);
522:            public static final long GCFillRule = (1L << 9);
523:            public static final long GCTile = (1L << 10);
524:            public static final long GCStipple = (1L << 11);
525:            public static final long GCTileStipXOrigin = (1L << 12);
526:            public static final long GCTileStipYOrigin = (1L << 13);
527:            public static final long GCFont = (1L << 14);
528:            public static final long GCSubwindowMode = (1L << 15);
529:            public static final long GCGraphicsExposures = (1L << 16);
530:            public static final long GCClipXOrigin = (1L << 17);
531:            public static final long GCClipYOrigin = (1L << 18);
532:            public static final long GCClipMask = (1L << 19);
533:            public static final long GCDashOffset = (1L << 20);
534:            public static final long GCDashList = (1L << 21);
535:            public static final long GCArcMode = (1L << 22);
536:
537:            public static final int GCLastBit = 22;
538:            /*****************************************************************
539:             * FONTS 
540:             *****************************************************************/
541:
542:            /* used in QueryFont -- draw direction */
543:
544:            public static final int FontLeftToRight = 0;
545:            public static final int FontRightToLeft = 1;
546:
547:            public static final int FontChange = 255;
548:
549:            /*****************************************************************
550:             *  IMAGING 
551:             *****************************************************************/
552:
553:            /* ImageFormat -- PutImage, GetImage */
554:
555:            public static final int XYBitmap = 0; /* depth 1, XYFormat */
556:            public static final int XYPixmap = 1; /* depth == drawable depth */
557:            public static final int ZPixmap = 2; /* depth == drawable depth */
558:
559:            /*****************************************************************
560:             *  COLOR MAP STUFF 
561:             *****************************************************************/
562:
563:            /* For CreateColormap */
564:
565:            public static final int AllocNone = 0; /* create map with no entries */
566:            public static final int AllocAll = 1; /* allocate entire map writeable */
567:
568:            /* Flags used in StoreNamedColor, StoreColors */
569:
570:            public static final int DoRed = (1 << 0);
571:            public static final int DoGreen = (1 << 1);
572:            public static final int DoBlue = (1 << 2);
573:
574:            /*****************************************************************
575:             * CURSOR STUFF
576:             *****************************************************************/
577:
578:            /* QueryBestSize Class */
579:
580:            public static final int CursorShape = 0; /* largest size that can be displayed */
581:            public static final int TileShape = 1; /* size tiled fastest */
582:            public static final int StippleShape = 2; /* size stippled fastest */
583:
584:            /***************************************************************** 
585:             * KEYBOARD/POINTER STUFF
586:             *****************************************************************/
587:
588:            public static final int AutoRepeatModeOff = 0;
589:            public static final int AutoRepeatModeOn = 1;
590:            public static final int AutoRepeatModeDefault = 2;
591:
592:            public static final int LedModeOff = 0;
593:            public static final int LedModeOn = 1;
594:
595:            /* masks for ChangeKeyboardControl */
596:
597:            public static final long KBKeyClickPercent = (1L << 0);
598:            public static final long KBBellPercent = (1L << 1);
599:            public static final long KBBellPitch = (1L << 2);
600:            public static final long KBBellDuration = (1L << 3);
601:            public static final long KBLed = (1L << 4);
602:            public static final long KBLedMode = (1L << 5);
603:            public static final long KBKey = (1L << 6);
604:            public static final long KBAutoRepeatMode = (1L << 7);
605:
606:            public static final int MappingSuccess = 0;
607:            public static final int MappingBusy = 1;
608:            public static final int MappingFailed = 2;
609:
610:            public static final int MappingModifier = 0;
611:            public static final int MappingKeyboard = 1;
612:            public static final int MappingPointer = 2;
613:
614:            /*****************************************************************
615:             * SCREEN SAVER STUFF 
616:             *****************************************************************/
617:
618:            public static final int DontPreferBlanking = 0;
619:            public static final int PreferBlanking = 1;
620:            public static final int DefaultBlanking = 2;
621:
622:            public static final int DisableScreenSaver = 0;
623:            public static final int DisableScreenInterval = 0;
624:
625:            public static final int DontAllowExposures = 0;
626:            public static final int AllowExposures = 1;
627:            public static final int DefaultExposures = 2;
628:
629:            /* for ForceScreenSaver */
630:
631:            public static final int ScreenSaverReset = 0;
632:            public static final int ScreenSaverActive = 1;
633:
634:            /*****************************************************************
635:             * HOSTS AND CONNECTIONS
636:             *****************************************************************/
637:
638:            /* for ChangeHosts */
639:
640:            public static final int HostInsert = 0;
641:            public static final int HostDelete = 1;
642:
643:            /* for ChangeAccessControl */
644:
645:            public static final int EnableAccess = 1;
646:            public static final int DisableAccess = 0;
647:
648:            /* Display classes  used in opening the connection 
649:             * Note that the statically allocated ones are even numbered and the
650:             * dynamically changeable ones are odd numbered */
651:
652:            public static final int StaticGray = 0;
653:            public static final int GrayScale = 1;
654:            public static final int StaticColor = 2;
655:            public static final int PseudoColor = 3;
656:            public static final int TrueColor = 4;
657:            public static final int DirectColor = 5;
658:
659:            /* Byte order  used in imageByteOrder and bitmapBitOrder */
660:
661:            public static final int LSBFirst = 0;
662:            public static final int MSBFirst = 1;
663:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.