Home | History | Annotate | Line # | Download | only in src
      1 
      2 /***********************************************************
      3 
      4 Copyright 1987, 1998  The Open Group
      5 
      6 Permission to use, copy, modify, distribute, and sell this software and its
      7 documentation for any purpose is hereby granted without fee, provided that
      8 the above copyright notice appear in all copies and that both that
      9 copyright notice and this permission notice appear in supporting
     10 documentation.
     11 
     12 The above copyright notice and this permission notice shall be included in
     13 all copies or substantial portions of the Software.
     14 
     15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     21 
     22 Except as contained in this notice, the name of The Open Group shall not be
     23 used in advertising or otherwise to promote the sale, use or other dealings
     24 in this Software without prior written authorization from The Open Group.
     25 
     26 
     27 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
     28 
     29                         All Rights Reserved
     30 
     31 Permission to use, copy, modify, and distribute this software and its
     32 documentation for any purpose and without fee is hereby granted,
     33 provided that the above copyright notice appear in all copies and that
     34 both that copyright notice and this permission notice appear in
     35 supporting documentation, and that the name of Digital not be
     36 used in advertising or publicity pertaining to distribution of the
     37 software without specific, written prior permission.
     38 
     39 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
     40 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
     41 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
     42 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     43 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     44 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
     45 SOFTWARE.
     46 
     47 ******************************************************************/
     48 
     49 #ifndef _XATOMTYPE_H_
     50 #define _XATOMTYPE_H_
     51 
     52 /*
     53  * This files defines crock C structures for calling XGetWindowProperty and
     54  * XChangeProperty.  All fields must be longs as the semantics of property
     55  * routines will handle conversion to and from actual 32 bit objects.  If your
     56  * compiler doesn't treat &structoflongs the same as &arrayoflongs[0], you
     57  * will have some work to do.
     58  */
     59 
     60 #define BOOL long
     61 #define SIGNEDINT long
     62 #define UNSIGNEDINT unsigned long
     63 #define RESOURCEID unsigned long
     64 
     65 
     66 /* this structure may be extended, but do not change the order */
     67 typedef struct {
     68     UNSIGNEDINT flags;
     69     SIGNEDINT x, y, width, height;	/* need to cvt; only for pre-ICCCM */
     70     SIGNEDINT minWidth, minHeight;	/* need to cvt */
     71     SIGNEDINT maxWidth, maxHeight;	/* need to cvt */
     72     SIGNEDINT widthInc, heightInc;	/* need to cvt */
     73     SIGNEDINT minAspectX, minAspectY;	/* need to cvt */
     74     SIGNEDINT maxAspectX, maxAspectY;	/* need to cvt */
     75     SIGNEDINT baseWidth,baseHeight;	/* need to cvt; ICCCM version 1 */
     76     SIGNEDINT winGravity;		/* need to cvt; ICCCM version 1 */
     77 } xPropSizeHints;
     78 #define OldNumPropSizeElements 15	/* pre-ICCCM */
     79 #define NumPropSizeElements 18		/* ICCCM version 1 */
     80 
     81 /* this structure may be extended, but do not change the order */
     82 /* RGB properties */
     83 typedef struct {
     84 	RESOURCEID colormap;
     85 	UNSIGNEDINT red_max;
     86 	UNSIGNEDINT red_mult;
     87 	UNSIGNEDINT green_max;
     88 	UNSIGNEDINT green_mult;
     89 	UNSIGNEDINT blue_max;
     90 	UNSIGNEDINT blue_mult;
     91 	UNSIGNEDINT base_pixel;
     92 	RESOURCEID visualid;		/* ICCCM version 1 */
     93 	RESOURCEID killid;		/* ICCCM version 1 */
     94 } xPropStandardColormap;
     95 #define OldNumPropStandardColormapElements 8  /* pre-ICCCM */
     96 #define NumPropStandardColormapElements 10  /* ICCCM version 1 */
     97 
     98 
     99 /* this structure may be extended, but do not change the order */
    100 typedef struct {
    101     UNSIGNEDINT flags;
    102     BOOL input;				/* need to convert */
    103     SIGNEDINT initialState;		/* need to cvt */
    104     RESOURCEID iconPixmap;
    105     RESOURCEID iconWindow;
    106     SIGNEDINT  iconX;			/* need to cvt */
    107     SIGNEDINT  iconY;			/* need to cvt */
    108     RESOURCEID iconMask;
    109     UNSIGNEDINT windowGroup;
    110   } xPropWMHints;
    111 #define NumPropWMHintsElements 9 /* number of elements in this structure */
    112 
    113 /* this structure defines the icon size hints information */
    114 typedef struct {
    115     SIGNEDINT minWidth, minHeight;	/* need to cvt */
    116     SIGNEDINT maxWidth, maxHeight;	/* need to cvt */
    117     SIGNEDINT widthInc, heightInc;	/* need to cvt */
    118   } xPropIconSize;
    119 #define NumPropIconSizeElements 6 /* number of elements in this structure */
    120 
    121 /* this structure defines the window manager state information */
    122 typedef struct {
    123     SIGNEDINT state;			/* need to cvt */
    124     RESOURCEID iconWindow;
    125 } xPropWMState;
    126 #define NumPropWMStateElements 2	/* number of elements in struct */
    127 
    128 #undef BOOL
    129 #undef SIGNEDINT
    130 #undef UNSIGNEDINT
    131 #undef RESOURCEID
    132 
    133 #endif /* _XATOMTYPE_H_ */
    134