summaryrefslogtreecommitdiff
path: root/libs/canvas/canvas
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-24 23:17:38 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-24 23:17:38 +0100
commitcce1c58198daf4d09b9fc916a257332813033a9d (patch)
treeb16800664a3f3d7f2877de0298915ab5fe3e4cfb /libs/canvas/canvas
parent8432a7732920daa3e759f02d4ad31f338e184b6f (diff)
This wasn't supposed to be pushed to master.
Revert "add basic data members and methods for adding an explicit size allocation for Canvas::Item" This reverts commit d1c1d8df614672b00a9835ae04566b12d21be697.
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r--libs/canvas/canvas/item.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/libs/canvas/canvas/item.h b/libs/canvas/canvas/item.h
index a480ec38a1..517b4401ba 100644
--- a/libs/canvas/canvas/item.h
+++ b/libs/canvas/canvas/item.h
@@ -136,18 +136,7 @@ public:
ScrollGroup* scroll_parent() const { return _scroll_parent; }
- /* item implementations can override this if they need to */
- virtual Rect size_request() const { return bounding_box (true); }
- 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
- allocated bounding box (if there is one) in preference to the
- one that would naturally be computed by the item.
- */
- Rect bounding_box (bool for_own_purposes = false) const;
- Rect allocation() const { return _allocation; }
-
+ Rect bounding_box () const;
Coord height() const;
Coord width() const;
@@ -292,7 +281,6 @@ protected:
mutable Rect _bounding_box;
/** true if _bounding_box might be out of date, false if its definitely not */
mutable bool _bounding_box_dirty;
- Rect _allocation;
/* XXX: this is a bit grubby */
std::map<std::string, void *> _data;