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 Sun Microsystems, Inc.
25 * (c) Copyright 1993 HEWLETT-PACKARD COMPANY
36 #define OL_WIN_ATTR "_OL_WIN_ATTR"
37 #define OL_DECOR_ADD "_OL_DECOR_ADD"
38 #define OL_DECOR_DEL "_OL_DECOR_DEL"
43 #define OL_DECOR_RESIZE "_OL_DECOR_RESIZE"
44 #define OL_DECOR_FOOTER "_OL_DECOR_FOOTER"
45 #define OL_DECOR_HEADER "_OL_DECOR_HEADER"
46 #define OL_DECOR_PIN "_OL_DECOR_PIN"
47 #define OL_DECOR_CLOSE "_OL_DECOR_CLOSE"
48 #define OL_DECOR_ICON_NAME "_OL_DECOR_ICON_NAME"
49 #define OL_PIN_IN "_OL_PIN_IN"
50 #define OL_PIN_OUT "_OL_PIN_OUT"
55 #define OL_WT_BASE "_OL_WT_BASE"
56 #define OL_WT_CMD "_OL_WT_CMD"
57 #define OL_WT_NOTICE "_OL_WT_NOTICE"
58 #define OL_WT_HELP "_OL_WT_HELP"
59 #define OL_WT_OTHER "_OL_WT_OTHER"
64 #define OL_MENU_LIMITED "_OL_MENU_LIMITED"
65 #define OL_MENU_FULL "_OL_MENU_FULL"
68 * Structure of Open Look window attribute property
70 typedef struct _OLWinAttr {
74 unsigned long pin_initial_state;
77 #define OLWINATTRLENGTH (sizeof(OLWinAttr)/sizeof(unsigned long))
79 typedef struct _old_OLWinAttr {
82 unsigned long pin_initial_state;
84 #define OLDOLWINATTRLENGTH (sizeof(old_OLWinAttr)/sizeof(unsigned long))
91 * Values for flags in OLWinAttr
93 #define WA_WINTYPE (1<<0)
94 #define WA_MENUTYPE (1<<1)
95 #define WA_PINSTATE (1<<2)
96 #define WA_CANCEL (1<<3)
98 #define ENTIRE_CONTENTS (10000000L)
101 * Bit Flags for OL Window Decoration
103 #define OLDecorHeader (1L<<0)
104 #define OLDecorFooter (1L<<1)
105 #define OLDecorPushPin (1L<<2)
106 #define OLDecorCloseButton (1L<<3)
107 #define OLDecorResizable (1L<<4)
108 #define OLDecorIconName (1L<<5)
109 #define OLDecorWarpToPin (1L<<6)
114 extern Boolean HasOpenLookHints( ClientData *pCD );
115 extern OLWinAttr * GetOLWinAttr( ClientData *pCD );
116 extern Boolean GetOLDecorFlags(ClientData *pCD, Atom property,
117 unsigned long *pDecor);
118 extern void InitOLCompat(void);
119 extern void ProcessOLDecoration(ClientData *pCD);
124 * Macros (public pseudo-functions)
126 #define GetOLDecorAdd(pcd,ptr) (GetOLDecorFlags(pcd,wmGD.xa_OL_DECOR_ADD,ptr))
127 #define GetOLDecorDel(pcd,ptr) (GetOLDecorFlags(pcd,wmGD.xa_OL_DECOR_DEL,ptr))
130 #endif /* NO_OL_COMPAT */
131 /* Do not add anything after the following #endif */
132 #endif /* _WM_OL_H */