1706f2543Smrg#if !defined(WINMULTIWINDOWCLASS_H) 2706f2543Smrg#define WINMULTIWINDOWCLASS_H 3706f2543Smrg/* 4706f2543Smrg *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. 5706f2543Smrg * 6706f2543Smrg *Permission is hereby granted, free of charge, to any person obtaining 7706f2543Smrg * a copy of this software and associated documentation files (the 8706f2543Smrg *"Software"), to deal in the Software without restriction, including 9706f2543Smrg *without limitation the rights to use, copy, modify, merge, publish, 10706f2543Smrg *distribute, sublicense, and/or sell copies of the Software, and to 11706f2543Smrg *permit persons to whom the Software is furnished to do so, subject to 12706f2543Smrg *the following conditions: 13706f2543Smrg * 14706f2543Smrg *The above copyright notice and this permission notice shall be 15706f2543Smrg *included in all copies or substantial portions of the Software. 16706f2543Smrg * 17706f2543Smrg *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18706f2543Smrg *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19706f2543Smrg *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20706f2543Smrg *NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR 21706f2543Smrg *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22706f2543Smrg *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23706f2543Smrg *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24706f2543Smrg * 25706f2543Smrg *Except as contained in this notice, the name of the XFree86 Project 26706f2543Smrg *shall not be used in advertising or otherwise to promote the sale, use 27706f2543Smrg *or other dealings in this Software without prior written authorization 28706f2543Smrg *from the XFree86 Project. 29706f2543Smrg * 30706f2543Smrg * Authors: Earle F. Philhower, III 31706f2543Smrg */ 32706f2543Smrg 33706f2543Smrg/* 34706f2543Smrg * Structures 35706f2543Smrg */ 36706f2543Smrg 37706f2543Smrgtypedef struct { 38706f2543Smrg long flags; /* marks which fields in this structure are defined */ 39706f2543Smrg Bool input; /* does this application rely on the window manager to 40706f2543Smrg get keyboard input? */ 41706f2543Smrg int initial_state; /* see below */ 42706f2543Smrg Pixmap icon_pixmap; /* pixmap to be used as icon */ 43706f2543Smrg Window icon_window; /* window to be used as icon */ 44706f2543Smrg int icon_x, icon_y; /* initial position of icon */ 45706f2543Smrg Pixmap icon_mask; /* icon mask bitmap */ 46706f2543Smrg XID window_group; /* id of related window group */ 47706f2543Smrg /* this structure may be extended in the future */ 48706f2543Smrg} WinXWMHints; 49706f2543Smrg 50706f2543Smrg 51706f2543Smrg/* 52706f2543Smrg * new version containing base_width, base_height, and win_gravity fields; 53706f2543Smrg * used with WM_NORMAL_HINTS. 54706f2543Smrg */ 55706f2543Smrgtypedef struct { 56706f2543Smrg long flags; /* marks which fields in this structure are defined */ 57706f2543Smrg int x, y; /* obsolete for new window mgrs, but clients */ 58706f2543Smrg int width, height; /* should set so old wm's don't mess up */ 59706f2543Smrg int min_width, min_height; 60706f2543Smrg int max_width, max_height; 61706f2543Smrg int width_inc, height_inc; 62706f2543Smrg struct { 63706f2543Smrg int x; /* numerator */ 64706f2543Smrg int y; /* denominator */ 65706f2543Smrg } min_aspect, max_aspect; 66706f2543Smrg int base_width, base_height; /* added by ICCCM version 1 */ 67706f2543Smrg int win_gravity; /* added by ICCCM version 1 */ 68706f2543Smrg} WinXSizeHints; 69706f2543Smrg 70706f2543Smrg/* 71706f2543Smrg * The next block of definitions are for window manager properties that 72706f2543Smrg * clients and applications use for communication. 73706f2543Smrg */ 74706f2543Smrg 75706f2543Smrg/* flags argument in size hints */ 76706f2543Smrg#define USPosition (1L << 0) /* user specified x, y */ 77706f2543Smrg#define USSize (1L << 1) /* user specified width, height */ 78706f2543Smrg 79706f2543Smrg#define PPosition (1L << 2) /* program specified position */ 80706f2543Smrg#define PSize (1L << 3) /* program specified size */ 81706f2543Smrg#define PMinSize (1L << 4) /* program specified minimum size */ 82706f2543Smrg#define PMaxSize (1L << 5) /* program specified maximum size */ 83706f2543Smrg#define PResizeInc (1L << 6) /* program specified resize increments */ 84706f2543Smrg#define PAspect (1L << 7) /* program specified min and max aspect ratios */ 85706f2543Smrg#define PBaseSize (1L << 8) /* program specified base for incrementing */ 86706f2543Smrg#define PWinGravity (1L << 9) /* program specified window gravity */ 87706f2543Smrg 88706f2543Smrg/* obsolete */ 89706f2543Smrg#define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect) 90706f2543Smrg 91706f2543Smrg 92706f2543Smrg/* 93706f2543Smrg * Function prototypes 94706f2543Smrg */ 95706f2543Smrg 96706f2543Smrgint 97706f2543SmrgwinMultiWindowGetWMHints (WindowPtr pWin, WinXWMHints *hints); 98706f2543Smrg 99706f2543Smrgint 100706f2543SmrgwinMultiWindowGetClassHint (WindowPtr pWin, char **res_name, char **res_class); 101706f2543Smrg 102706f2543Smrgint 103706f2543SmrgwinMultiWindowGetWindowRole (WindowPtr pWin, char **res_role); 104706f2543Smrg 105706f2543Smrgint 106706f2543SmrgwinMultiWindowGetWMNormalHints (WindowPtr pWin, WinXSizeHints *hints); 107706f2543Smrg 108706f2543Smrgint 109706f2543SmrgwinMultiWindowGetWMName (WindowPtr pWin, char **wmName); 110706f2543Smrg 111706f2543Smrgint 112706f2543SmrgwinMultiWindowGetTransientFor (WindowPtr pWin, WindowPtr *ppDaddy); 113706f2543Smrg 114706f2543Smrg#endif 115