Various cosmetic changes.
[wine] / dlls / x11drv / mwm.h
1 /*
2  * Motif Window Manager definitions
3  *
4  * Copyright 2001 Ove Kåven, TransGaming Technologies Inc.
5  * (these definitions were found in GTK+ 1.2, gdk/MwmUtil.h)
6  */
7 #ifndef __WINE_MWM_H
8 #define __WINE_MWM_H
9
10 typedef struct {
11   unsigned long flags;
12   unsigned long functions;
13   unsigned long decorations;
14   long input_mode;
15   unsigned long status;
16 } MotifWmHints, MwmHints;
17
18 #define MWM_HINTS_FUNCTIONS   1
19 #define MWM_HINTS_DECORATIONS 2
20 #define MWM_HINTS_INPUT_MODE  4
21 #define MWM_HINTS_STATUS      8
22
23 #define MWM_FUNC_ALL          0x01
24 #define MWM_FUNC_RESIZE       0x02
25 #define MWM_FUNC_MOVE         0x04
26 #define MWM_FUNC_MINIMIZE     0x08
27 #define MWM_FUNC_MAXIMIZE     0x10
28 #define MWM_FUNC_CLOSE        0x20
29
30 #define MWM_DECOR_ALL         0x01
31 #define MWM_DECOR_BORDER      0x02
32 #define MWM_DECOR_RESIZEH     0x04
33 #define MWM_DECOR_TITLE       0x08
34 #define MWM_DECOR_MENU        0x10
35 #define MWM_DECOR_MINIMIZE    0x20
36 #define MWM_DECOR_MAXIMIZE    0x40
37
38 #define MWM_INPUT_MODELESS                  0
39 #define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
40 #define MWM_INPUT_SYSTEM_MODAL              2
41 #define MWM_INPUT_FULL_APPLICATION_MODAL    3
42 #define MWM_INPUT_APPLICATION_MODAL         1
43
44 #define MWM_TEAROFF_WINDOW 1
45
46 typedef struct {
47   long flags;
48   Window wm_window;
49 } MotifWmInfo, MwmInfo;
50
51 #define MWM_INFO_STARTUP_STANDARD 1
52 #define MWM_INFO_STARTUP_CUSTOM   2
53
54 #define _XA_MOTIF_WM_HINTS    "_MOTIF_WM_HINTS"
55 #define _XA_MOTIF_WM_MESSAGES "_MOTIF_WM_MESSAGES"
56 #define _XA_MOTIF_WM_OFFSET   "_MOTIF_WM_OFFSET"
57 #define _XA_MOTIF_WM_MENU     "_MOTIF_WM_MENU"
58 #define _XA_MOTIF_WM_INFO     "_MOTIF_WM_INFO"
59
60 #define _XA_MWM_HINTS    _XA_MOTIF_WM_HINTS
61 #define _XA_MWM_MESSAGES _XA_MOTIF_WM_MESSAGES
62 #define _XA_MWM_MENU     _XA_MOTIF_WM_MENU
63 #define _XA_MWM_INFO     _XA_MOTIF_WM_INFO
64
65 #endif /* __WINE_MWM_H */