provide the strut for the frame's size instead of an area rect
This commit is contained in:
parent
940247c3e5
commit
9e8f89b619
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue