Changeset View
Changeset View
Standalone View
Standalone View
client.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | namespace KWin | 46 | namespace KWin | ||
47 | { | 47 | { | ||
48 | 48 | | |||
49 | 49 | | |||
50 | /** | 50 | /** | ||
51 | * @brief Defines Predicates on how to search for a Client. | 51 | * @brief Defines Predicates on how to search for a Client. | ||
52 | * | 52 | * | ||
53 | * Used by Workspace::findClient. | 53 | * Used by Workspace::findClient. | ||
54 | */ | 54 | **/ | ||
55 | enum class Predicate { | 55 | enum class Predicate { | ||
56 | WindowMatch, | 56 | WindowMatch, | ||
57 | WrapperIdMatch, | 57 | WrapperIdMatch, | ||
58 | FrameIdMatch, | 58 | FrameIdMatch, | ||
59 | InputIdMatch | 59 | InputIdMatch | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | class KWIN_EXPORT Client | 62 | class KWIN_EXPORT Client | ||
63 | : public AbstractClient | 63 | : public AbstractClient | ||
64 | { | 64 | { | ||
65 | Q_OBJECT | 65 | Q_OBJECT | ||
66 | /** | 66 | /** | ||
67 | * By how much the window wishes to grow/shrink at least. Usually QSize(1,1). | 67 | * By how much the window wishes to grow/shrink at least. Usually QSize(1,1). | ||
68 | * MAY BE DISOBEYED BY THE WM! It's only for information, do NOT rely on it at all. | 68 | * MAY BE DISOBEYED BY THE WM! It's only for information, do NOT rely on it at all. | ||
69 | * The value is evaluated each time the getter is called. | 69 | * The value is evaluated each time the getter is called. | ||
70 | * Because of that no changed signal is provided. | 70 | * Because of that no changed signal is provided. | ||
71 | */ | 71 | **/ | ||
72 | Q_PROPERTY(QSize basicUnit READ basicUnit) | 72 | Q_PROPERTY(QSize basicUnit READ basicUnit) | ||
73 | /** | 73 | /** | ||
74 | * A client can block compositing. That is while the Client is alive and the state is set, | 74 | * A client can block compositing. That is while the Client is alive and the state is set, | ||
75 | * Compositing is suspended and is resumed when there are no Clients blocking compositing any | 75 | * Compositing is suspended and is resumed when there are no Clients blocking compositing any | ||
76 | * more. | 76 | * more. | ||
77 | * | 77 | * | ||
78 | * This is actually set by a window property, unfortunately not used by the target application | 78 | * This is actually set by a window property, unfortunately not used by the target application | ||
79 | * group. For convenience it's exported as a property to the scripts. | 79 | * group. For convenience it's exported as a property to the scripts. | ||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 89 | public: | |||
242 | void toggleShade(); | 242 | void toggleShade(); | ||
243 | void showContextHelp() override; | 243 | void showContextHelp() override; | ||
244 | void cancelShadeHoverTimer(); | 244 | void cancelShadeHoverTimer(); | ||
245 | void checkActiveModal(); | 245 | void checkActiveModal(); | ||
246 | StrutRect strutRect(StrutArea area) const; | 246 | StrutRect strutRect(StrutArea area) const; | ||
247 | StrutRects strutRects() const; | 247 | StrutRects strutRects() const; | ||
248 | bool hasStrut() const override; | 248 | bool hasStrut() const override; | ||
249 | 249 | | |||
250 | /* | 250 | /** | ||
251 | * If shown is true the client is mapped and raised, if false | 251 | * If shown is true the client is mapped and raised, if false | ||
252 | * the client is unmapped and hidden, this function is called | 252 | * the client is unmapped and hidden, this function is called | ||
253 | * when the tabbing group of the client switches its visible | 253 | * when the tabbing group of the client switches its visible | ||
254 | * client. | 254 | * client. | ||
255 | */ | 255 | **/ | ||
256 | void setClientShown(bool shown) override; | 256 | void setClientShown(bool shown) override; | ||
257 | 257 | | |||
258 | /** | 258 | /** | ||
259 | * Whether or not the window has a strut that expands through the invisible area of | 259 | * Whether or not the window has a strut that expands through the invisible area of | ||
260 | * an xinerama setup where the monitors are not the same resolution. | 260 | * an xinerama setup where the monitors are not the same resolution. | ||
261 | */ | 261 | **/ | ||
262 | bool hasOffscreenXineramaStrut() const; | 262 | bool hasOffscreenXineramaStrut() const; | ||
263 | 263 | | |||
264 | // Decorations <-> Effects | 264 | // Decorations <-> Effects | ||
265 | QRect decorationRect() const; | 265 | QRect decorationRect() const; | ||
266 | 266 | | |||
267 | QRect transparentRect() const; | 267 | QRect transparentRect() const; | ||
268 | 268 | | |||
269 | bool isClientSideDecorated() const; | 269 | bool isClientSideDecorated() const; | ||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 350 | protected: | |||
375 | //in between objects as compared to simple function | 375 | //in between objects as compared to simple function | ||
376 | //calls | 376 | //calls | ||
377 | Q_SIGNALS: | 377 | Q_SIGNALS: | ||
378 | void clientManaging(KWin::Client*); | 378 | void clientManaging(KWin::Client*); | ||
379 | void clientFullScreenSet(KWin::Client*, bool, bool); | 379 | void clientFullScreenSet(KWin::Client*, bool, bool); | ||
380 | 380 | | |||
381 | /** | 381 | /** | ||
382 | * Emitted whenever the Client want to show it menu | 382 | * Emitted whenever the Client want to show it menu | ||
383 | */ | 383 | **/ | ||
384 | void showRequest(); | 384 | void showRequest(); | ||
385 | /** | 385 | /** | ||
386 | * Emitted whenever the Client's menu is closed | 386 | * Emitted whenever the Client's menu is closed | ||
387 | */ | 387 | **/ | ||
388 | void menuHidden(); | 388 | void menuHidden(); | ||
389 | /** | 389 | /** | ||
390 | * Emitted whenever the Client's menu is available | 390 | * Emitted whenever the Client's menu is available | ||
391 | **/ | 391 | **/ | ||
392 | void appMenuAvailable(); | 392 | void appMenuAvailable(); | ||
393 | /** | 393 | /** | ||
394 | * Emitted whenever the Client's menu is unavailable | 394 | * Emitted whenever the Client's menu is unavailable | ||
395 | */ | 395 | **/ | ||
396 | void appMenuUnavailable(); | 396 | void appMenuUnavailable(); | ||
397 | 397 | | |||
398 | /** | 398 | /** | ||
399 | * Emitted whenever the Client's block compositing state changes. | 399 | * Emitted whenever the Client's block compositing state changes. | ||
400 | **/ | 400 | **/ | ||
401 | void blockingCompositingChanged(KWin::Client *client); | 401 | void blockingCompositingChanged(KWin::Client *client); | ||
402 | void clientSideDecoratedChanged(); | 402 | void clientSideDecoratedChanged(); | ||
403 | 403 | | |||
▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines |