2 Copyright (c) 1996 X Consortium
4 Permission is hereby granted, free of charge, to any person obtaining
5 a copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and sell copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions:
12 The above copyright notice and this permission notice shall be included
13 in all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the name of the X Consortium shall
24 not be used in advertising or otherwise to promote the sale, use or
25 other dealings in this Software without prior written authorization
26 from the X Consortium.
28 /* $XConsortium: Xagstr.h /main/3 1996/11/12 12:19:03 swick $ */
30 #ifndef _XAGSTR_H_ /* { */
35 #define XAppGroup CARD32
37 #define XAGNAME "XC-APPGROUP"
39 #define XAG_MAJOR_VERSION 1 /* current version numbers */
40 #define XAG_MINOR_VERSION 0
42 #define XagWindowTypeX11 0
43 #define XagWindowTypeMacintosh 1
44 #define XagWindowTypeWin32 2
45 #define XagWindowTypeWin16 3
47 typedef struct _XagQueryVersion {
48 CARD8 reqType; /* always XagReqCode */
49 CARD8 xagReqType; /* always X_XagQueryVersion */
51 CARD16 client_major_version B16;
52 CARD16 client_minor_version B16;
53 } xXagQueryVersionReq;
54 #define sz_xXagQueryVersionReq 8
57 BYTE type; /* X_Reply */
59 CARD16 sequence_number B16;
61 CARD16 server_major_version B16;
62 CARD16 server_minor_version B16;
68 } xXagQueryVersionReply;
69 #define sz_xXagQueryVersionReply 32
71 /* Set AppGroup Attributes masks */
72 #define XagSingleScreenMask 1 << XagNsingleScreen
73 #define XagDefaultRootMask 1 << XagNdefaultRoot
74 #define XagRootVisualMask 1 << XagNrootVisual
75 #define XagDefaultColormapMask 1 << XagNdefaultColormap
76 #define XagBlackPixelMask 1 << XagNblackPixel
77 #define XagWhitePixelMask 1 << XagNwhitePixel
78 #define XagAppGroupLeaderMask 1 << XagNappGroupLeader
80 typedef struct _XagCreate {
81 CARD8 reqType; /* always XagReqCode */
82 CARD8 xagReqType; /* always X_XagCreate */
84 XAppGroup app_group B32;
85 CARD32 attrib_mask B32; /* LISTofVALUE follows */
87 #define sz_xXagCreateReq 12
89 typedef struct _XagDestroy {
90 CARD8 reqType; /* always XagReqCode */
91 CARD8 xagReqType; /* always X_XagDestroy */
93 XAppGroup app_group B32;
95 #define sz_xXagDestroyReq 8
97 typedef struct _XagGetAttr {
98 CARD8 reqType; /* always XagReqCode */
99 CARD8 xagReqType; /* always X_XagGetAttr */
101 XAppGroup app_group B32;
103 #define sz_xXagGetAttrReq 8
106 BYTE type; /* X_Reply */
108 CARD16 sequence_number B16;
110 Window default_root B32;
111 VisualID root_visual B32;
112 Colormap default_colormap B32;
113 CARD32 black_pixel B32;
114 CARD32 white_pixel B32;
116 BOOL app_group_leader;
119 #define sz_xXagGetAttrReply 32
121 typedef struct _XagQuery {
122 CARD8 reqType; /* always XagReqCode */
123 CARD8 xagReqType; /* always X_XagQuery */
127 #define sz_xXagQueryReq 8
130 BYTE type; /* X_Reply */
132 CARD16 sequence_number B16;
134 XAppGroup app_group B32;
141 #define sz_xXagQueryReply 32
143 typedef struct _XagCreateAssoc {
144 CARD8 reqType; /* always XagReqCode */
145 CARD8 xagReqType; /* always X_XagCreateAssoc */
148 CARD16 window_type B16;
149 CARD16 system_window_len B16; /* LISTofCARD8 follows */
150 } xXagCreateAssocReq;
151 #define sz_xXagCreateAssocReq 12
153 typedef struct _XagDestroyAssoc {
154 CARD8 reqType; /* always XagReqCode */
155 CARD8 xagReqType; /* always X_XagDestroyAssoc */
158 } xXagDestroyAssocReq;
159 #define sz_xXagDestroyAssocReq 8
163 #endif /* } _XAGSTR_H_ */