Changeset View
Changeset View
Standalone View
Standalone View
utils.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 120 | enum ShadeMode { | |||
---|---|---|---|---|---|
121 | ShadeNone, // not shaded | 121 | ShadeNone, // not shaded | ||
122 | ShadeNormal, // normally shaded - isShade() is true only here | 122 | ShadeNormal, // normally shaded - isShade() is true only here | ||
123 | ShadeHover, // "shaded", but visible due to hover unshade | 123 | ShadeHover, // "shaded", but visible due to hover unshade | ||
124 | ShadeActivated // "shaded", but visible due to alt+tab to the window | 124 | ShadeActivated // "shaded", but visible due to alt+tab to the window | ||
125 | }; | 125 | }; | ||
126 | 126 | | |||
127 | /** | 127 | /** | ||
128 | * Maximize mode. These values specify how a window is maximized. | 128 | * Maximize mode. These values specify how a window is maximized. | ||
129 | */ | 129 | * | ||
130 | // these values are written to session files, don't change the order | 130 | * @note these values are written to session files, don't change the order | ||
131 | **/ | ||||
131 | enum MaximizeMode { | 132 | enum MaximizeMode { | ||
132 | MaximizeRestore = 0, ///< The window is not maximized in any direction. | 133 | MaximizeRestore = 0, ///< The window is not maximized in any direction. | ||
133 | MaximizeVertical = 1, ///< The window is maximized vertically. | 134 | MaximizeVertical = 1, ///< The window is maximized vertically. | ||
134 | MaximizeHorizontal = 2, ///< The window is maximized horizontally. | 135 | MaximizeHorizontal = 2, ///< The window is maximized horizontally. | ||
135 | /// Equal to @p MaximizeVertical | @p MaximizeHorizontal | 136 | /// Equal to @p MaximizeVertical | @p MaximizeHorizontal | ||
136 | MaximizeFull = MaximizeVertical | MaximizeHorizontal | 137 | MaximizeFull = MaximizeVertical | MaximizeHorizontal | ||
137 | }; | 138 | }; | ||
138 | 139 | | |||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
190 | // converting between X11 mouse/keyboard state mask and Qt button/keyboard states | 191 | // converting between X11 mouse/keyboard state mask and Qt button/keyboard states | ||
191 | Qt::MouseButton x11ToQtMouseButton(int button); | 192 | Qt::MouseButton x11ToQtMouseButton(int button); | ||
192 | Qt::MouseButton KWIN_EXPORT x11ToQtMouseButton(int button); | 193 | Qt::MouseButton KWIN_EXPORT x11ToQtMouseButton(int button); | ||
193 | Qt::MouseButtons KWIN_EXPORT x11ToQtMouseButtons(int state); | 194 | Qt::MouseButtons KWIN_EXPORT x11ToQtMouseButtons(int state); | ||
194 | Qt::KeyboardModifiers KWIN_EXPORT x11ToQtKeyboardModifiers(int state); | 195 | Qt::KeyboardModifiers KWIN_EXPORT x11ToQtKeyboardModifiers(int state); | ||
195 | 196 | | |||
196 | /** | 197 | /** | ||
197 | * Separate the concept of an unet QPoint and 0,0 | 198 | * Separate the concept of an unet QPoint and 0,0 | ||
198 | */ | 199 | **/ | ||
199 | class ClearablePoint | 200 | class ClearablePoint | ||
200 | { | 201 | { | ||
201 | public: | 202 | public: | ||
202 | inline bool isValid() const { | 203 | inline bool isValid() const { | ||
203 | return m_valid; | 204 | return m_valid; | ||
204 | } | 205 | } | ||
205 | 206 | | |||
206 | inline void clear(){ | 207 | inline void clear(){ | ||
Show All 37 Lines |