CTWM
Toggle main menu visibility
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/mwmhints.h
Go to the documentation of this file.
1
#ifndef _CTWM_MWMHINTS_H
2
#define _CTWM_MWMHINTS_H
3
4
/*
5
* Contents of the _MOTIF_WM_HINTS property.
6
*/
7
8
#undef FULL_MWM_DATA
9
10
typedef
struct
{
11
int
flags
;
12
int
functions
;
13
int
decorations
;
14
#ifdef FULL_MWM_DATA
15
int
input_mode;
16
int
status;
17
#endif
18
}
MotifWmHints
;
19
20
/* bit definitions for MwmHints.flags */
21
#define MWM_HINTS_FUNCTIONS (1L << 0)
22
#define MWM_HINTS_DECORATIONS (1L << 1)
23
#define MWM_HINTS_INPUT_MODE (1L << 2)
24
#define MWM_HINTS_STATUS (1L << 3)
25
26
/* bit definitions for MwmHints.functions */
27
#define MWM_FUNC_ALL (1L << 0)
28
#define MWM_FUNC_RESIZE (1L << 1)
29
#define MWM_FUNC_MOVE (1L << 2)
30
#define MWM_FUNC_MINIMIZE (1L << 3)
31
#define MWM_FUNC_MAXIMIZE (1L << 4)
32
#define MWM_FUNC_CLOSE (1L << 5)
33
34
/* bit definitions for MwmHints.decorations */
35
#define MWM_DECOR_ALL (1L << 0)
/* [v] */
36
#define MWM_DECOR_BORDER (1L << 1)
/* [v] */
37
#define MWM_DECOR_RESIZEH (1L << 2)
38
#define MWM_DECOR_TITLE (1L << 3)
/* [v] */
39
#define MWM_DECOR_MENU (1L << 4)
40
#define MWM_DECOR_MINIMIZE (1L << 5)
41
#define MWM_DECOR_MAXIMIZE (1L << 6)
42
43
/* values for MwmHints.input_mode */
44
#define MWM_INPUT_MODELESS 0
45
#define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
46
#define MWM_INPUT_SYSTEM_MODAL 2
47
#define MWM_INPUT_FULL_APPLICATION_MODAL 3
48
49
/* bit definitions for MwmHints.status */
50
#define MWM_TEAROFF_WINDOW (1L << 0)
51
52
/*
53
* The above includes some contents from <Xm/MwmUtil.h>.
54
*
55
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
56
*
57
* These libraries and programs are free software; you can
58
* redistribute them and/or modify them under the terms of the GNU
59
* Lesser General Public License as published by the Free Software
60
* Foundation; either version 2 of the License, or (at your option)
61
* any later version.
62
*/
63
64
bool
GetMWMHints
(Window w,
MotifWmHints
*mwmHints);
65
66
int
mwm_has_border
(
MotifWmHints
*hints);
67
bool
mwm_sets_title
(
MotifWmHints
*hints);
68
bool
mwm_has_title
(
MotifWmHints
*hints);
69
70
#endif
/* include guard */
mwm_has_border
int mwm_has_border(MotifWmHints *hints)
Definition
mwmhints.c:104
mwm_sets_title
bool mwm_sets_title(MotifWmHints *hints)
Definition
mwmhints.c:127
GetMWMHints
bool GetMWMHints(Window w, MotifWmHints *mwmHints)
Definition
mwmhints.c:25
mwm_has_title
bool mwm_has_title(MotifWmHints *hints)
Definition
mwmhints.c:145
MotifWmHints
Definition
mwmhints.h:10
MotifWmHints::decorations
int decorations
Definition
mwmhints.h:13
MotifWmHints::functions
int functions
Definition
mwmhints.h:12
MotifWmHints::flags
int flags
Definition
mwmhints.h:11
mwmhints.h
Generated by
1.18.0