~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to src/GNUstep.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
ImportĀ upstreamĀ versionĀ 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GNUstep.h-- stuff for compatibility with GNUstep applications
 
2
 *
 
3
 *  Window Maker window manager
 
4
 *
 
5
 *  Copyright (c) 1997-2003 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.
 
11
 *
 
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.
 
16
 *
 
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.
 
21
 */
 
22
 
 
23
 
 
24
#ifndef WMGNUSTEP_H_
 
25
#define WMGNUSTEP_H_
 
26
 
 
27
#include <X11/Xproto.h>
 
28
 
 
29
 
 
30
#define GNUSTEP_WM_MINIATURIZE_WINDOW "_GNUSTEP_WM_MINIATURIZE_WINDOW"
 
31
 
 
32
#define GNUSTEP_WM_ATTR_NAME  "_GNUSTEP_WM_ATTR"
 
33
 
 
34
#define GNUSTEP_TITLEBAR_STATE  "_GNUSTEP_TITLEBAR_STATE"
 
35
enum {
 
36
    WMTitleBarKey = 0,
 
37
    WMTitleBarNormal = 1,
 
38
    WMTitleBarMain = 2
 
39
};
 
40
 
 
41
#ifndef _DEFINED_GNUSTEP_WINDOW_INFO
 
42
#define _DEFINED_GNUSTEP_WINDOW_INFO
 
43
/*
 
44
 * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
 
45
 * NSDesktopWindowLevel intended to be the level at which things
 
46
 * on the desktop sit ... so you should be able
 
47
 * to put a desktop background just below it.
 
48
 *
 
49
 * Applications are actually permitted to use any value in the
 
50
 * range INT_MIN+1 to INT_MAX
 
51
 */
 
52
enum {
 
53
    WMDesktopWindowLevel = -1000, /* GNUstep addition     */
 
54
    WMNormalWindowLevel = 0,
 
55
    WMFloatingWindowLevel = 3,
 
56
    WMSubmenuWindowLevel = 3,
 
57
    WMTornOffMenuWindowLevel = 3,
 
58
    WMMainMenuWindowLevel = 20,
 
59
    WMDockWindowLevel = 21,       /* Deprecated - use NSStatusWindowLevel */
 
60
    WMStatusWindowLevel = 21,
 
61
    WMModalPanelWindowLevel = 100,
 
62
    WMPopUpMenuWindowLevel = 101,
 
63
    WMScreenSaverWindowLevel = 1000
 
64
};
 
65
 
 
66
 
 
67
/* window attributes */
 
68
enum {
 
69
    WMBorderlessWindowMask = 0,
 
70
    WMTitledWindowMask = 1,
 
71
    WMClosableWindowMask = 2,
 
72
    WMMiniaturizableWindowMask = 4,
 
73
    WMResizableWindowMask = 8,
 
74
    WMIconWindowMask = 64,
 
75
    WMMiniWindowMask = 128
 
76
};
 
77
#endif
 
78
 
 
79
/* window manager -> appkit notifications */
 
80
#define GNUSTEP_WM_NOTIFICATION         "GNUSTEP_WM_NOTIFICATION"
 
81
 
 
82
 
 
83
typedef struct {
 
84
    CARD32 flags;
 
85
    CARD32 window_style;
 
86
    CARD32 window_level;
 
87
    CARD32 reserved;
 
88
    Pixmap miniaturize_pixmap;         /* pixmap for miniaturize button */
 
89
    Pixmap close_pixmap;               /* pixmap for close button */
 
90
    Pixmap miniaturize_mask;           /* miniaturize pixmap mask */
 
91
    Pixmap close_mask;                 /* close pixmap mask */
 
92
    CARD32 extra_flags;
 
93
} GNUstepWMAttributes;
 
94
 
 
95
#define GSWindowStyleAttr       (1<<0)
 
96
#define GSWindowLevelAttr       (1<<1)
 
97
#define GSMiniaturizePixmapAttr (1<<3)
 
98
#define GSClosePixmapAttr       (1<<4)
 
99
#define GSMiniaturizeMaskAttr   (1<<5)
 
100
#define GSCloseMaskAttr         (1<<6)
 
101
#define GSExtraFlagsAttr        (1<<7)
 
102
 
 
103
/* extra flags */
 
104
#define GSDocumentEditedFlag    (1<<0)
 
105
 
 
106
#define GSNoApplicationIconFlag (1<<5)
 
107
 
 
108
 
 
109
#define WMFHideOtherApplications        10
 
110
#define WMFHideApplication              12
 
111
 
 
112
#endif
 
113