b42ef7362c
use proper prefixing and capitalization for the new mwm stuff.
60 lines
1.8 KiB
C
60 lines
1.8 KiB
C
#ifndef __ob__mwm_h
|
|
#define __ob__mwm_h
|
|
|
|
#include <glib.h>
|
|
|
|
typedef struct _ObMwmHints ObMwmHints;
|
|
|
|
/*! The MWM Hints as retrieved from the window property
|
|
This structure only contains 3 elements, even though the Motif 2.0
|
|
structure contains 5. We only use the first 3, so that is all gets
|
|
defined.
|
|
*/
|
|
struct _ObMwmHints
|
|
{
|
|
/*! A bitmask of ObMwmFlags values */
|
|
guint flags;
|
|
/*! A bitmask of ObMwmFunctions values */
|
|
guint functions;
|
|
/*! A bitmask of ObMwmDecorations values */
|
|
guint decorations;
|
|
};
|
|
|
|
/*! The number of elements in the ObMwmHints struct */
|
|
#define OB_MWM_ELEMENTS 3
|
|
|
|
/*! Possible flags for MWM Hints (defined by Motif 2.0) */
|
|
typedef enum
|
|
{
|
|
OB_MWM_FLAG_FUNCTIONS = 1 << 0, /*!< The MMW Hints define funcs */
|
|
OB_MWM_FLAG_DECORATIONS = 1 << 1 /*!< The MWM Hints define decor */
|
|
} ObMwmFlags;
|
|
|
|
/*! Possible functions for MWM Hints (defined by Motif 2.0) */
|
|
typedef enum
|
|
{
|
|
OB_MWM_FUNC_ALL = 1 << 0, /*!< All functions */
|
|
OB_MWM_FUNC_RESIZE = 1 << 1, /*!< Allow resizing */
|
|
OB_MWM_FUNC_MOVE = 1 << 2, /*!< Allow moving */
|
|
OB_MWM_FUNC_ICONIFY = 1 << 3, /*!< Allow to be iconfied */
|
|
OB_MWM_FUNC_MAXIMIZE = 1 << 4 /*!< Allow to be maximized */
|
|
#if 0
|
|
OM_MWM_FUNC_CLOSE = 1 << 5 /*!< Allow to be closed */
|
|
#endif
|
|
} ObMwmFunctions;
|
|
|
|
/*! Possible decorations for MWM Hints (defined by Motif 2.0) */
|
|
typedef enum
|
|
{
|
|
OB_MWM_DECOR_ALL = 1 << 0, /*!< All decorations */
|
|
OB_MWM_DECOR_BORDER = 1 << 1, /*!< Show a border */
|
|
OB_MWM_DECOR_HANDLE = 1 << 2, /*!< Show a handle (bottom) */
|
|
OB_MWM_DECOR_TITLE = 1 << 3, /*!< Show a titlebar */
|
|
#if 0
|
|
OB_MWM_DECOR_MENU = 1 << 4, /*!< Show a menu */
|
|
#endif
|
|
OB_MWM_DECOR_ICONIFY = 1 << 5, /*!< Show an iconify button */
|
|
OB_MWM_DECOR_MAXIMIZE = 1 << 6 /*!< Show a maximize button */
|
|
} ObMwmDecorations;
|
|
|
|
#endif
|