Updating to version 0.20.2
[wmaker-crm.git] / src / GNUstep.h
blob88b3c0564619f8c8e325e10e7c1b501d1cf724d0
1 /* GNUstep.h-- stuff for compatibility with GNUstep applications
3 * Window Maker window manager
4 *
5 * Copyright (c) 1997, 1998 Alfredo K. Kojima
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 * USA.
24 #ifndef WMGNUSTEP_H_
25 #define WMGNUSTEP_H_
28 * Kluge for when proplist.h is included too. proplist.h #defines BOOL
29 * and Xmd.h (which is indirectly included from Xproto.h) typedefs BOOL.
30 * The worst is that the BOOL from Xmd.h is a 8bit type, while BOOL from
31 * proplist.h is int...
33 #ifdef BOOL
34 #define WINGS_BOOL_FLAG
35 #undef BOOL
36 #endif
38 #include <X11/Xproto.h>
40 #ifdef WINGS_BOOL_FLAG
41 #define BOOL int
42 #undef WINGS_BOOL_FLAG
43 #endif
45 #define GNUSTEP_WM_MINIATURIZE_WINDOW "_GNUSTEP_WM_MINIATURIZE_WINDOW"
47 #define GNUSTEP_WM_ATTR_NAME "_GNUSTEP_WM_ATTR"
50 #ifndef _WINGS_H_
51 /* window stacking level */
52 enum {
53 WMNormalWindowLevel = 0,
54 WMFloatingWindowLevel = 3,
55 WMDockWindowLevel = 5,
56 WMSubmenuWindowLevel = 10,
57 WMMainMenuWindowLevel = 20
60 /* window attributes */
61 enum {
62 WMBorderlessWindowMask = 0,
63 WMTitledWindowMask = 1,
64 WMClosableWindowMask = 2,
65 WMMiniaturizableWindowMask = 4,
66 WMResizableWindowMask = 8
68 #endif /* _WINGS_H_ */
70 /* window manager -> appkit notifications */
71 #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"
74 typedef struct {
75 CARD32 flags;
76 CARD32 window_style;
77 CARD32 window_level;
78 CARD32 reserved;
79 Pixmap miniaturize_pixmap; /* pixmap for miniaturize button */
80 Pixmap close_pixmap; /* pixmap for close button */
81 Pixmap miniaturize_mask; /* miniaturize pixmap mask */
82 Pixmap close_mask; /* close pixmap mask */
83 CARD32 extra_flags;
84 } GNUstepWMAttributes;
86 #define GSWindowStyleAttr (1<<0)
87 #define GSWindowLevelAttr (1<<1)
88 #define GSMiniaturizePixmapAttr (1<<3)
89 #define GSClosePixmapAttr (1<<4)
90 #define GSMiniaturizeMaskAttr (1<<5)
91 #define GSCloseMaskAttr (1<<6)
92 #define GSExtraFlagsAttr (1<<7)
94 /* extra flags */
95 #define GSDocumentEditedFlag (1<<0)
96 #define GSWindowWillResizeNotificationsFlag (1<<1)
97 #define GSWindowWillMoveNotificationsFlag (1<<2)
99 #define GSNoApplicationIconFlag (1<<5)
102 #define WMFHideOtherApplications 10
103 #define WMFHideApplication 12
105 #endif