- enum MemDecorations { MemDecor_All = 1 << 0,
- MemDecor_Border = 1 << 1,
- MemDecor_Handle = 1 << 2,
- MemDecor_Title = 1 << 3,
- //MemDecor_Menu = 1 << 4,
- MemDecor_Iconify = 1 << 5,
- MemDecor_Maximize = 1 << 6 };
+ enum MemDecorations { MwmDecor_All = 1 << 0,
+ MwmDecor_Border = 1 << 1,
+ MwmDecor_Handle = 1 << 2,
+ MwmDecor_Title = 1 << 3,
+ //MwmDecor_Menu = 1 << 4,
+ MwmDecor_Iconify = 1 << 5,
+ MwmDecor_Maximize = 1 << 6 };
+
+ // the things the user can do to the client window
+ enum Function { Func_Resize = 1 << 0,
+ Func_Move = 1 << 1,
+ Func_Iconify = 1 << 2,
+ Func_Maximize = 1 << 3,
+ Func_Close = 1 << 4 };
+ typedef unsigned char FunctionFlags;
+
+ // the decorations the client window wants to be displayed on it
+ enum Decoration { Decor_Titlebar = 1 << 0,
+ Decor_Handle = 1 << 1,
+ Decor_Border = 1 << 2,
+ Decor_Iconify = 1 << 3,
+ Decor_Maximize = 1 << 4,
+ Decor_Close = 1 << 5 };
+ typedef unsigned char DecorationFlags;