VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.3/include/extensions/shape.h@ 25452

Last change on this file since 25452 was 25452, checked in by vboxsync, 15 years ago

Additions/x11: added include files needed for building vboxmouse with XFree86 4.3 and equivalent X.Org versions

  • Property svn:eol-style set to native
File size: 5.0 KB
Line 
1/* $XFree86: xc/include/extensions/shape.h,v 1.3 2001/12/14 19:53:29 dawes Exp $ */
2/************************************************************
3
4Copyright 1989, 1998 The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of The Open Group shall not be
23used in advertising or otherwise to promote the sale, use or other dealings
24in this Software without prior written authorization from The Open Group.
25
26********************************************************/
27
28/* $Xorg: shape.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
29
30#ifndef _SHAPE_H_
31#define _SHAPE_H_
32
33#include <X11/Xfuncproto.h>
34
35#define X_ShapeQueryVersion 0
36#define X_ShapeRectangles 1
37#define X_ShapeMask 2
38#define X_ShapeCombine 3
39#define X_ShapeOffset 4
40#define X_ShapeQueryExtents 5
41#define X_ShapeSelectInput 6
42#define X_ShapeInputSelected 7
43#define X_ShapeGetRectangles 8
44
45#define ShapeSet 0
46#define ShapeUnion 1
47#define ShapeIntersect 2
48#define ShapeSubtract 3
49#define ShapeInvert 4
50
51#define ShapeBounding 0
52#define ShapeClip 1
53
54#define ShapeNotifyMask (1L << 0)
55#define ShapeNotify 0
56
57#define ShapeNumberEvents (ShapeNotify + 1)
58
59#ifndef _SHAPE_SERVER_
60
61#include <X11/Xutil.h>
62
63typedef struct {
64 int type; /* of event */
65 unsigned long serial; /* # of last request processed by server */
66 Bool send_event; /* true if this came frome a SendEvent request */
67 Display *display; /* Display the event was read from */
68 Window window; /* window of event */
69 int kind; /* ShapeBounding or ShapeClip */
70 int x, y; /* extents of new region */
71 unsigned width, height;
72 Time time; /* server timestamp when region changed */
73 Bool shaped; /* true if the region exists */
74} XShapeEvent;
75
76_XFUNCPROTOBEGIN
77
78extern Bool XShapeQueryExtension (
79#if NeedFunctionPrototypes
80 Display* /* display */,
81 int* /* event_base */,
82 int* /* error_base */
83#endif
84);
85
86extern Status XShapeQueryVersion (
87#if NeedFunctionPrototypes
88 Display* /* display */,
89 int* /* major_version */,
90 int* /* minor_version */
91#endif
92);
93
94extern void XShapeCombineRegion (
95#if NeedFunctionPrototypes
96 Display* /* display */,
97 Window /* dest */,
98 int /* dest_kind */,
99 int /* x_off */,
100 int /* y_off */,
101 Region /* region */,
102 int /* op */
103#endif
104);
105
106extern void XShapeCombineRectangles (
107#if NeedFunctionPrototypes
108 Display* /* display */,
109 Window /* dest */,
110 int /* dest_kind */,
111 int /* x_off */,
112 int /* y_off */,
113 XRectangle* /* rectangles */,
114 int /* n_rects */,
115 int /* op */,
116 int /* ordering */
117#endif
118);
119
120extern void XShapeCombineMask (
121#if NeedFunctionPrototypes
122 Display* /* display */,
123 Window /* dest */,
124 int /* dest_kind */,
125 int /* x_off */,
126 int /* y_off */,
127 Pixmap /* src */,
128 int /* op */
129#endif
130);
131
132extern void XShapeCombineShape (
133#if NeedFunctionPrototypes
134 Display* /* display */,
135 Window /* dest */,
136 int /* dest_kind */,
137 int /* x_off */,
138 int /* y_off */,
139 Window /* src */,
140 int /* src_kind */,
141 int /* op */
142#endif
143);
144
145extern void XShapeOffsetShape (
146#if NeedFunctionPrototypes
147 Display* /* display */,
148 Window /* dest */,
149 int /* dest_kind */,
150 int /* x_off */,
151 int /* y_off */
152#endif
153);
154
155extern Status XShapeQueryExtents (
156#if NeedFunctionPrototypes
157 Display* /* display */,
158 Window /* window */,
159 Bool* /* bounding_shaped */,
160 int* /* x_bounding */,
161 int* /* y_bounding */,
162 unsigned int* /* w_bounding */,
163 unsigned int* /* h_bounding */,
164 Bool* /* clip_shaped */,
165 int* /* x_clip */,
166 int* /* y_clip */,
167 unsigned int* /* w_clip */,
168 unsigned int* /* h_clip */
169#endif
170);
171
172extern void XShapeSelectInput (
173#if NeedFunctionPrototypes
174 Display* /* display */,
175 Window /* window */,
176 unsigned long /* mask */
177#endif
178);
179
180extern unsigned long XShapeInputSelected (
181#if NeedFunctionPrototypes
182 Display* /* display */,
183 Window /* window */
184#endif
185);
186
187extern XRectangle *XShapeGetRectangles (
188#if NeedFunctionPrototypes
189 Display* /* display */,
190 Window /* window */,
191 int /* kind */,
192 int* /* count */,
193 int* /* ordering */
194#endif
195);
196
197_XFUNCPROTOEND
198
199#endif /* _SHAPE_SERVER_ */
200
201#endif /* _SHAPE_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette