1 | /* |
---|
2 | * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. |
---|
3 | * ALL RIGHTS RESERVED |
---|
4 | */ |
---|
5 | /* |
---|
6 | * Motif Release 1.2 |
---|
7 | */ |
---|
8 | /* $RCSfile: WmICCC.h,v $ $Revision: 1.1.1.1 $ $Date: 1997-03-25 09:12:19 $ */ |
---|
9 | /* |
---|
10 | * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */ |
---|
11 | |
---|
12 | /* |
---|
13 | * Included Files: |
---|
14 | */ |
---|
15 | |
---|
16 | #include <X11/Xatom.h> |
---|
17 | #include <X11/Xmd.h> |
---|
18 | |
---|
19 | |
---|
20 | /* |
---|
21 | * Value definitions and macros: |
---|
22 | */ |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | /*************************************<->************************************* |
---|
27 | * |
---|
28 | * ICCC property data structures ... |
---|
29 | * |
---|
30 | * |
---|
31 | * Description: |
---|
32 | * ----------- |
---|
33 | * These data structures are mwm versions of the window manager data |
---|
34 | * stuctures that are specified in the ICCCM and the Xlib specification |
---|
35 | * for client/window manager communication. In general these data |
---|
36 | * structures correspond to client window property values. |
---|
37 | * |
---|
38 | *************************************<->***********************************/ |
---|
39 | |
---|
40 | |
---|
41 | /* mwm version of the xPropSizeHints structure: */ |
---|
42 | |
---|
43 | typedef struct _PropSizeHints |
---|
44 | { |
---|
45 | CARD32 flags; |
---|
46 | INT32 x; /* R2 conventions */ |
---|
47 | INT32 y; /* R2 conventions */ |
---|
48 | INT32 width; /* R2 conventions */ |
---|
49 | INT32 height; /* R2 conventions */ |
---|
50 | INT32 minWidth; |
---|
51 | INT32 minHeight; |
---|
52 | INT32 maxWidth; |
---|
53 | INT32 maxHeight; |
---|
54 | INT32 widthInc; |
---|
55 | INT32 heightInc; |
---|
56 | INT32 minAspectX; |
---|
57 | INT32 minAspectY; |
---|
58 | INT32 maxAspectX; |
---|
59 | INT32 maxAspectY; |
---|
60 | INT32 baseWidth; /* current conventions */ |
---|
61 | INT32 baseHeight; /* current conventions */ |
---|
62 | INT32 winGravity; /* current conventions */ |
---|
63 | |
---|
64 | } PropSizeHints; |
---|
65 | |
---|
66 | #define PROP_SIZE_HINTS_ELEMENTS 18 |
---|
67 | |
---|
68 | |
---|
69 | /* mwm version of the XSizeHints structure: */ |
---|
70 | |
---|
71 | typedef struct _SizeHints |
---|
72 | { |
---|
73 | int icccVersion; |
---|
74 | long flags; |
---|
75 | int x; /* R2 conventions */ |
---|
76 | int y; /* R2 conventions */ |
---|
77 | int width; /* R2 conventions */ |
---|
78 | int height; /* R2 conventions */ |
---|
79 | int min_width; |
---|
80 | int min_height; |
---|
81 | int max_width; |
---|
82 | int max_height; |
---|
83 | int width_inc; |
---|
84 | int height_inc; |
---|
85 | AspectRatio min_aspect; |
---|
86 | AspectRatio max_aspect; |
---|
87 | int base_width; /* current conventions */ |
---|
88 | int base_height; /* current conventions */ |
---|
89 | int win_gravity; /* current conventions */ |
---|
90 | |
---|
91 | } SizeHints; |
---|
92 | |
---|
93 | /* mwm version of the xPropWMState structure: */ |
---|
94 | |
---|
95 | typedef struct _PropWMState |
---|
96 | { |
---|
97 | CARD32 state; |
---|
98 | BITS32 icon; |
---|
99 | } PropWMState; |
---|
100 | |
---|
101 | #define PROP_WM_STATE_ELEMENTS 2 |
---|
102 | |
---|
103 | |
---|
104 | /* ICCC versions (icccVersion): */ |
---|
105 | #define ICCC_R2 0 |
---|
106 | #define ICCC_CURRENT 1 |
---|
107 | #define ICCC_UNKNOWN ICCC_CURRENT |
---|
108 | |
---|
109 | |
---|
110 | /* SizeHints flags field values: */ |
---|
111 | #define US_POSITION (1L << 0) |
---|
112 | #define US_SIZE (1L << 1) |
---|
113 | #define P_POSITION (1L << 2) |
---|
114 | #define P_SIZE (1L << 3) |
---|
115 | #define P_MIN_SIZE (1L << 4) |
---|
116 | #define P_MAX_SIZE (1L << 5) |
---|
117 | #define P_RESIZE_INC (1L << 6) |
---|
118 | #define P_ASPECT (1L << 7) |
---|
119 | #define P_BASE_SIZE (1L << 8) |
---|
120 | #define P_WIN_GRAVITY (1L << 9) |
---|
121 | |
---|
122 | /* PropWMState state field value: */ |
---|
123 | #define WithdrawnSTATE 0 |
---|