diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-30 16:31:35 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-02-01 21:58:20 +0100 |
commit | 14cb9ec795ba524275dfeb8bf0f9f0582523bb66 (patch) | |
tree | 6e1e5e770560e87cf3a0cfc6a88c0bc31b3bbc8a /libs/canvas/widget.cc | |
parent | e616324683b33d7e911745a19cf202d1f609dfc4 (diff) |
canvas::grid starts being able to do its job a little
Diffstat (limited to 'libs/canvas/widget.cc')
-rw-r--r-- | libs/canvas/widget.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/canvas/widget.cc b/libs/canvas/widget.cc index db43a68119..4c98d6651d 100644 --- a/libs/canvas/widget.cc +++ b/libs/canvas/widget.cc @@ -110,6 +110,18 @@ Widget::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const } void +Widget::size_allocate (Rect const & r) +{ + Item::size_allocate (r); + Gtk::Allocation alloc; + alloc.set_x (0); + alloc.set_y (0); + alloc.set_width (r.width()); + alloc.set_height (r.height()); + _widget.size_allocate (alloc); +} + +void Widget::compute_bounding_box () const { std::cerr << "cbbox for widget\n"; |