1 | /*
|
---|
2 | * $XFree86: xc/include/extensions/xfixeswire.h,v 1.1 2002/11/30 06:21:43 keithp Exp $
|
---|
3 | *
|
---|
4 | * Copyright © 2006 Sun Microsystems
|
---|
5 | *
|
---|
6 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
7 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
8 | * the above copyright notice appear in all copies and that both that
|
---|
9 | * copyright notice and this permission notice appear in supporting
|
---|
10 | * documentation, and that the name of Sun Microsystems not be used in
|
---|
11 | * advertising or publicity pertaining to distribution of the software without
|
---|
12 | * specific, written prior permission. Sun Microsystems makes no
|
---|
13 | * representations about the suitability of this software for any purpose. It
|
---|
14 | * is provided "as is" without express or implied warranty.
|
---|
15 | *
|
---|
16 | * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
17 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
18 | * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
19 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
20 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
21 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
22 | * PERFORMANCE OF THIS SOFTWARE.
|
---|
23 | *
|
---|
24 | * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
|
---|
25 | *
|
---|
26 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
27 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
28 | * the above copyright notice appear in all copies and that both that
|
---|
29 | * copyright notice and this permission notice appear in supporting
|
---|
30 | * documentation, and that the name of Keith Packard not be used in
|
---|
31 | * advertising or publicity pertaining to distribution of the software without
|
---|
32 | * specific, written prior permission. Keith Packard makes no
|
---|
33 | * representations about the suitability of this software for any purpose. It
|
---|
34 | * is provided "as is" without express or implied warranty.
|
---|
35 | *
|
---|
36 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
37 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
38 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
39 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
40 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
41 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
42 | * PERFORMANCE OF THIS SOFTWARE.
|
---|
43 | */
|
---|
44 |
|
---|
45 |
|
---|
46 | #ifndef _XFIXESWIRE_H_
|
---|
47 | #define _XFIXESWIRE_H_
|
---|
48 |
|
---|
49 | #define XFIXES_NAME "XFIXES"
|
---|
50 | #define XFIXES_MAJOR 4
|
---|
51 | #define XFIXES_MINOR 0
|
---|
52 |
|
---|
53 | /*************** Version 1 ******************/
|
---|
54 | #define X_XFixesQueryVersion 0
|
---|
55 | #define X_XFixesChangeSaveSet 1
|
---|
56 | #define X_XFixesSelectSelectionInput 2
|
---|
57 | #define X_XFixesSelectCursorInput 3
|
---|
58 | #define X_XFixesGetCursorImage 4
|
---|
59 | /*************** Version 2 ******************/
|
---|
60 | #define X_XFixesCreateRegion 5
|
---|
61 | #define X_XFixesCreateRegionFromBitmap 6
|
---|
62 | #define X_XFixesCreateRegionFromWindow 7
|
---|
63 | #define X_XFixesCreateRegionFromGC 8
|
---|
64 | #define X_XFixesCreateRegionFromPicture 9
|
---|
65 | #define X_XFixesDestroyRegion 10
|
---|
66 | #define X_XFixesSetRegion 11
|
---|
67 | #define X_XFixesCopyRegion 12
|
---|
68 | #define X_XFixesUnionRegion 13
|
---|
69 | #define X_XFixesIntersectRegion 14
|
---|
70 | #define X_XFixesSubtractRegion 15
|
---|
71 | #define X_XFixesInvertRegion 16
|
---|
72 | #define X_XFixesTranslateRegion 17
|
---|
73 | #define X_XFixesRegionExtents 18
|
---|
74 | #define X_XFixesFetchRegion 19
|
---|
75 | #define X_XFixesSetGCClipRegion 20
|
---|
76 | #define X_XFixesSetWindowShapeRegion 21
|
---|
77 | #define X_XFixesSetPictureClipRegion 22
|
---|
78 | #define X_XFixesSetCursorName 23
|
---|
79 | #define X_XFixesGetCursorName 24
|
---|
80 | #define X_XFixesGetCursorImageAndName 25
|
---|
81 | #define X_XFixesChangeCursor 26
|
---|
82 | #define X_XFixesChangeCursorByName 27
|
---|
83 | /*************** Version 3 ******************/
|
---|
84 | #define X_XFixesExpandRegion 28
|
---|
85 | /*************** Version 4 ******************/
|
---|
86 | #define X_XFixesHideCursor 29
|
---|
87 | #define X_XFixesShowCursor 30
|
---|
88 |
|
---|
89 | #define XFixesNumberRequests (X_XFixesShowCursor+1)
|
---|
90 |
|
---|
91 | /* Selection events share one event number */
|
---|
92 | #define XFixesSelectionNotify 0
|
---|
93 |
|
---|
94 | /* Within the selection, the 'subtype' field distinguishes */
|
---|
95 | #define XFixesSetSelectionOwnerNotify 0
|
---|
96 | #define XFixesSelectionWindowDestroyNotify 1
|
---|
97 | #define XFixesSelectionClientCloseNotify 2
|
---|
98 |
|
---|
99 | #define XFixesSetSelectionOwnerNotifyMask (1L << 0)
|
---|
100 | #define XFixesSelectionWindowDestroyNotifyMask (1L << 1)
|
---|
101 | #define XFixesSelectionClientCloseNotifyMask (1L << 2)
|
---|
102 |
|
---|
103 | /* There's only one cursor event so far */
|
---|
104 | #define XFixesCursorNotify 1
|
---|
105 |
|
---|
106 | #define XFixesDisplayCursorNotify 0
|
---|
107 |
|
---|
108 | #define XFixesDisplayCursorNotifyMask (1L << 0)
|
---|
109 |
|
---|
110 | #define XFixesNumberEvents (2)
|
---|
111 |
|
---|
112 | /* errors */
|
---|
113 | #define BadRegion 0
|
---|
114 | #define XFixesNumberErrors (BadRegion+1)
|
---|
115 |
|
---|
116 | #define SaveSetNearest 0
|
---|
117 | #define SaveSetRoot 1
|
---|
118 |
|
---|
119 | #define SaveSetMap 0
|
---|
120 | #define SaveSetUnmap 1
|
---|
121 |
|
---|
122 | /*************** Version 2 ******************/
|
---|
123 |
|
---|
124 | #define WindowRegionBounding 0
|
---|
125 | #define WindowRegionClip 1
|
---|
126 |
|
---|
127 | #endif /* _XFIXESWIRE_H_ */
|
---|