diff options
Diffstat (limited to 'dw/simpletablecell.cc')
-rw-r--r-- | dw/simpletablecell.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dw/simpletablecell.cc b/dw/simpletablecell.cc index 2621c348..02f92db6 100644 --- a/dw/simpletablecell.cc +++ b/dw/simpletablecell.cc @@ -76,6 +76,37 @@ int SimpleTableCell::getAvailHeightOfChild (Widget *child, bool forceValue) return height; } +void SimpleTableCell::correctRequisitionOfChild (Widget *child, + core::Requisition *requisition, + void (*splitHeightFun) (int, + int*, + int*)) +{ + DBG_OBJ_ENTER ("resize", 0, "SimpleTableCell/correctRequisitionOfChild", + "%p, %d * (%d + %d), ...", child, requisition->width, + requisition->ascent, requisition->descent); + + Textblock::correctRequisitionOfChild (child, requisition, splitHeightFun); + tablecell::correctCorrectedRequisitionOfChild (this, child, requisition, + splitHeightFun); + + DBG_OBJ_LEAVE (); +} + +void SimpleTableCell::correctExtremesOfChild (Widget *child, + core::Extremes *extremes) +{ + DBG_OBJ_ENTER ("resize", 0, "SimpleTableCell/correctExtremesOfChild", + "%p, %d (%d) / %d (%d)", + child, extremes->minWidth, extremes->minWidthIntrinsic, + extremes->maxWidth, extremes->maxWidthIntrinsic); + + Textblock::correctExtremesOfChild (child, extremes); + tablecell::correctCorrectedExtremesOfChild (this, child, extremes); + + DBG_OBJ_LEAVE (); +} + int SimpleTableCell::applyPerWidth (int containerWidth, core::style::Length perWidth) { |