diff options
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/item.h | 2 | ||||
-rw-r--r-- | libs/canvas/canvas/widget.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/canvas/canvas/item.h b/libs/canvas/canvas/item.h index a480ec38a1..02f84a62ee 100644 --- a/libs/canvas/canvas/item.h +++ b/libs/canvas/canvas/item.h @@ -138,7 +138,7 @@ public: /* item implementations can override this if they need to */ virtual Rect size_request() const { return bounding_box (true); } - void size_allocate (Rect const&); + virtual void size_allocate (Rect const&); /** bounding box is the public API to get the size of the item. If @param for_own_purposes is false, then it will return the diff --git a/libs/canvas/canvas/widget.h b/libs/canvas/canvas/widget.h index c1f6dc1f36..4c00592403 100644 --- a/libs/canvas/canvas/widget.h +++ b/libs/canvas/canvas/widget.h @@ -37,6 +37,8 @@ public: void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const; void compute_bounding_box () const; + void size_allocate (Rect const &); + CairoWidget const & get () const { return _widget; } |