add Rectangle::size_request() which returns actual rectangle size, not bounding box

This commit is contained in:
Paul Davis 2018-11-21 14:06:47 -05:00
parent a9c2e2f7e5
commit 35a9bcc409
3 changed files with 11 additions and 0 deletions

View file

@ -161,6 +161,13 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
render_children (area, context);
}
void
Rectangle::size_request (double& w, double& h) const
{
w = _rect.width();
h = _rect.height();
}
void
Rectangle::compute_bounding_box () const
{