diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-14 01:11:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-14 01:11:51 +0000 |
| commit | 424d476f7cd0ccc2def4f14119cd4fc3171d0159 (patch) | |
| tree | ee72ec083b880a8a2beb19e8ba95389c7f79d82c /src/Window.h | |
| parent | 24f9448c2efc6daf97a4061cfd6c62da2980c0ad (diff) | |
added first revision of the BestFit placement type.
moved RowSmart placement type out of placeWindow() to its own function like bestFit. Will continue moving other placement types into their own functions.
Diffstat (limited to 'src/Window.h')
| -rw-r--r-- | src/Window.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Window.h b/src/Window.h index d6e9f809..b2f76242 100644 --- a/src/Window.h +++ b/src/Window.h @@ -32,6 +32,7 @@ #include "BaseDisplay.h" #include "Timer.h" #include "Windowmenu.h" +#include "Geometry.h" // forward declaration class OpenboxWindow; @@ -286,6 +287,25 @@ public: inline const unsigned int &getTitleHeight(void) const { return frame.title_h; } + inline const Point getOrigin() const { + return Point(frame.x, frame.y); + } + inline const Point getClientOrigin() const { + return Point(client.x, client.y); + } + inline const Size getSize() const { + return Size(frame.width, frame.height); + } + inline const Size getClientSize() const { + return Size(client.width, client.height); + } + inline const Rect getArea() const { + return Rect(frame.x, frame.y, frame.width, frame.height); + } + inline const Rect getClientArea() const { + return Rect(client.x, client.y, client.width, client.height); + } + inline void setWindowNumber(int n) { window_number = n; } Bool validateClient(void); |
