Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
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/* #include <X11/extensions/shapeconst.h> */
35#include "shapeconst.h"
36
37#ifndef _SHAPE_SERVER_
38#include <X11/Xutil.h>
39
40typedef 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 */
52
53_XFUNCPROTOBEGIN
54
56 Display* /* display */,
57 int* /* event_base */,
58 int* /* error_base */
59);
60
61extern Status XShapeQueryVersion (
62 Display* /* display */,
63 int* /* major_version */,
64 int* /* minor_version */
65);
66
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
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
89extern 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
99extern 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
110extern void XShapeOffsetShape (
111 Display* /* display */,
112 Window /* dest */,
113 int /* dest_kind */,
114 int /* x_off */,
115 int /* y_off */
116);
117
118extern 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
133extern void XShapeSelectInput (
134 Display* /* display */,
135 Window /* window */,
136 unsigned long /* mask */
137);
138
139extern unsigned long XShapeInputSelected (
140 Display* /* display */,
141 Window /* window */
142);
143
144extern 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
include TDocParser_001 C image html pict1_TDocParser_001 png width
XID Window
Definition TGX11.h:39
Double_t y[n]
Definition legend1.C:17
void XShapeCombineShape(Display *, Window, int, int, int, Window, int, int)
XRectangle * XShapeGetRectangles(Display *, Window, int, int *, int *)
unsigned long XShapeInputSelected(Display *, Window)
void XShapeSelectInput(Display *, Window, unsigned long)
_XFUNCPROTOBEGIN Bool XShapeQueryExtension(Display *, int *, int *)
Status XShapeQueryVersion(Display *, int *, int *)
void XShapeOffsetShape(Display *, Window, int, int, int)
Status XShapeQueryExtents(Display *, Window, Bool *, int *, int *, unsigned int *, unsigned int *, Bool *, int *, int *, unsigned int *, unsigned int *)
void XShapeCombineMask(Display *, Window, int, int, int, Pixmap, int)
void XShapeCombineRectangles(Display *, Window, int, int, int, XRectangle *, int, int, int)
void XShapeCombineRegion(Display *, Window, int, int, int, Region, int)
Time time
Definition shape.h:49
Bool shaped
Definition shape.h:50
Window window
Definition shape.h:45
Display * display
Definition shape.h:44
int type
Definition shape.h:41
unsigned long serial
Definition shape.h:42
int x
Definition shape.h:47
Bool send_event
Definition shape.h:43
unsigned height
Definition shape.h:48
int kind
Definition shape.h:46