Changeset View
Changeset View
Standalone View
Standalone View
utils.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 77 | enum Layer { | |||
---|---|---|---|---|---|
85 | NotificationLayer, // layer for windows of type notification | 85 | NotificationLayer, // layer for windows of type notification | ||
86 | ActiveLayer, // active fullscreen, or active dialog | 86 | ActiveLayer, // active fullscreen, or active dialog | ||
87 | CriticalNotificationLayer, // layer for notifications that should be shown even on top of fullscreen | 87 | CriticalNotificationLayer, // layer for notifications that should be shown even on top of fullscreen | ||
88 | OnScreenDisplayLayer, // layer for On Screen Display windows such as volume feedback | 88 | OnScreenDisplayLayer, // layer for On Screen Display windows such as volume feedback | ||
89 | UnmanagedLayer, // layer for override redirect windows. | 89 | UnmanagedLayer, // layer for override redirect windows. | ||
90 | NumLayers // number of layers, must be last | 90 | NumLayers // number of layers, must be last | ||
91 | }; | 91 | }; | ||
92 | 92 | | |||
93 | // yes, I know this is not 100% like standard operator++ | | |||
94 | inline void operator++(Layer& lay) | | |||
95 | { | | |||
96 | lay = static_cast< Layer >(lay + 1); | | |||
97 | } | | |||
98 | | ||||
99 | enum StrutArea { | 93 | enum StrutArea { | ||
100 | StrutAreaInvalid = 0, // Null | 94 | StrutAreaInvalid = 0, // Null | ||
101 | StrutAreaTop = 1 << 0, | 95 | StrutAreaTop = 1 << 0, | ||
102 | StrutAreaRight = 1 << 1, | 96 | StrutAreaRight = 1 << 1, | ||
103 | StrutAreaBottom = 1 << 2, | 97 | StrutAreaBottom = 1 << 2, | ||
104 | StrutAreaLeft = 1 << 3, | 98 | StrutAreaLeft = 1 << 3, | ||
105 | StrutAreaAll = StrutAreaTop | StrutAreaRight | StrutAreaBottom | StrutAreaLeft | 99 | StrutAreaAll = StrutAreaTop | StrutAreaRight | StrutAreaBottom | StrutAreaLeft | ||
106 | }; | 100 | }; | ||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |