20 typedef unsigned char Type;
21 const Type Disabled = 8;
22 const Type Pressed = 16;
23 const Type PressedAlt = 24;
24 const Type Hover = 32;
25 const Type Focus = 40;
26 const Type Selected = 48;
27 const Type UserDefined = 127;
28 const Type Default = 255;
31 typedef std::pair<const bool*, bool> PairState;
34 typedef unsigned char Type;
35 const Type Background = 0;
36 const Type Outline = 1;
37 const Type FontFill = 2;
38 const Type FontOutline = 3;
39 const Type CursorFill = 4;
40 const Type CursorOutline = 5;
41 const Type UserDefined = 127;
44 enum class Orientation {
49 enum class PositionType {
54 enum class MarginMode : int {
62 Full = Top | Bottom | Left | Right | Horizontal | Vertical
65 inline MarginMode operator|(MarginMode m1, MarginMode m2) {
66 return static_cast<MarginMode
>(
static_cast<int>(m1) | static_cast<int>(m2));
69 inline MarginMode operator^(MarginMode m1, MarginMode m2) {
70 return static_cast<MarginMode
>(
static_cast<int>(m1) ^ static_cast<int>(m2));
73 inline bool operator&(MarginMode m1, MarginMode m2) {
74 return static_cast<int>(m1) & static_cast<int>(m2);
77 enum class MarginUnit {
83 enum class ScrollType {
90 enum class ScrollEnable : int {
94 Both = Horizontal | Vertical
97 inline bool operator& (ScrollEnable s1, ScrollEnable s2) {
98 return static_cast<int>(s1) & static_cast<int>(s2);
101 enum class MaximizationMode : int {
104 Both = Horizontal | Vertical
107 inline bool operator& (MaximizationMode m1, MaximizationMode m2) {
108 return static_cast<int>(m1) & static_cast<int>(m2);
111 enum class LogLevel : unsigned char {
118 Full = CriticalError | Error | Warning | Info | DebugInfo
121 inline bool operator& (LogLevel l1, LogLevel l2) {
122 return static_cast<unsigned char>(l1) & static_cast<unsigned char>(l2);
125 inline LogLevel operator- (LogLevel l1, LogLevel l2) {
127 return static_cast<LogLevel
>(
128 static_cast<unsigned char>(l1) - static_cast<unsigned char>(l2)
134 enum class LogWrite {
139 enum class CBState : unsigned {
146 constexpr
inline unsigned toId(CBState state) {
147 return static_cast<unsigned>(state);
150 enum class GradientType {
161 enum class TabPosition {