1XSHAPE(3)                         X FUNCTIONS                        XSHAPE(3)
2
3
4

NAME

6       XShapeQueryExtension,      XShapeQueryVersion,     XShapeCombineRegion,
7       XShapeCombineRectangles, XShapeCombineMask, XShapeCombineShape, XShape‐
8       OffsetShape,   XShapeQueryExtents,   XShapeSelectInput,  XShapeInputSe‐
9       lected, XShapeGetRectangles - X nonrectangular shape functions
10

SYNTAX

12       #include <X11/extensions/shape.h>
13
14       Bool XShapeQueryExtension (
15            Display *dpy,
16            int *event_basep,
17            int *error_basep);
18
19       Status XShapeQueryVersion (
20            Display *dpy,
21            int *major_versionp,
22            int *minor_versionp);
23
24       void XShapeCombineRegion (
25            Display *dpy,
26            Window dest,
27            int destKind,
28            int xOff,
29            int yOff,
30            struct _XRegion *r,
31            int op);
32
33       void XShapeCombineRectangles (
34            Display *dpy,
35            XID dest,
36            int destKind,
37            int xOff,
38            int yOff,
39            XRectangle *rects,
40            int n_rects,
41            int op,
42            int ordering);
43
44       void XShapeCombineMask (
45            Display *dpy,
46            XID dest,
47            int destKind,
48            int xOff,
49            int yOff,
50            Pixmap src,
51            int op);
52
53       void XShapeCombineShape (
54            Display *dpy,
55            XID dest,
56            int destKind,
57            int xOff,
58            int yOff,
59            Pixmap src,
60            int srcKind,
61            int op);
62
63       void XShapeOffsetShape (
64            Display *dpy,
65            XID dest,
66            int destKind,
67            int xOff,
68            int yOff);
69
70       Status XShapeQueryExtents (
71            Display *dpy,
72            Window window,
73            int *bShaped,
74            int *xbs,
75            int *ybs,
76            unsigned int *wbs,
77            unsigned int *hbs,
78            int *cShaped,
79            int *xcs,
80            int *ycs,
81            unsigned int *wcs,
82            unsigned int *hcs);
83
84       void XShapeSelectInput (
85            Display *dpy,
86            Window window,
87            unsigned longmask);
88
89       unsigned long XShapeInputSelected (
90            Display *dpy,
91            Window window);
92
93       XRectangle *XShapeGetRectangles (
94            Display *dpy,
95            Window window,
96            int kind,
97            int *count,
98            int *ordering);
99

STRUCTURES

101       typedef struct {
102           int type;  /* of event */
103           unsigned long serial;     /* # of last request processed by server */
104           Bool send_event;     /* true if this came from a SendEvent request */
105           Display *display;    /* Display the event was read from */
106           Window window;  /* window of event */
107           int kind;  /* ShapeBounding or ShapeClip */
108           int x, y;  /* extents of new region */
109           unsigned width, height;
110           Time time; /* server timestamp when region changed */
111           Bool shaped;    /* true if the region exists */
112       } XShapeEvent;
113

DESCRIPTION

115       The X11 Nonrectangular Window Shape Extension adds nonrectangular  win‐
116       dows to the X Window System.
117

PREDEFINED VALUES

119       Operations:
120              ShapeSet
121              ShapeUnion
122              ShapeIntersect
123              ShapeSubtract
124              ShapeInvert
125
126       Shape Kinds:
127              ShapeBounding
128              ShapeClip
129
130       Event defines:
131              ShapeNotifyMask
132              ShapeNotify
133

BUGS

135       This manual page needs a lot more work.
136

SEE ALSO

138       X11 Nonrectangular Window Shape Extension
139
140
141
142X Version 11                     libXext 1.3.3                       XSHAPE(3)
Impressum