metacity-Xatomtype.h

Go to the documentation of this file.
00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 
00013 /***********************************************************
00014 
00015 Copyright 1987, 1998  The Open Group
00016 
00017 Permission to use, copy, modify, distribute, and sell this software and its
00018 documentation for any purpose is hereby granted without fee, provided that
00019 the above copyright notice appear in all copies and that both that
00020 copyright notice and this permission notice appear in supporting
00021 documentation.
00022 
00023 The above copyright notice and this permission notice shall be included in
00024 all copies or substantial portions of the Software.
00025 
00026 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00027 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00028 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00029 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00030 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00031 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00032 
00033 Except as contained in this notice, the name of The Open Group shall not be
00034 used in advertising or otherwise to promote the sale, use or other dealings
00035 in this Software without prior written authorization from The Open Group.
00036 
00037 
00038 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
00039 
00040                         All Rights Reserved
00041 
00042 Permission to use, copy, modify, and distribute this software and its 
00043 documentation for any purpose and without fee is hereby granted, 
00044 provided that the above copyright notice appear in all copies and that
00045 both that copyright notice and this permission notice appear in 
00046 supporting documentation, and that the name of Digital not be
00047 used in advertising or publicity pertaining to distribution of the
00048 software without specific, written prior permission.  
00049 
00050 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
00051 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
00052 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
00053 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00054 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
00055 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00056 SOFTWARE.
00057 
00058 ******************************************************************/
00059 
00060 #ifndef _XATOMTYPE_H_
00061 #define _XATOMTYPE_H_
00062 
00063 #define BOOL long
00064 #define SIGNEDINT long
00065 #define UNSIGNEDINT unsigned long
00066 #define RESOURCEID unsigned long
00067 
00068 
00069 /* this structure may be extended, but do not change the order */
00070 typedef struct {
00071     UNSIGNEDINT flags;
00072     SIGNEDINT x, y, width, height;      /* need to cvt; only for pre-ICCCM */
00073     SIGNEDINT minWidth, minHeight;      /* need to cvt */
00074     SIGNEDINT maxWidth, maxHeight;      /* need to cvt */
00075     SIGNEDINT widthInc, heightInc;      /* need to cvt */
00076     SIGNEDINT minAspectX, minAspectY;   /* need to cvt */
00077     SIGNEDINT maxAspectX, maxAspectY;   /* need to cvt */
00078     SIGNEDINT baseWidth,baseHeight;     /* need to cvt; ICCCM version 1 */
00079     SIGNEDINT winGravity;               /* need to cvt; ICCCM version 1 */
00080 } xPropSizeHints;
00081 #define OldNumPropSizeElements 15       /* pre-ICCCM */
00082 #define NumPropSizeElements 18          /* ICCCM version 1 */
00083 
00084 /* this structure may be extended, but do not change the order */
00085 /* RGB properties */
00086 typedef struct {
00087         RESOURCEID colormap;
00088         UNSIGNEDINT red_max;
00089         UNSIGNEDINT red_mult;
00090         UNSIGNEDINT green_max;
00091         UNSIGNEDINT green_mult;
00092         UNSIGNEDINT blue_max;
00093         UNSIGNEDINT blue_mult;
00094         UNSIGNEDINT base_pixel;
00095         RESOURCEID visualid;            /* ICCCM version 1 */
00096         RESOURCEID killid;              /* ICCCM version 1 */
00097 } xPropStandardColormap;
00098 #define OldNumPropStandardColormapElements 8  /* pre-ICCCM */
00099 #define NumPropStandardColormapElements 10  /* ICCCM version 1 */
00100 
00101 
00102 /* this structure may be extended, but do not change the order */
00103 typedef struct {
00104     UNSIGNEDINT flags;
00105     BOOL input;                         /* need to convert */
00106     SIGNEDINT initialState;             /* need to cvt */
00107     RESOURCEID iconPixmap;
00108     RESOURCEID iconWindow;
00109     SIGNEDINT  iconX;                   /* need to cvt */
00110     SIGNEDINT  iconY;                   /* need to cvt */
00111     RESOURCEID iconMask;
00112     UNSIGNEDINT windowGroup;
00113   } xPropWMHints;
00114 #define NumPropWMHintsElements 9 /* number of elements in this structure */
00115 
00116 /* this structure defines the icon size hints information */
00117 typedef struct {
00118     SIGNEDINT minWidth, minHeight;      /* need to cvt */
00119     SIGNEDINT maxWidth, maxHeight;      /* need to cvt */
00120     SIGNEDINT widthInc, heightInc;      /* need to cvt */
00121   } xPropIconSize;
00122 #define NumPropIconSizeElements 6 /* number of elements in this structure */
00123 
00124 /* this structure defines the window manager state information */
00125 typedef struct {
00126     SIGNEDINT state;                    /* need to cvt */
00127     RESOURCEID iconWindow;
00128 } xPropWMState;
00129 #define NumPropWMStateElements 2        /* number of elements in struct */
00130 
00131 #undef BOOL
00132 #undef SIGNEDINT
00133 #undef UNSIGNEDINT
00134 #undef RESOURCEID
00135 
00136 #endif /* _XATOMTYPE_H_ */

Generated on Sat Aug 23 22:04:17 2008 for metacity by  doxygen 1.5.5