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 10typedef 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 64bool GetMWMHints(Window w, MotifWmHints *mwmHints); 65 66int mwm_has_border(MotifWmHints *hints); 67bool mwm_sets_title(MotifWmHints *hints); 68bool mwm_has_title(MotifWmHints *hints); 69 70#endif /* include guard */ 71