CTWM
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
/usr/src/RPM/BUILD/ctwm-4.1.0/mwmhints.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MotifWmHints
 

Macros

#define MWM_HINTS_FUNCTIONS   (1L << 0)
 
#define MWM_HINTS_DECORATIONS   (1L << 1)
 
#define MWM_HINTS_INPUT_MODE   (1L << 2)
 
#define MWM_HINTS_STATUS   (1L << 3)
 
#define MWM_FUNC_ALL   (1L << 0)
 
#define MWM_FUNC_RESIZE   (1L << 1)
 
#define MWM_FUNC_MOVE   (1L << 2)
 
#define MWM_FUNC_MINIMIZE   (1L << 3)
 
#define MWM_FUNC_MAXIMIZE   (1L << 4)
 
#define MWM_FUNC_CLOSE   (1L << 5)
 
#define MWM_DECOR_ALL   (1L << 0) /* [v] */
 
#define MWM_DECOR_BORDER   (1L << 1) /* [v] */
 
#define MWM_DECOR_RESIZEH   (1L << 2)
 
#define MWM_DECOR_TITLE   (1L << 3) /* [v] */
 
#define MWM_DECOR_MENU   (1L << 4)
 
#define MWM_DECOR_MINIMIZE   (1L << 5)
 
#define MWM_DECOR_MAXIMIZE   (1L << 6)
 
#define MWM_INPUT_MODELESS   0
 
#define MWM_INPUT_PRIMARY_APPLICATION_MODAL   1
 
#define MWM_INPUT_SYSTEM_MODAL   2
 
#define MWM_INPUT_FULL_APPLICATION_MODAL   3
 
#define MWM_TEAROFF_WINDOW   (1L << 0)
 

Functions

bool GetMWMHints (Window w, MotifWmHints *mwmHints)
 
int mwm_has_border (MotifWmHints *hints)
 
bool mwm_sets_title (MotifWmHints *hints)
 
bool mwm_has_title (MotifWmHints *hints)
 

Macro Definition Documentation

◆ MWM_DECOR_ALL

#define MWM_DECOR_ALL   (1L << 0) /* [v] */

Definition at line 35 of file mwmhints.h.

Referenced by GetMWMHints().

◆ MWM_DECOR_BORDER

#define MWM_DECOR_BORDER   (1L << 1) /* [v] */

Definition at line 36 of file mwmhints.h.

Referenced by mwm_has_border().

◆ MWM_DECOR_MAXIMIZE

#define MWM_DECOR_MAXIMIZE   (1L << 6)

Definition at line 41 of file mwmhints.h.

◆ MWM_DECOR_MENU

#define MWM_DECOR_MENU   (1L << 4)

Definition at line 39 of file mwmhints.h.

◆ MWM_DECOR_MINIMIZE

#define MWM_DECOR_MINIMIZE   (1L << 5)

Definition at line 40 of file mwmhints.h.

◆ MWM_DECOR_RESIZEH

#define MWM_DECOR_RESIZEH   (1L << 2)

Definition at line 37 of file mwmhints.h.

◆ MWM_DECOR_TITLE

#define MWM_DECOR_TITLE   (1L << 3) /* [v] */

Definition at line 38 of file mwmhints.h.

Referenced by mwm_has_title().

◆ MWM_FUNC_ALL

#define MWM_FUNC_ALL   (1L << 0)

Definition at line 27 of file mwmhints.h.

Referenced by GetMWMHints().

◆ MWM_FUNC_CLOSE

#define MWM_FUNC_CLOSE   (1L << 5)

Definition at line 32 of file mwmhints.h.

◆ MWM_FUNC_MAXIMIZE

#define MWM_FUNC_MAXIMIZE   (1L << 4)

Definition at line 31 of file mwmhints.h.

◆ MWM_FUNC_MINIMIZE

#define MWM_FUNC_MINIMIZE   (1L << 3)

Definition at line 30 of file mwmhints.h.

◆ MWM_FUNC_MOVE

#define MWM_FUNC_MOVE   (1L << 2)

Definition at line 29 of file mwmhints.h.

◆ MWM_FUNC_RESIZE

#define MWM_FUNC_RESIZE   (1L << 1)

Definition at line 28 of file mwmhints.h.

◆ MWM_HINTS_DECORATIONS

#define MWM_HINTS_DECORATIONS   (1L << 1)

Definition at line 22 of file mwmhints.h.

Referenced by GetMWMHints(), and mwm_sets_decorations().

◆ MWM_HINTS_FUNCTIONS

#define MWM_HINTS_FUNCTIONS   (1L << 0)

Definition at line 21 of file mwmhints.h.

Referenced by GetMWMHints().

◆ MWM_HINTS_INPUT_MODE

#define MWM_HINTS_INPUT_MODE   (1L << 2)

Definition at line 23 of file mwmhints.h.

◆ MWM_HINTS_STATUS

#define MWM_HINTS_STATUS   (1L << 3)

Definition at line 24 of file mwmhints.h.

◆ MWM_INPUT_FULL_APPLICATION_MODAL

#define MWM_INPUT_FULL_APPLICATION_MODAL   3

Definition at line 47 of file mwmhints.h.

◆ MWM_INPUT_MODELESS

#define MWM_INPUT_MODELESS   0

Definition at line 44 of file mwmhints.h.

◆ MWM_INPUT_PRIMARY_APPLICATION_MODAL

#define MWM_INPUT_PRIMARY_APPLICATION_MODAL   1

Definition at line 45 of file mwmhints.h.

◆ MWM_INPUT_SYSTEM_MODAL

#define MWM_INPUT_SYSTEM_MODAL   2

Definition at line 46 of file mwmhints.h.

◆ MWM_TEAROFF_WINDOW

#define MWM_TEAROFF_WINDOW   (1L << 0)

Definition at line 50 of file mwmhints.h.

Function Documentation

◆ GetMWMHints()

bool GetMWMHints ( Window w,
MotifWmHints * mwmHints )

Definition at line 25 of file mwmhints.c.

References dpy, MWM_DECOR_ALL, MWM_FUNC_ALL, MWM_HINTS_DECORATIONS, MWM_HINTS_FUNCTIONS, and PlaceX.

Referenced by AddWindow().

◆ mwm_has_border()

int mwm_has_border ( MotifWmHints * hints)

Definition at line 104 of file mwmhints.c.

References MotifWmHints::decorations, LookInNameList(), MWM_DECOR_BORDER, mwm_sets_decorations(), and Scr.

Referenced by AddWindow().

◆ mwm_has_title()

bool mwm_has_title ( MotifWmHints * hints)

Definition at line 145 of file mwmhints.c.

References MotifWmHints::decorations, MWM_DECOR_TITLE, and mwm_sets_decorations().

Referenced by AddWindow().

◆ mwm_sets_title()

bool mwm_sets_title ( MotifWmHints * hints)

Definition at line 127 of file mwmhints.c.

References LookInNameList(), mwm_sets_decorations(), and Scr.

Referenced by AddWindow().