Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 125 | { | |||
---|---|---|---|---|---|
126 | return false; | 126 | return false; | ||
127 | } | 127 | } | ||
128 | 128 | | |||
129 | void AbstractClient::setClientShown(bool shown) | 129 | void AbstractClient::setClientShown(bool shown) | ||
130 | { | 130 | { | ||
131 | Q_UNUSED(shown) | 131 | Q_UNUSED(shown) | ||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | MaximizeMode AbstractClient::requestedMaximizeMode() const | | |||
135 | { | | |||
136 | return maximizeMode(); | | |||
137 | } | | |||
138 | | ||||
139 | xcb_timestamp_t AbstractClient::userTime() const | 134 | xcb_timestamp_t AbstractClient::userTime() const | ||
140 | { | 135 | { | ||
141 | return XCB_TIME_CURRENT_TIME; | 136 | return XCB_TIME_CURRENT_TIME; | ||
142 | } | 137 | } | ||
143 | 138 | | |||
144 | void AbstractClient::setSkipSwitcher(bool set) | 139 | void AbstractClient::setSkipSwitcher(bool set) | ||
145 | { | 140 | { | ||
146 | set = rules()->checkSkipSwitcher(set); | 141 | set = rules()->checkSkipSwitcher(set); | ||
▲ Show 20 Lines • Show All 3020 Lines • ▼ Show 20 Line(s) | |||||
3167 | * | 3162 | * | ||
3168 | * Default implementation returns @c false. | 3163 | * Default implementation returns @c false. | ||
3169 | */ | 3164 | */ | ||
3170 | bool AbstractClient::isMinimizable() const | 3165 | bool AbstractClient::isMinimizable() const | ||
3171 | { | 3166 | { | ||
3172 | return false; | 3167 | return false; | ||
3173 | } | 3168 | } | ||
3174 | 3169 | | |||
3170 | /** | ||||
3171 | * Returns @c true if the AbstractClient can be maximized; otherwise @c false. | ||||
3172 | * | ||||
3173 | * Default implementation returns @c false. | ||||
3174 | */ | ||||
3175 | bool AbstractClient::isMaximizable() const | ||||
3176 | { | ||||
3177 | return false; | ||||
3178 | } | ||||
3179 | | ||||
3180 | /** | ||||
3181 | * Returns the currently applied maximize mode. | ||||
3182 | * | ||||
3183 | * Default implementation returns MaximizeRestore. | ||||
3184 | */ | ||||
3185 | MaximizeMode AbstractClient::maximizeMode() const | ||||
3186 | { | ||||
3187 | return MaximizeRestore; | ||||
3188 | } | ||||
3189 | | ||||
3190 | /** | ||||
3191 | * Returns the last requested maximize mode. | ||||
3192 | * | ||||
3193 | * On X11, this method always matches maximizeMode(). On Wayland, it is asynchronous. | ||||
3194 | * | ||||
3195 | * Default implementation matches maximizeMode(). | ||||
3196 | */ | ||||
3197 | MaximizeMode AbstractClient::requestedMaximizeMode() const | ||||
3198 | { | ||||
3199 | return maximizeMode(); | ||||
3200 | } | ||||
3201 | | ||||
3202 | /** | ||||
3203 | * Returns the geometry of the AbstractClient before it was maximized or quick tiled. | ||||
3204 | */ | ||||
3205 | QRect AbstractClient::geometryRestore() const | ||||
3206 | { | ||||
3207 | return m_maximizeGeometryRestore; | ||||
3208 | } | ||||
3209 | | ||||
3210 | /** | ||||
3211 | * Sets the geometry of the AbstractClient before it was maximized or quick tiled to @p rect. | ||||
3212 | */ | ||||
3213 | void AbstractClient::setGeometryRestore(const QRect &rect) | ||||
3214 | { | ||||
3215 | m_maximizeGeometryRestore = rect; | ||||
3216 | } | ||||
3217 | | ||||
3218 | /** | ||||
3219 | * Toggles the maximized state along specified dimensions @p horizontal and @p vertical. | ||||
3220 | * | ||||
3221 | * If @p adjust is @c true, only frame geometry will be updated to match requestedMaximizeMode(). | ||||
3222 | * | ||||
3223 | * Default implementation does nothing. | ||||
3224 | */ | ||||
3225 | void AbstractClient::changeMaximize(bool horizontal, bool vertical, bool adjust) | ||||
3226 | { | ||||
3227 | Q_UNUSED(horizontal) | ||||
3228 | Q_UNUSED(vertical) | ||||
3229 | Q_UNUSED(adjust) | ||||
3230 | } | ||||
3231 | | ||||
3175 | } | 3232 | } |