source: trunk/third/gtk/gdk/MwmUtil.h @ 14482

Revision 14482, 3.8 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14481, which included commits to RCS files with non-trunk default branches.
Line 
1/**
2 *
3 * $Id: MwmUtil.h,v 1.1.1.1 2000-03-28 20:31:21 ghudson Exp $
4 *
5 * Copyright (C) 1995 Free Software Foundation, Inc.
6 *
7 * This file is part of the GNU LessTif Library.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 * Boston, MA 02111-1307, USA.
23 *
24 *
25 * * Feb 21 1999 - George Lebl (jirka@5z.com)
26 *                 Owen Taylor (otaylor@redhat.com)
27 *
28 *   Modified so that the MotifWmHints structure defined here
29 *   is suitable for client side use on 64-bit architectures.
30 *   X expects fields with a format of 32 to be longs, even
31 *   when sizeof(long) == 8.
32 **/
33
34#ifndef MWMUTIL_H_INCLUDED
35#define MWMUTIL_H_INCLUDED
36
37#include <X11/Xmd.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43typedef struct {
44    unsigned long flags;
45    unsigned long functions;
46    unsigned long decorations;
47    long input_mode;
48    unsigned long status;
49} MotifWmHints, MwmHints;
50
51#define MWM_HINTS_FUNCTIONS     (1L << 0)
52#define MWM_HINTS_DECORATIONS   (1L << 1)
53#define MWM_HINTS_INPUT_MODE    (1L << 2)
54#define MWM_HINTS_STATUS        (1L << 3)
55
56#define MWM_FUNC_ALL            (1L << 0)
57#define MWM_FUNC_RESIZE         (1L << 1)
58#define MWM_FUNC_MOVE           (1L << 2)
59#define MWM_FUNC_MINIMIZE       (1L << 3)
60#define MWM_FUNC_MAXIMIZE       (1L << 4)
61#define MWM_FUNC_CLOSE          (1L << 5)
62
63#define MWM_DECOR_ALL           (1L << 0)
64#define MWM_DECOR_BORDER        (1L << 1)
65#define MWM_DECOR_RESIZEH       (1L << 2)
66#define MWM_DECOR_TITLE         (1L << 3)
67#define MWM_DECOR_MENU          (1L << 4)
68#define MWM_DECOR_MINIMIZE      (1L << 5)
69#define MWM_DECOR_MAXIMIZE      (1L << 6)
70
71#define MWM_INPUT_MODELESS 0
72#define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
73#define MWM_INPUT_SYSTEM_MODAL 2
74#define MWM_INPUT_FULL_APPLICATION_MODAL 3
75#define MWM_INPUT_APPLICATION_MODAL MWM_INPUT_PRIMARY_APPLICATION_MODAL
76
77#define MWM_TEAROFF_WINDOW      (1L<<0)
78
79/*
80 * atoms
81 */
82#define _XA_MOTIF_BINDINGS              "_MOTIF_BINDINGS"
83#define _XA_MOTIF_WM_HINTS              "_MOTIF_WM_HINTS"
84#define _XA_MOTIF_WM_MESSAGES           "_MOTIF_WM_MESSAGES"
85#define _XA_MOTIF_WM_OFFSET             "_MOTIF_WM_OFFSET"
86#define _XA_MOTIF_WM_MENU               "_MOTIF_WM_MENU"
87#define _XA_MOTIF_WM_INFO               "_MOTIF_WM_INFO"
88#define _XA_MWM_HINTS                   _XA_MOTIF_WM_HINTS
89#define _XA_MWM_MESSAGES                _XA_MOTIF_WM_MESSAGES
90#define _XA_MWM_MENU                    _XA_MOTIF_WM_MENU
91#define _XA_MWM_INFO                    _XA_MOTIF_WM_INFO
92
93
94/*
95 * _MWM_INFO property
96 */
97typedef struct {
98    long flags;
99    Window wm_window;
100} MotifWmInfo;
101
102typedef MotifWmInfo MwmInfo;
103
104#define MWM_INFO_STARTUP_STANDARD       (1L<<0)
105#define MWM_INFO_STARTUP_CUSTOM         (1L<<1)
106
107/*
108 * _MWM_HINTS property
109 */
110typedef struct {
111    unsigned long flags;
112    unsigned long functions;
113    unsigned long decorations;
114    long inputMode;
115    unsigned long status;
116} PropMotifWmHints;
117
118typedef PropMotifWmHints PropMwmHints;
119
120#define PROP_MOTIF_WM_HINTS_ELEMENTS 5
121#define PROP_MWM_HINTS_ELEMENTS PROP_MOTIF_WM_HINTS_ELEMENTS
122
123/*
124 * _MWM_INFO property, slight return
125 */
126typedef struct {
127    unsigned long flags;
128    unsigned long wmWindow;
129} PropMotifWmInfo;
130
131typedef PropMotifWmInfo PropMwmInfo;
132
133#define PROP_MOTIF_WM_INFO_ELEMENTS 2
134#define PROP_MWM_INFO_ELEMENTS PROP_MOTIF_WM_INFO_ELEMENTS
135
136#ifdef __cplusplus
137}
138#endif
139
140#endif /* MWMUTIL_H_INCLUDED */
Note: See TracBrowser for help on using the repository browser.