From 424d476f7cd0ccc2def4f14119cd4fc3171d0159 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 14 Apr 2002 01:11:51 +0000 Subject: 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. --- src/Window.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/Window.h') 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); -- cgit v1.2.3