Changeset View
Changeset View
Standalone View
Standalone View
toplevel.h
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | 2 | KWin - the KDE window manager | ||
3 | This file is part of the KDE project. | 3 | This file is part of the KDE project. | ||
4 | 4 | | |||
5 | Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> | 5 | Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> | ||
6 | Copyright (C) 2019 Vlad Zahorodnii <vladzzag@gmail.com> | ||||
6 | 7 | | |||
7 | This program is free software; you can redistribute it and/or modify | 8 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | 10 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | 11 | (at your option) any later version. | ||
11 | 12 | | |||
12 | This program is distributed in the hope that it will be useful, | 13 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
▲ Show 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 302 | public: | |||
311 | * | 312 | * | ||
312 | * For X11 clients, this method returns server-side geometry of the Toplevel. | 313 | * For X11 clients, this method returns server-side geometry of the Toplevel. | ||
313 | * | 314 | * | ||
314 | * For Wayland clients, this method returns rectangle that the main surface | 315 | * For Wayland clients, this method returns rectangle that the main surface | ||
315 | * occupies on the screen, in global screen coordinates. | 316 | * occupies on the screen, in global screen coordinates. | ||
316 | */ | 317 | */ | ||
317 | virtual QRect bufferGeometry() const = 0; | 318 | virtual QRect bufferGeometry() const = 0; | ||
318 | /** | 319 | /** | ||
319 | * Returns the extents of invisible portions in the pixmap. | | |||
320 | * | | |||
321 | * An X11 pixmap may contain invisible space around the actual contents of the | | |||
322 | * client. That space is reserved for server-side decoration, which we usually | | |||
323 | * want to skip when building contents window quads. | | |||
324 | * | | |||
325 | * Default implementation returns a margins object with all margins set to 0. | | |||
326 | */ | | |||
327 | virtual QMargins bufferMargins() const; | | |||
328 | /** | | |||
329 | * Returns the geometry of the Toplevel, excluding invisible portions, e.g. | 320 | * Returns the geometry of the Toplevel, excluding invisible portions, e.g. | ||
330 | * server-side and client-side drop shadows, etc. | 321 | * server-side and client-side drop shadows, etc. | ||
331 | */ | 322 | */ | ||
332 | QRect frameGeometry() const; | 323 | QRect frameGeometry() const; | ||
333 | /** | 324 | /** | ||
334 | * Returns the extents of the server-side decoration. | 325 | * Returns the extents of the server-side decoration. | ||
335 | * | 326 | * | ||
336 | * Note that the returned margins object will have all margins set to 0 if | 327 | * Note that the returned margins object will have all margins set to 0 if | ||
▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines |