Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 3110 Lines • ▼ Show 20 Line(s) | |||||
3111 | 3111 | | |||
3112 | // this helper returns proper size even if the window is shaded | 3112 | // this helper returns proper size even if the window is shaded | ||
3113 | // see also the comment in X11Client::setGeometry() | 3113 | // see also the comment in X11Client::setGeometry() | ||
3114 | QSize AbstractClient::adjustedSize() const | 3114 | QSize AbstractClient::adjustedSize() const | ||
3115 | { | 3115 | { | ||
3116 | return sizeForClientSize(clientSize()); | 3116 | return sizeForClientSize(clientSize()); | ||
3117 | } | 3117 | } | ||
3118 | 3118 | | |||
3119 | /** | ||||
3120 | * Returns @c true if the AbstractClient can be shown in full screen mode; otherwise @c false. | ||||
3121 | * | ||||
3122 | * Default implementation returns @c false. | ||||
3123 | */ | ||||
3124 | bool AbstractClient::isFullScreenable() const | ||||
3125 | { | ||||
3126 | return false; | ||||
3127 | } | ||||
3128 | | ||||
3129 | /** | ||||
3130 | * Returns @c true if the AbstractClient is currently being shown in full screen mode; otherwise @c false. | ||||
3131 | * | ||||
3132 | * A client in full screen mode occupies the entire screen with no window frame around it. | ||||
3133 | * | ||||
3134 | * Default implementation returns @c false. | ||||
3135 | */ | ||||
3136 | bool AbstractClient::isFullScreen() const | ||||
3137 | { | ||||
3138 | return false; | ||||
3139 | } | ||||
3140 | | ||||
3141 | /** | ||||
3142 | * Returns whether requests initiated by the user to enter or leave full screen mode are honored. | ||||
3143 | * | ||||
3144 | * Default implementation returns @c false. | ||||
3145 | */ | ||||
3146 | bool AbstractClient::userCanSetFullScreen() const | ||||
3147 | { | ||||
3148 | return false; | ||||
3149 | } | ||||
3150 | | ||||
3151 | /** | ||||
3152 | * Asks the AbstractClient to enter or leave full screen mode. | ||||
3153 | * | ||||
3154 | * Default implementation does nothing. | ||||
3155 | * | ||||
3156 | * @param set @c true if the AbstractClient has to be shown in full screen mode, otherwise @c false | ||||
3157 | * @param user @c true if the request is initiated by the user, otherwise @c false | ||||
3158 | */ | ||||
3159 | void AbstractClient::setFullScreen(bool set, bool user) | ||||
3160 | { | ||||
3161 | Q_UNUSED(set) | ||||
3162 | Q_UNUSED(user) | ||||
3163 | } | ||||
3164 | | ||||
3119 | } | 3165 | } |