1 | /*
|
---|
2 | * $XFree86: xc/include/extensions/xfixeswire.h,v 1.1 2002/11/30 06:21:43 keithp Exp $
|
---|
3 | *
|
---|
4 | * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
|
---|
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 Keith Packard not be used in
|
---|
11 | * advertising or publicity pertaining to distribution of the software without
|
---|
12 | * specific, written prior permission. Keith Packard 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 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
17 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
18 | * EVENT SHALL KEITH PACKARD 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 |
|
---|
25 |
|
---|
26 | #ifndef _XFIXESWIRE_H_
|
---|
27 | #define _XFIXESWIRE_H_
|
---|
28 |
|
---|
29 | #define XFIXES_NAME "XFIXES"
|
---|
30 | #define XFIXES_MAJOR 3
|
---|
31 | #define XFIXES_MINOR 0
|
---|
32 |
|
---|
33 | /*************** Version 1 ******************/
|
---|
34 | #define X_XFixesQueryVersion 0
|
---|
35 | #define X_XFixesChangeSaveSet 1
|
---|
36 | #define X_XFixesSelectSelectionInput 2
|
---|
37 | #define X_XFixesSelectCursorInput 3
|
---|
38 | #define X_XFixesGetCursorImage 4
|
---|
39 | /*************** Version 2 ******************/
|
---|
40 | #define X_XFixesCreateRegion 5
|
---|
41 | #define X_XFixesCreateRegionFromBitmap 6
|
---|
42 | #define X_XFixesCreateRegionFromWindow 7
|
---|
43 | #define X_XFixesCreateRegionFromGC 8
|
---|
44 | #define X_XFixesCreateRegionFromPicture 9
|
---|
45 | #define X_XFixesDestroyRegion 10
|
---|
46 | #define X_XFixesSetRegion 11
|
---|
47 | #define X_XFixesCopyRegion 12
|
---|
48 | #define X_XFixesUnionRegion 13
|
---|
49 | #define X_XFixesIntersectRegion 14
|
---|
50 | #define X_XFixesSubtractRegion 15
|
---|
51 | #define X_XFixesInvertRegion 16
|
---|
52 | #define X_XFixesTranslateRegion 17
|
---|
53 | #define X_XFixesRegionExtents 18
|
---|
54 | #define X_XFixesFetchRegion 19
|
---|
55 | #define X_XFixesSetGCClipRegion 20
|
---|
56 | #define X_XFixesSetWindowShapeRegion 21
|
---|
57 | #define X_XFixesSetPictureClipRegion 22
|
---|
58 | #define X_XFixesSetCursorName 23
|
---|
59 | #define X_XFixesGetCursorName 24
|
---|
60 | #define X_XFixesGetCursorImageAndName 25
|
---|
61 | #define X_XFixesChangeCursor 26
|
---|
62 | #define X_XFixesChangeCursorByName 27
|
---|
63 | /*************** Version 3 ******************/
|
---|
64 | #define X_XFixesExpandRegion 28
|
---|
65 |
|
---|
66 | #define XFixesNumberRequests 29
|
---|
67 |
|
---|
68 | /* Selection events share one event number */
|
---|
69 | #define XFixesSelectionNotify 0
|
---|
70 |
|
---|
71 | /* Within the selection, the 'subtype' field distinguishes */
|
---|
72 | #define XFixesSetSelectionOwnerNotify 0
|
---|
73 | #define XFixesSelectionWindowDestroyNotify 1
|
---|
74 | #define XFixesSelectionClientCloseNotify 2
|
---|
75 |
|
---|
76 | #define XFixesSetSelectionOwnerNotifyMask (1L << 0)
|
---|
77 | #define XFixesSelectionWindowDestroyNotifyMask (1L << 1)
|
---|
78 | #define XFixesSelectionClientCloseNotifyMask (1L << 2)
|
---|
79 |
|
---|
80 | /* There's only one cursor event so far */
|
---|
81 | #define XFixesCursorNotify 1
|
---|
82 |
|
---|
83 | #define XFixesDisplayCursorNotify 0
|
---|
84 |
|
---|
85 | #define XFixesDisplayCursorNotifyMask (1L << 0)
|
---|
86 |
|
---|
87 | #define XFixesNumberEvents (2)
|
---|
88 |
|
---|
89 | /* errors */
|
---|
90 | #define BadRegion 0
|
---|
91 | #define XFixesNumberErrors (BadRegion+1)
|
---|
92 |
|
---|
93 | #define SaveSetNearest 0
|
---|
94 | #define SaveSetRoot 1
|
---|
95 |
|
---|
96 | #define SaveSetMap 0
|
---|
97 | #define SaveSetUnmap 1
|
---|
98 |
|
---|
99 | /*************** Version 2 ******************/
|
---|
100 |
|
---|
101 | #define WindowRegionBounding 0
|
---|
102 | #define WindowRegionClip 1
|
---|
103 |
|
---|
104 | #endif /* _XFIXESWIRE_H_ */
|
---|