summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-17 07:12:21 +0000
committerDana Jansens <danakj@orodu.net>2003-01-17 07:12:21 +0000
commit9e8f89b61976424c7d1c6e6a37498da74b7850ce (patch)
treee43ea6a6ccc2bbbb5b176a7e5b0eb67909da0170 /src
parent940247c3e5639751e6bd5de0fab27af17a889d25 (diff)
provide the strut for the frame's size instead of an area rect
Diffstat (limited to 'src')
-rw-r--r--src/frame.hh9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/frame.hh b/src/frame.hh
index 5da88902..3937afc2 100644
--- a/src/frame.hh
+++ b/src/frame.hh
@@ -75,13 +75,8 @@ public:
//! Destroys the Frame object
virtual ~Frame();
- otk::Rect area() const {
- otk::Rect a(_client->area());
- a.setRect(a.x() - _size.left, a.y() - _size.top,
- a.width() + _size.left + _size.right,
- a.height() + _size.top + _size.bottom);
- return a;
- }
+ //! Returns the size of the frame on each side of the client
+ const otk::Strut& size() const { return _size; }
//! Set the style to decorate the frame with
virtual void setStyle(otk::Style *style);