wmi.h (1190B)
1 // Copyright (c) 2003 - 2009 Anselm R Garbe <anselm@garbe.us> 2 // See LICENSE for license details. 3 4 #ifndef __WMI_H 5 #define __WMI_H 6 7 #include "config.h" 8 9 #define LOGERROR(X, Y) Logger::instance()->error(X, Y) 10 #define LOGWARN(X) Logger::instance()->warning(X) 11 #define CONFPATH "/etc/wmi" 12 #define KERNEL Kernel::instance() 13 #define XCORE XCore::instance() 14 15 #ifdef DEBUG 16 #define LOGDEBUG(X) Logger::instance()->debug(X) 17 #else 18 #define LOGDEBUG(X) 19 #endif 20 21 enum Direction {LEFT, RIGHT, UP, DOWN, NORTH_WEST, 22 NORTH_EAST, SOUTH_WEST, SOUTH_EAST}; 23 24 // we use only std namespace 25 using namespace std; 26 27 // Motif bits - see Motif reference manual for further information. 28 #define MWM_HINTS_FUNCTIONS (1L << 0) 29 #define MWM_HINTS_DECORATIONS (1L << 1) 30 #define MWM_HINTS_INPUT_MODE (1L << 2) 31 #define MWM_HINTS_STATUS (1L << 3) 32 33 #define MWM_DECOR_ALL (1L << 0) 34 #define MWM_DECOR_BORDER (1L << 1) 35 #define MWM_DECOR_RESIZEH (1L << 2) 36 #define MWM_DECOR_TITLE (1L << 3) 37 #define MWM_DECOR_MENU (1L << 4) 38 #define MWM_DECOR_MINIMIZE (1L << 5) 39 #define MWM_DECOR_MAXIMIZE (1L << 6) 40 41 #define MINIMAL_BARHEIGHT 13 42 #endif // __WMI_H