provide the strut for the frame's size instead of an area rect

This commit is contained in:
Dana Jansens 2003-01-17 07:12:21 +00:00
parent 940247c3e5
commit 9e8f89b619

View file

@ -75,13 +75,8 @@ public:
//! Destroys the Frame object //! Destroys the Frame object
virtual ~Frame(); virtual ~Frame();
otk::Rect area() const { //! Returns the size of the frame on each side of the client
otk::Rect a(_client->area()); const otk::Strut& size() const { return _size; }
a.setRect(a.x() - _size.left, a.y() - _size.top,
a.width() + _size.left + _size.right,
a.height() + _size.top + _size.bottom);
return a;
}
//! Set the style to decorate the frame with //! Set the style to decorate the frame with
virtual void setStyle(otk::Style *style); virtual void setStyle(otk::Style *style);