Added full support for xbuttons (side mouse buttons).
[wine/multimedia.git] / dlls / x11drv / mwm.h
blobdcfe9f679cca3e2ee5b7dd9f237fcc87e64756e6
1 /*
2 * Motif Window Manager definitions
4 * Copyright 2001 Ove Kåven, TransGaming Technologies Inc.
5 * (these definitions were found in GTK+ 1.2, gdk/MwmUtil.h)
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library 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 GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_MWM_H
22 #define __WINE_MWM_H
24 typedef struct {
25 unsigned long flags;
26 unsigned long functions;
27 unsigned long decorations;
28 long input_mode;
29 unsigned long status;
30 } MotifWmHints, MwmHints;
32 #define MWM_HINTS_FUNCTIONS 1
33 #define MWM_HINTS_DECORATIONS 2
34 #define MWM_HINTS_INPUT_MODE 4
35 #define MWM_HINTS_STATUS 8
37 #define MWM_FUNC_ALL 0x01
38 #define MWM_FUNC_RESIZE 0x02
39 #define MWM_FUNC_MOVE 0x04
40 #define MWM_FUNC_MINIMIZE 0x08
41 #define MWM_FUNC_MAXIMIZE 0x10
42 #define MWM_FUNC_CLOSE 0x20
44 #define MWM_DECOR_ALL 0x01
45 #define MWM_DECOR_BORDER 0x02
46 #define MWM_DECOR_RESIZEH 0x04
47 #define MWM_DECOR_TITLE 0x08
48 #define MWM_DECOR_MENU 0x10
49 #define MWM_DECOR_MINIMIZE 0x20
50 #define MWM_DECOR_MAXIMIZE 0x40
52 #define MWM_INPUT_MODELESS 0
53 #define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
54 #define MWM_INPUT_SYSTEM_MODAL 2
55 #define MWM_INPUT_FULL_APPLICATION_MODAL 3
56 #define MWM_INPUT_APPLICATION_MODAL 1
58 #define MWM_TEAROFF_WINDOW 1
60 typedef struct {
61 long flags;
62 Window wm_window;
63 } MotifWmInfo, MwmInfo;
65 #define MWM_INFO_STARTUP_STANDARD 1
66 #define MWM_INFO_STARTUP_CUSTOM 2
68 #define _XA_MOTIF_WM_HINTS "_MOTIF_WM_HINTS"
69 #define _XA_MOTIF_WM_MESSAGES "_MOTIF_WM_MESSAGES"
70 #define _XA_MOTIF_WM_OFFSET "_MOTIF_WM_OFFSET"
71 #define _XA_MOTIF_WM_MENU "_MOTIF_WM_MENU"
72 #define _XA_MOTIF_WM_INFO "_MOTIF_WM_INFO"
74 #define _XA_MWM_HINTS _XA_MOTIF_WM_HINTS
75 #define _XA_MWM_MESSAGES _XA_MOTIF_WM_MESSAGES
76 #define _XA_MWM_MENU _XA_MOTIF_WM_MENU
77 #define _XA_MWM_INFO _XA_MOTIF_WM_INFO
79 #endif /* __WINE_MWM_H */