| 1 | /* |
| 2 | Copyright 1996, 1998 The Open Group |
| 3 | |
| 4 | Permission to use, copy, modify, distribute, and sell this software and its |
| 5 | documentation for any purpose is hereby granted without fee, provided that |
| 6 | the above copyright notice appear in all copies and that both that |
| 7 | copyright notice and this permission notice appear in supporting |
| 8 | documentation. |
| 9 | |
| 10 | The above copyright notice and this permission notice shall be included |
| 11 | in all copies or substantial portions of the Software. |
| 12 | |
| 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 19 | OTHER DEALINGS IN THE SOFTWARE. |
| 20 | |
| 21 | Except as contained in this notice, the name of The Open Group shall |
| 22 | not be used in advertising or otherwise to promote the sale, use or |
| 23 | other dealings in this Software without prior written authorization |
| 24 | from The Open Group. |
| 25 | */ |
| 26 | |
| 27 | #ifndef _XAG_H_ |
| 28 | #define _XAG_H_ |
| 29 | |
| 30 | #include <X11/extensions/ag.h> |
| 31 | #include <X11/Xfuncproto.h> |
| 32 | |
| 33 | #include <stdarg.h> |
| 34 | |
| 35 | _XFUNCPROTOBEGIN |
| 36 | |
| 37 | typedef XID XAppGroup; |
| 38 | |
| 39 | Bool XagQueryVersion( |
| 40 | Display* /* dpy */, |
| 41 | int* /* major_version */, |
| 42 | int* /* minor_version */ |
| 43 | ); |
| 44 | |
| 45 | Status XagCreateEmbeddedApplicationGroup( |
| 46 | Display* /* dpy */, |
| 47 | VisualID /* root_visual */, |
| 48 | Colormap /* default_colormap */, |
| 49 | unsigned long /* black_pixel */, |
| 50 | unsigned long /* white_pixel */, |
| 51 | XAppGroup* /* app_group_return */ |
| 52 | ); |
| 53 | |
| 54 | Status XagCreateNonembeddedApplicationGroup( |
| 55 | Display* /* dpy */, |
| 56 | XAppGroup* /* app_group_return */ |
| 57 | ); |
| 58 | |
| 59 | Status XagDestroyApplicationGroup( |
| 60 | Display* /* dpy */, |
| 61 | XAppGroup /* app_group */ |
| 62 | ); |
| 63 | |
| 64 | Status XagGetApplicationGroupAttributes( |
| 65 | Display* /* dpy */, |
| 66 | XAppGroup /* app_group */, |
| 67 | ... |
| 68 | ); |
| 69 | |
| 70 | Status XagQueryApplicationGroup( |
| 71 | Display* /* dpy */, |
| 72 | XID /* resource_base */, |
| 73 | XAppGroup* /* app_group_ret */ |
| 74 | ); |
| 75 | |
| 76 | Status XagCreateAssociation( |
| 77 | Display* /* dpy */, |
| 78 | Window* /* window_ret */, |
| 79 | void* /* system_window */ |
| 80 | ); |
| 81 | |
| 82 | Status XagDestroyAssociation( |
| 83 | Display* /* dpy */, |
| 84 | Window /* window */ |
| 85 | ); |
| 86 | |
| 87 | _XFUNCPROTOEND |
| 88 | |
| 89 | #endif /* _XAG_H_ */ |
| 90 |