1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2011 Arthur Arlt <a.arlt@stud.uni-heidelberg.de>
7
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
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*********************************************************************/
21
#ifndef KWIN_OUTLINE_H
22
#define KWIN_OUTLINE_H
25
#include <QtCore/QRect>
26
#include <QtCore/QVector>
31
* @short This class is used to show the outline of a given geometry.
33
* The class renders an outline by using four windows. One for each border of
34
* the geometry. It is possible to replace the outline with an effect. If an
35
* effect is available the effect will be used, otherwise the outline will be
36
* rendered by using the X implementation.
47
* Set the outline geometry.
48
* To show the outline use @link showOutline.
49
* @param outlineGeometry The geometry of the outline to be shown
52
void setGeometry(const QRect &outlineGeometry);
55
* Shows the outline of a window using either an effect or the X implementation.
56
* To stop the outline process use @link hideOutline.
62
* Shows the outline for the given @p outlineGeometry.
63
* This is the same as setOutlineGeometry followed by showOutline directly.
64
* To stop the outline process use @link hideOutline.
65
* @param outlineGeometry The geometry of the outline to be shown
68
void show(const QRect &outlineGeometry);
71
* Hides shown outline.
77
* Return outline window ids
78
* @return The window ids created to represent the outline
80
QVector<Window> windowIds() const;
84
* Show the window outline using the X implementation
89
* Hide previously shown outline used the X implementation
94
Window m_rightOutline;
95
Window m_bottomOutline;
97
QRect m_outlineGeometry;