// // Copyright (C) 1996 Ben Ross // // You may distribute under the terms of the GNU General Public // License as specified in the COPYING file. // // $Id: Xe.h,v 1.7 2001/08/04 11:27:16 ben Exp $ #ifndef _Xe_H_ #define _Xe_H_ #include #include #include #include // stl headers #include #include #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #if 0 #ifdef NULL #undef NULL #endif #ifndef NULL #define NULL 0 #endif #endif #define XE_CB_RESIZE (1L << 0) #define XE_CB_XEVENT (1L << 1) #define XE_CB_ACTIVATE (1L << 2) #define XE_CB_VALUE_CHANGED (1L << 3) #define DIVPLUS(x, y) (((x)-1)/(y) + 1) // // Miscellaneous functions: // u_long lookupColour(class XeObject* ob, char* colname); void getHomeDir(char* pathname); void parseKeyString(const char* str, int len, KeySym& key, u_int& mods); // // Miscellaneous Classes: // class XeTimeFunc { public: XeTimeFunc(const char* label = NULL); ~XeTimeFunc(); private: struct timeval _tv; const char* _label; static long _totalTime; }; #endif