Home | History | Annotate | Download | only in extensions
      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     Display*			/* dpy */,
     63     int*			/* major_version */,
     64     int*			/* minor_version */
     65 );
     66 
     67 Status XagCreateEmbeddedApplicationGroup(
     68     Display*			/* dpy */,
     69     VisualID			/* root_visual */,
     70     Colormap			/* default_colormap */,
     71     unsigned long		/* black_pixel */,
     72     unsigned long		/* white_pixel */,
     73     XAppGroup*			/* app_group_return */
     74 );
     75 
     76 Status XagCreateNonembeddedApplicationGroup(
     77     Display*			/* dpy */,
     78     XAppGroup*			/* app_group_return */
     79 );
     80 
     81 Status XagDestroyApplicationGroup(
     82     Display*			/* dpy */,
     83     XAppGroup			/* app_group */
     84 );
     85 
     86 Status XagGetApplicationGroupAttributes(
     87     Display*			/* dpy */,
     88     XAppGroup			/* app_group */,
     89     ...
     90 );
     91 
     92 Status XagQueryApplicationGroup(
     93     Display*			/* dpy */,
     94     XID				/* resource_base */,
     95     XAppGroup*			/* app_group_ret */
     96 );
     97 
     98 Status XagCreateAssociation(
     99     Display*			/* dpy */,
    100     Window*			/* window_ret */,
    101     void*			/* system_window */
    102 );
    103 
    104 Status XagDestroyAssociation(
    105     Display*			/* dpy */,
    106     Window			/* window */
    107 );
    108 
    109 _XFUNCPROTOEND
    110 
    111 #endif /* _XAG_SERVER_ */
    112 
    113 #endif /* _XAG_H_ */
    114 
    115