2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * (c) Copyright 1989, 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
30 /* $XConsortium: WmICCC.h /main/3 1995/11/01 11:40:07 rswiston $ */
32 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
40 #include <X11/Xatom.h>
45 * Value definitions and macros:
50 /*************************************<->*************************************
52 * ICCC property data structures ...
57 * These data structures are mwm versions of the window manager data
58 * stuctures that are specified in the ICCCM and the Xlib specification
59 * for client/window manager communication. In general these data
60 * structures correspond to client window property values.
62 *************************************<->***********************************/
65 /* mwm version of the xPropSizeHints structure: */
67 typedef struct _PropSizeHints
70 long x; /* R2 conventions */
71 long y; /* R2 conventions */
72 long width; /* R2 conventions */
73 long height; /* R2 conventions */
84 long baseWidth; /* current conventions */
85 long baseHeight; /* current conventions */
86 long winGravity; /* current conventions */
90 #define PROP_SIZE_HINTS_ELEMENTS 18
93 /* mwm version of the XSizeHints structure: */
95 typedef struct _SizeHints
99 int x; /* R2 conventions */
100 int y; /* R2 conventions */
101 int width; /* R2 conventions */
102 int height; /* R2 conventions */
109 AspectRatio min_aspect;
110 AspectRatio max_aspect;
111 int base_width; /* current conventions */
112 int base_height; /* current conventions */
113 int win_gravity; /* current conventions */
117 /* mwm version of the xPropWMState structure: */
119 typedef struct _PropWMState
125 #define PROP_WM_STATE_ELEMENTS 2
128 /* ICCC versions (icccVersion): */
130 #define ICCC_CURRENT 1
131 #define ICCC_UNKNOWN ICCC_CURRENT
134 /* SizeHints flags field values: */
135 #define US_POSITION (1L << 0)
136 #define US_SIZE (1L << 1)
137 #define P_POSITION (1L << 2)
138 #define P_SIZE (1L << 3)
139 #define P_MIN_SIZE (1L << 4)
140 #define P_MAX_SIZE (1L << 5)
141 #define P_RESIZE_INC (1L << 6)
142 #define P_ASPECT (1L << 7)
143 #define P_BASE_SIZE (1L << 8)
144 #define P_WIN_GRAVITY (1L << 9)
146 /* PropWMState state field value: */
147 #define WithdrawnSTATE 0
148 #endif /* _Dt_WmICCC_h_ */