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 libraries 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.
31 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
39 #include <X11/Xatom.h>
44 * Value definitions and macros:
49 /*************************************<->*************************************
51 * ICCC property data structures ...
56 * These data structures are mwm versions of the window manager data
57 * stuctures that are specified in the ICCCM and the Xlib specification
58 * for client/window manager communication. In general these data
59 * structures correspond to client window property values.
61 *************************************<->***********************************/
64 /* mwm version of the xPropSizeHints structure: */
66 typedef struct _PropSizeHints
69 long x; /* R2 conventions */
70 long y; /* R2 conventions */
71 long width; /* R2 conventions */
72 long height; /* R2 conventions */
83 long baseWidth; /* current conventions */
84 long baseHeight; /* current conventions */
85 long winGravity; /* current conventions */
89 #define PROP_SIZE_HINTS_ELEMENTS 18
92 /* mwm version of the XSizeHints structure: */
94 typedef struct _SizeHints
98 int x; /* R2 conventions */
99 int y; /* R2 conventions */
100 int width; /* R2 conventions */
101 int height; /* R2 conventions */
108 AspectRatio min_aspect;
109 AspectRatio max_aspect;
110 int base_width; /* current conventions */
111 int base_height; /* current conventions */
112 int win_gravity; /* current conventions */
116 /* mwm version of the xPropWMState structure: */
118 typedef struct _PropWMState
124 #define PROP_WM_STATE_ELEMENTS 2
127 /* ICCC versions (icccVersion): */
129 #define ICCC_CURRENT 1
130 #define ICCC_UNKNOWN ICCC_CURRENT
133 /* SizeHints flags field values: */
134 #define US_POSITION (1L << 0)
135 #define US_SIZE (1L << 1)
136 #define P_POSITION (1L << 2)
137 #define P_SIZE (1L << 3)
138 #define P_MIN_SIZE (1L << 4)
139 #define P_MAX_SIZE (1L << 5)
140 #define P_RESIZE_INC (1L << 6)
141 #define P_ASPECT (1L << 7)
142 #define P_BASE_SIZE (1L << 8)
143 #define P_WIN_GRAVITY (1L << 9)
145 /* PropWMState state field value: */
146 #define WithdrawnSTATE 0
147 #endif /* _Dt_WmICCC_h_ */