Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 129 | { | |||
---|---|---|---|---|---|
130 | return false; | 130 | return false; | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | void AbstractClient::setClientShown(bool shown) | 133 | void AbstractClient::setClientShown(bool shown) | ||
134 | { | 134 | { | ||
135 | Q_UNUSED(shown) | 135 | Q_UNUSED(shown) | ||
136 | } | 136 | } | ||
137 | 137 | | |||
138 | MaximizeMode AbstractClient::requestedMaximizeMode() const | | |||
139 | { | | |||
140 | return maximizeMode(); | | |||
141 | } | | |||
142 | | ||||
143 | xcb_timestamp_t AbstractClient::userTime() const | 138 | xcb_timestamp_t AbstractClient::userTime() const | ||
144 | { | 139 | { | ||
145 | return XCB_TIME_CURRENT_TIME; | 140 | return XCB_TIME_CURRENT_TIME; | ||
146 | } | 141 | } | ||
147 | 142 | | |||
148 | void AbstractClient::setSkipSwitcher(bool set) | 143 | void AbstractClient::setSkipSwitcher(bool set) | ||
149 | { | 144 | { | ||
150 | set = rules()->checkSkipSwitcher(set); | 145 | set = rules()->checkSkipSwitcher(set); | ||
▲ Show 20 Lines • Show All 3042 Lines • ▼ Show 20 Line(s) | |||||
3193 | * | 3188 | * | ||
3194 | * Default implementation returns @c false. | 3189 | * Default implementation returns @c false. | ||
3195 | */ | 3190 | */ | ||
3196 | bool AbstractClient::isMinimizable() const | 3191 | bool AbstractClient::isMinimizable() const | ||
3197 | { | 3192 | { | ||
3198 | return false; | 3193 | return false; | ||
3199 | } | 3194 | } | ||
3200 | 3195 | | |||
3196 | /** | ||||
3197 | * Returns @c true if the AbstractClient can be maximized; otherwise @c false. | ||||
3198 | * | ||||
3199 | * Default implementation returns @c false. | ||||
3200 | */ | ||||
3201 | bool AbstractClient::isMaximizable() const | ||||
3202 | { | ||||
3203 | return false; | ||||
3204 | } | ||||
3205 | | ||||
3206 | /** | ||||
3207 | * Returns the currently applied maximize mode. | ||||
3208 | * | ||||
3209 | * Default implementation returns MaximizeRestore. | ||||
3210 | */ | ||||
3211 | MaximizeMode AbstractClient::maximizeMode() const | ||||
3212 | { | ||||
3213 | return MaximizeRestore; | ||||
3214 | } | ||||
3215 | | ||||
3216 | /** | ||||
3217 | * Returns the last requested maximize mode. | ||||
3218 | * | ||||
3219 | * On X11, this method always matches maximizeMode(). On Wayland, it is asynchronous. | ||||
3220 | * | ||||
3221 | * Default implementation matches maximizeMode(). | ||||
3222 | */ | ||||
3223 | MaximizeMode AbstractClient::requestedMaximizeMode() const | ||||
3224 | { | ||||
3225 | return maximizeMode(); | ||||
3226 | } | ||||
3227 | | ||||
3228 | /** | ||||
3229 | * Returns the geometry of the AbstractClient before it was maximized or quick tiled. | ||||
3230 | */ | ||||
3231 | QRect AbstractClient::geometryRestore() const | ||||
3232 | { | ||||
3233 | return m_maximizeGeometryRestore; | ||||
3234 | } | ||||
3235 | | ||||
3236 | /** | ||||
3237 | * Sets the geometry of the AbstractClient before it was maximized or quick tiled to @p rect. | ||||
3238 | */ | ||||
3239 | void AbstractClient::setGeometryRestore(const QRect &rect) | ||||
3240 | { | ||||
3241 | m_maximizeGeometryRestore = rect; | ||||
3242 | } | ||||
3243 | | ||||
3244 | /** | ||||
3245 | * Toggles the maximized state along specified dimensions @p horizontal and @p vertical. | ||||
3246 | * | ||||
3247 | * If @p adjust is @c true, only frame geometry will be updated to match requestedMaximizeMode(). | ||||
3248 | * | ||||
3249 | * Default implementation does nothing. | ||||
3250 | */ | ||||
3251 | void AbstractClient::changeMaximize(bool horizontal, bool vertical, bool adjust) | ||||
3252 | { | ||||
3253 | Q_UNUSED(horizontal) | ||||
3254 | Q_UNUSED(vertical) | ||||
3255 | Q_UNUSED(adjust) | ||||
3256 | } | ||||
3257 | | ||||
3201 | } | 3258 | } |