1 | /* $XFree86: xc/include/extensions/Xag.h,v 1.5 2001/12/17 20:52:24 dawes Exp $ */
|
---|
2 | /*
|
---|
3 | Copyright 1996, 1998 The Open Group
|
---|
4 |
|
---|
5 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
6 | documentation for any purpose is hereby granted without fee, provided that
|
---|
7 | the above copyright notice appear in all copies and that both that
|
---|
8 | copyright notice and this permission notice appear in supporting
|
---|
9 | documentation.
|
---|
10 |
|
---|
11 | The above copyright notice and this permission notice shall be included
|
---|
12 | in all copies or substantial portions of the Software.
|
---|
13 |
|
---|
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
---|
17 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
18 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
19 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
20 | OTHER DEALINGS IN THE SOFTWARE.
|
---|
21 |
|
---|
22 | Except as contained in this notice, the name of The Open Group shall
|
---|
23 | not be used in advertising or otherwise to promote the sale, use or
|
---|
24 | other dealings in this Software without prior written authorization
|
---|
25 | from The Open Group.
|
---|
26 | */
|
---|
27 | /* $Xorg: Xag.h,v 1.5 2001/02/09 02:03:24 xorgcvs Exp $ */
|
---|
28 |
|
---|
29 | #ifndef _XAG_H_
|
---|
30 | #define _XAG_H_
|
---|
31 |
|
---|
32 | #include <X11/Xfuncproto.h>
|
---|
33 |
|
---|
34 | #define X_XagQueryVersion 0
|
---|
35 | #define X_XagCreate 1
|
---|
36 | #define X_XagDestroy 2
|
---|
37 | #define X_XagGetAttr 3
|
---|
38 | #define X_XagQuery 4
|
---|
39 | #define X_XagCreateAssoc 5
|
---|
40 | #define X_XagDestroyAssoc 6
|
---|
41 |
|
---|
42 | #define XagBadAppGroup 0
|
---|
43 | #define XagNumberErrors (XagBadAppGroup + 1)
|
---|
44 |
|
---|
45 | #define XagNsingleScreen 7
|
---|
46 | #define XagNdefaultRoot 1
|
---|
47 | #define XagNrootVisual 2
|
---|
48 | #define XagNdefaultColormap 3
|
---|
49 | #define XagNblackPixel 4
|
---|
50 | #define XagNwhitePixel 5
|
---|
51 | #define XagNappGroupLeader 6
|
---|
52 |
|
---|
53 | #ifndef _XAG_SERVER_
|
---|
54 |
|
---|
55 | #include <stdarg.h>
|
---|
56 |
|
---|
57 | _XFUNCPROTOBEGIN
|
---|
58 |
|
---|
59 | typedef XID XAppGroup;
|
---|
60 |
|
---|
61 | Bool XagQueryVersion(
|
---|
62 | #if NeedFunctionPrototypes
|
---|
63 | Display* /* dpy */,
|
---|
64 | int* /* major_version */,
|
---|
65 | int* /* minor_version */
|
---|
66 | #endif
|
---|
67 | );
|
---|
68 |
|
---|
69 | Status XagCreateEmbeddedApplicationGroup(
|
---|
70 | #if NeedFunctionPrototypes
|
---|
71 | Display* /* dpy */,
|
---|
72 | VisualID /* root_visual */,
|
---|
73 | Colormap /* default_colormap */,
|
---|
74 | unsigned long /* black_pixel */,
|
---|
75 | unsigned long /* white_pixel */,
|
---|
76 | XAppGroup* /* app_group_return */
|
---|
77 | #endif
|
---|
78 | );
|
---|
79 |
|
---|
80 | Status XagCreateNonembeddedApplicationGroup(
|
---|
81 | #if NeedFunctionPrototypes
|
---|
82 | Display* /* dpy */,
|
---|
83 | XAppGroup* /* app_group_return */
|
---|
84 | #endif
|
---|
85 | );
|
---|
86 |
|
---|
87 | Status XagDestroyApplicationGroup(
|
---|
88 | #if NeedFunctionPrototypes
|
---|
89 | Display* /* dpy */,
|
---|
90 | XAppGroup /* app_group */
|
---|
91 | #endif
|
---|
92 | );
|
---|
93 |
|
---|
94 | Status XagGetApplicationGroupAttributes(
|
---|
95 | #if NeedVarargsPrototypes
|
---|
96 | Display* /* dpy */,
|
---|
97 | XAppGroup /* app_group */,
|
---|
98 | ...
|
---|
99 | #endif
|
---|
100 | );
|
---|
101 |
|
---|
102 | Status XagQueryApplicationGroup(
|
---|
103 | #if NeedFunctionPrototypes
|
---|
104 | Display* /* dpy */,
|
---|
105 | XID /* resource_base */,
|
---|
106 | XAppGroup* /* app_group_ret */
|
---|
107 | #endif
|
---|
108 | );
|
---|
109 |
|
---|
110 | Status XagCreateAssociation(
|
---|
111 | #if NeedFunctionPrototypes
|
---|
112 | Display* /* dpy */,
|
---|
113 | Window* /* window_ret */,
|
---|
114 | void* /* system_window */
|
---|
115 | #endif
|
---|
116 | );
|
---|
117 |
|
---|
118 | Status XagDestroyAssociation(
|
---|
119 | #if NeedFunctionPrototypes
|
---|
120 | Display* /* dpy */,
|
---|
121 | Window /* window */
|
---|
122 | #endif
|
---|
123 | );
|
---|
124 |
|
---|
125 | _XFUNCPROTOEND
|
---|
126 |
|
---|
127 | #endif /* _XAG_SERVER_ */
|
---|
128 |
|
---|
129 | #endif /* _XAG_H_ */
|
---|
130 |
|
---|