Logo ROOT   6.12/07
Reference Guide
shape.h
Go to the documentation of this file.
1 /* $XFree86: xc/include/extensions/shape.h,v 1.3 2001/12/14 19:53:29 dawes Exp $ */
2 /************************************************************
3 
4 Copyright 1989, 1998 The Open Group
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.
11 
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in 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 /* #include <X11/extensions/shapeconst.h> */
35 #include "shapeconst.h"
36 
37 #ifndef _SHAPE_SERVER_
38 #include <X11/Xutil.h>
39 
40 typedef struct {
41  int type; /* of event */
42  unsigned long serial; /* # of last request processed by server */
43  Bool send_event; /* true if this came frome a SendEvent request */
44  Display *display; /* Display the event was read from */
45  Window window; /* window of event */
46  int kind; /* ShapeBounding or ShapeClip */
47  int x, y; /* extents of new region */
48  unsigned width, height;
49  Time time; /* server timestamp when region changed */
50  Bool shaped; /* true if the region exists */
51 } XShapeEvent;
52 
53 _XFUNCPROTOBEGIN
54 
56  Display* /* display */,
57  int* /* event_base */,
58  int* /* error_base */
59 );
60 
61 extern Status XShapeQueryVersion (
62  Display* /* display */,
63  int* /* major_version */,
64  int* /* minor_version */
65 );
66 
67 extern void XShapeCombineRegion (
68  Display* /* display */,
69  Window /* dest */,
70  int /* dest_kind */,
71  int /* x_off */,
72  int /* y_off */,
73  Region /* region */,
74  int /* op */
75 );
76 
77 extern void XShapeCombineRectangles (
78  Display* /* display */,
79  Window /* dest */,
80  int /* dest_kind */,
81  int /* x_off */,
82  int /* y_off */,
83  XRectangle* /* rectangles */,
84  int /* n_rects */,
85  int /* op */,
86  int /* ordering */
87 );
88 
89 extern void XShapeCombineMask (
90  Display* /* display */,
91  Window /* dest */,
92  int /* dest_kind */,
93  int /* x_off */,
94  int /* y_off */,
95  Pixmap /* src */,
96  int /* op */
97 );
98 
99 extern void XShapeCombineShape (
100  Display* /* display */,
101  Window /* dest */,
102  int /* dest_kind */,
103  int /* x_off */,
104  int /* y_off */,
105  Window /* src */,
106  int /* src_kind */,
107  int /* op */
108 );
109 
110 extern void XShapeOffsetShape (
111  Display* /* display */,
112  Window /* dest */,
113  int /* dest_kind */,
114  int /* x_off */,
115  int /* y_off */
116 );
117 
118 extern Status XShapeQueryExtents (
119  Display* /* display */,
120  Window /* window */,
121  Bool* /* bounding_shaped */,
122  int* /* x_bounding */,
123  int* /* y_bounding */,
124  unsigned int* /* w_bounding */,
125  unsigned int* /* h_bounding */,
126  Bool* /* clip_shaped */,
127  int* /* x_clip */,
128  int* /* y_clip */,
129  unsigned int* /* w_clip */,
130  unsigned int* /* h_clip */
131 );
132 
133 extern void XShapeSelectInput (
134  Display* /* display */,
135  Window /* window */,
136  unsigned long /* mask */
137 );
138 
139 extern unsigned long XShapeInputSelected (
140  Display* /* display */,
141  Window /* window */
142 );
143 
144 extern XRectangle *XShapeGetRectangles (
145  Display* /* display */,
146  Window /* window */,
147  int /* kind */,
148  int* /* count */,
149  int* /* ordering */
150 );
151 
152 _XFUNCPROTOEND
153 
154 #endif /* !_SHAPE_SERVER_ */
155 
156 #endif /* _SHAPE_H_ */
157 
void XShapeOffsetShape(Display *, Window, int, int, int)
XRectangle * XShapeGetRectangles(Display *, Window, int, int *, int *)
_XFUNCPROTOBEGIN Bool XShapeQueryExtension(Display *, int *, int *)
Window window
Definition: shape.h:45
Status XShapeQueryExtents(Display *, Window, Bool *, int *, int *, unsigned int *, unsigned int *, Bool *, int *, int *, unsigned int *, unsigned int *)
unsigned long serial
Definition: shape.h:42
int type
Definition: shape.h:41
Double_t x[n]
Definition: legend1.C:17
Time time
Definition: shape.h:49
void XShapeSelectInput(Display *, Window, unsigned long)
void XShapeCombineMask(Display *, Window, int, int, int, Pixmap, int)
void XShapeCombineRegion(Display *, Window, int, int, int, Region, int)
Status XShapeQueryVersion(Display *, int *, int *)
void XShapeCombineRectangles(Display *, Window, int, int, int, XRectangle *, int, int, int)
Bool send_event
Definition: shape.h:43
XID Window
Definition: TGX11.h:39
const char * Bool
Display * display
Definition: shape.h:44
unsigned width
Definition: shape.h:48
Bool shaped
Definition: shape.h:50
unsigned long XShapeInputSelected(Display *, Window)
void XShapeCombineShape(Display *, Window, int, int, int, Window, int, int)
int kind
Definition: shape.h:46
int y
Definition: shape.h:47