diff options
author | Sebastian Geerken <devnull@localhost> | 2016-01-09 13:17:50 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-01-09 13:17:50 +0100 |
commit | c9199eabe605b94cbfc47ac356a651cc086a6747 (patch) | |
tree | d2b6a1a4714422015dfa941c006d1196eddfd557 /dw/widget.cc | |
parent | c714e1a14e82a7b45195f3d37c9edb2cb82c7107 (diff) |
SRDOP: Extend Widget::calcExtraSpace and Widget::calcExtraSpaceImpl by references.
Diffstat (limited to 'dw/widget.cc')
-rw-r--r-- | dw/widget.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dw/widget.cc b/dw/widget.cc index 6f021d72..005fa976 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -606,7 +606,7 @@ void Widget::sizeRequest (Requisition *requisition, int numPos, } if (callImpl) { - calcExtraSpace (true); + calcExtraSpace (true, numPos, references, x, y); /** \todo Check requisition == &(this->requisition) and do what? */ sizeRequestImpl (requisition, numPos, references, x, y); this->requisition = *requisition; @@ -1044,7 +1044,7 @@ void Widget::getExtremes (Extremes *extremes, int numPos, Widget **references, } if (callImpl) { - calcExtraSpace (false); + calcExtraSpace (false, numPos, references, x, y); // For backward compatibility (part 1/2): extremes->minWidthIntrinsic = extremes->maxWidthIntrinsic = -1; @@ -1084,12 +1084,13 @@ void Widget::getExtremes (Extremes *extremes, int numPos, Widget **references, * If `vertical` is false, only horizontal dimensions are calculated. (This is * used for extremes.) */ -void Widget::calcExtraSpace (bool vertical) +void Widget::calcExtraSpace (bool vertical, int numPos, Widget **references, + int *x, int *y) { DBG_OBJ_ENTER0 ("resize", 0, "calcExtraSpace"); extraSpace.top = extraSpace.right = extraSpace.bottom = extraSpace.left = 0; - calcExtraSpaceImpl (vertical); + calcExtraSpaceImpl (vertical, numPos, references, x, y); if (vertical) { DBG_OBJ_SET_NUM ("extraSpace.top", extraSpace.top); @@ -1649,7 +1650,8 @@ void Widget::sizeAllocateImpl (Allocation *allocation) * If `vertical` is false, only horizontal dimensions are calculated. (This is * used for extremes.) */ -void Widget::calcExtraSpaceImpl (bool vertical) +void Widget::calcExtraSpaceImpl (bool vertical, int numPos, Widget **references, + int *x, int *y) { } |