1 #if !defined(WINMULTIWINDOWCLASS_H)
2 #define WINMULTIWINDOWCLASS_H
4 *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
6 *Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 *"Software"), to deal in the Software without restriction, including
9 *without limitation the rights to use, copy, modify, merge, publish,
10 *distribute, sublicense, and/or sell copies of the Software, and to
11 *permit persons to whom the Software is furnished to do so, subject to
12 *the following conditions:
14 *The above copyright notice and this permission notice shall be
15 *included in all copies or substantial portions of the Software.
17 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 *NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR
21 *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
22 *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *Except as contained in this notice, the name of the XFree86 Project
26 *shall not be used in advertising or otherwise to promote the sale, use
27 *or other dealings in this Software without prior written authorization
28 *from the XFree86 Project.
30 * Authors: Earle F. Philhower, III
38 long flags
; /* marks which fields in this structure are defined */
39 Bool input
; /* does this application rely on the window manager to
40 get keyboard input? */
41 int initial_state
; /* see below */
42 Pixmap icon_pixmap
; /* pixmap to be used as icon */
43 Window icon_window
; /* window to be used as icon */
44 int icon_x
, icon_y
; /* initial position of icon */
45 Pixmap icon_mask
; /* icon mask bitmap */
46 XID window_group
; /* id of related window group */
47 /* this structure may be extended in the future */
52 * new version containing base_width, base_height, and win_gravity fields;
53 * used with WM_NORMAL_HINTS.
56 long flags
; /* marks which fields in this structure are defined */
57 int x
, y
; /* obsolete for new window mgrs, but clients */
58 int width
, height
; /* should set so old wm's don't mess up */
59 int min_width
, min_height
;
60 int max_width
, max_height
;
61 int width_inc
, height_inc
;
63 int x
; /* numerator */
64 int y
; /* denominator */
65 } min_aspect
, max_aspect
;
66 int base_width
, base_height
; /* added by ICCCM version 1 */
67 int win_gravity
; /* added by ICCCM version 1 */
71 * The next block of definitions are for window manager properties that
72 * clients and applications use for communication.
75 /* flags argument in size hints */
76 #define USPosition (1L << 0) /* user specified x, y */
77 #define USSize (1L << 1) /* user specified width, height */
79 #define PPosition (1L << 2) /* program specified position */
80 #define PSize (1L << 3) /* program specified size */
81 #define PMinSize (1L << 4) /* program specified minimum size */
82 #define PMaxSize (1L << 5) /* program specified maximum size */
83 #define PResizeInc (1L << 6) /* program specified resize increments */
84 #define PAspect (1L << 7) /* program specified min and max aspect ratios */
85 #define PBaseSize (1L << 8) /* program specified base for incrementing */
86 #define PWinGravity (1L << 9) /* program specified window gravity */
89 #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
97 winMultiWindowGetWMHints (WindowPtr pWin
, WinXWMHints
*hints
);
100 winMultiWindowGetClassHint (WindowPtr pWin
, char **res_name
, char **res_class
);
103 winMultiWindowGetWindowRole (WindowPtr pWin
, char **res_role
);
106 winMultiWindowGetWMNormalHints (WindowPtr pWin
, WinXSizeHints
*hints
);
109 winMultiWindowGetWMName (WindowPtr pWin
, char **wmName
);
112 winMultiWindowGetTransientFor (WindowPtr pWin
, WindowPtr
*ppDaddy
);