1
/********************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 2009 Nikhil Marathe <nsm.nikhil@gmail.com>
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
*********************************************************************/
44
UseRatio, // uses m_ratio
45
UseGeometry, // uses current geometry of children
46
Equal // distribute equally
49
Tile(Client *c, const QRect& area);
50
Tile(const Tile& orig);
52
void setGeometry(const QRect& area);
53
void setGeometry(int x, int y, int w, int h);
55
void resize(const QRect area);
57
void restorePreviousGeometry();
63
// :| the float datatype interferes with naming
67
bool minimized() const;
68
bool floating() const;
69
bool ignoreGeometry() const;
70
QRect geometry() const;
71
Client* client() const;
73
void dumpTile(const QString& indent = "") const;
86
// before tiling was enabled, if any
93
inline QRect Tile::geometry() const
98
inline Client* Tile::client() const
103
inline bool Tile::floating() const
109
* should be respected by all geometry modifying methods.
110
* It returns true if the Tile is 'out' of the layout,
111
* due to being minimized, floating or for some other reason.
113
inline bool Tile::ignoreGeometry() const
115
return minimized() || floating();
118
inline void Tile::setGeometry(const QRect& area)
120
setGeometry(area.x(), area.y(), area.width(), area.height());