2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
# From "X11 Nonrectangular Window Shape Extension"
|
|
|
29 |
|
|
|
30 |
+USE "x5/lib", "X11/Xlib.h" ;
|
|
|
31 |
|
|
|
32 |
+CONST int X_ShapeQueryVersion ;
|
|
|
33 |
+CONST int X_ShapeRectangles ;
|
|
|
34 |
+CONST int X_ShapeMask ;
|
|
|
35 |
+CONST int X_ShapeCombine ;
|
|
|
36 |
+CONST int X_ShapeOffset ;
|
|
|
37 |
+CONST int X_ShapeQueryExtents ;
|
|
|
38 |
+CONST int X_ShapeSelectInput ;
|
|
|
39 |
+CONST int X_ShapeInputSelected ;
|
|
|
40 |
+CONST int X_ShapeGetRectangles ;
|
|
|
41 |
|
|
|
42 |
+CONST int ShapeNotify ;
|
|
|
43 |
|
|
|
44 |
+CONST int ShapeBounding, ShapeClip ;
|
|
|
45 |
+CONST int ShapeSet, ShapeUnion, ShapeIntersect, ShapeSubtract, ShapeInvert ;
|
|
|
46 |
|
|
|
47 |
+FUNC Bool XShapeQueryExtension ( Display *, int *, int * ) ;
|
|
|
48 |
+FUNC Status XShapeQueryVersion ( Display *, int *, int * ) ;
|
|
|
49 |
+FUNC void XShapeCombineRegion ( Display *, Window, int, int, int,
|
|
|
50 |
Region, int ) ;
|
|
|
51 |
+FUNC void XShapeCombineRectangles ( Display *, Window, int, int, int,
|
|
|
52 |
XRectangle *, int, int, int ) ;
|
|
|
53 |
+FUNC void XShapeCombineMask ( Display *, Window, int, int, int,
|
|
|
54 |
Pixmap, int ) ;
|
|
|
55 |
+FUNC void XShapeCombineShape ( Display *, Window, int, int, int,
|
|
|
56 |
Window, int, int ) ;
|
|
|
57 |
+FUNC void XShapeOffsetShape ( Display *, Window, int, int, int ) ;
|
|
|
58 |
+FUNC Status XShapeQueryExtents ( Display *, Window, Bool *, int *,
|
|
|
59 |
int *, unsigned int *, unsigned int *, Bool *, int *, int *,
|
|
|
60 |
unsigned int *, unsigned int * ) ;
|
|
|
61 |
+FUNC void XShapeSelectInput ( Display *, Window, unsigned long ) ;
|
|
|
62 |
+FUNC unsigned long XShapeInputSelected ( Display *, Window ) ;
|
|
|
63 |
+FUNC XRectangle *XShapeGetRectangles ( Display *, Window, int,
|
|
|
64 |
int *, int * ) ;
|
|
|
65 |
|
|
|
66 |
+CONST unsigned long ShapeNotifyMask ;
|
|
|
67 |
|
|
|
68 |
+FIELD ( struct ) XShapeEvent := {
|
|
|
69 |
int type ;
|
|
|
70 |
unsigned long serial ;
|
|
|
71 |
Bool send_event ;
|
|
|
72 |
Display *display ;
|
|
|
73 |
Window window ;
|
|
|
74 |
int kind ;
|
|
|
75 |
int x, y ;
|
|
|
76 |
unsigned int width, height ;
|
|
|
77 |
Time time ;
|
|
|
78 |
Bool shaped ;
|
|
|
79 |
} ;
|