diff options
author | Sebastian Geerken <devnull@localhost> | 2016-04-23 12:36:04 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-04-23 12:36:04 +0200 |
commit | cd616fc93a5adb072d282f7afbdbe4b057f9d6fc (patch) | |
tree | 8073831411ce59ce6ca9dc430bb7506d0ba18467 /dw/alignedtablecell.cc | |
parent | eb40226852118f6b24b594c307a6e12b369ceb04 (diff) |
GROWS: new options allowDecreaseWidth and allowDecreaseHeight for size correction.
Diffstat (limited to 'dw/alignedtablecell.cc')
-rw-r--r-- | dw/alignedtablecell.cc | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/dw/alignedtablecell.cc b/dw/alignedtablecell.cc index 25fca497..22c29549 100644 --- a/dw/alignedtablecell.cc +++ b/dw/alignedtablecell.cc @@ -23,6 +23,8 @@ #include "../lout/debug.hh" #include <stdio.h> +using namespace lout; + namespace dw { int AlignedTableCell::CLASS_ID = -1; @@ -92,16 +94,24 @@ void AlignedTableCell::correctRequisitionOfChild (Widget *child, *requisition, void (*splitHeightFun) (int, int*, - int*)) + int*), + bool allowDecreaseWidth, + bool allowDecreaseHeight) { DBG_OBJ_ENTER ("resize", 0, "AlignedTableCell::correctRequisitionOfChild", - "%p, %d * (%d + %d), ...", child, requisition->width, - requisition->ascent, requisition->descent); + "%p, %d * (%d + %d), ..., %s, %s", child, requisition->width, + requisition->ascent, requisition->descent, + misc::boolToStr (allowDecreaseWidth), + misc::boolToStr (allowDecreaseHeight)); AlignedTextblock::correctRequisitionOfChild (child, requisition, - splitHeightFun); + splitHeightFun, + allowDecreaseWidth, + allowDecreaseHeight); tablecell::correctCorrectedRequisitionOfChild (this, child, requisition, - splitHeightFun); + splitHeightFun, + allowDecreaseWidth, + allowDecreaseHeight); DBG_OBJ_LEAVE (); } |