23#include "../lout/debug.hh"
68 DBG_OBJ_ENTER (
"resize", 0,
"AlignedTableCell::getAvailWidthOfChild",
69 "%p, %s", child, forceValue ?
"true" :
"false");
81 DBG_OBJ_ENTER (
"resize", 0,
"AlignedTableCell::getAvailHeightOfChild",
82 "%p, %s", child, forceValue ?
"true" :
"false");
95 void (*splitHeightFun) (
int,
98 bool allowDecreaseWidth,
99 bool allowDecreaseHeight)
101 DBG_OBJ_ENTER (
"resize", 0,
"AlignedTableCell::correctRequisitionOfChild",
110 allowDecreaseHeight);
114 allowDecreaseHeight);
121 bool useAdjustmentWidth)
123 DBG_OBJ_ENTER (
"resize", 0,
"AlignedTableCell::correctExtremesOfChild",
124 "%p, %d (%d) / %d (%d)",
161 word =
words->getRef (wordIndex);
193 for (i = 0; i < wordIndex; i++) {
194 word =
words->getRef (i);
199 if (
words->size () > 0) {
int applyPerHeight(int containerHeight, core::style::Length perHeight)
void correctExtremesOfChild(Widget *child, core::Extremes *extremes, bool useAdjustmentWidth)
int getAvailWidthOfChild(Widget *child, bool forceValue)
void setMaxValue(int maxValue, int value)
bool usesMaxGeneratorWidth()
int applyPerWidth(int containerWidth, core::style::Length perWidth)
void correctRequisitionOfChild(Widget *child, core::Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
int wordWrap(int wordIndex, bool wrapAll)
int getAvailHeightOfChild(Widget *child, bool forceValue)
AlignedTableCell(AlignedTableCell *ref, bool limitTextWidth)
bool adjustExtraSpaceWhenCorrectingRequisitionByOOF()
Base widget for all textblocks (sub classes of dw::Textblock), which are positioned vertically and al...
void setRefTextblock(AlignedTextblock *ref)
lout::misc::NotSoSimpleVector< Word > * words
virtual int wordWrap(int wordIndex, bool wrapAll)
int getAvailHeightOfChild(core::Widget *child, bool forceValue)
int getAvailWidthOfChild(core::Widget *child, bool forceValue)
Computes the content width available of a child widget.
void registerName(const char *className, int *classId)
This method must be called in the constructor for the sub class.
#define DBG_OBJ_CREATE(klass)
#define DBG_OBJ_ENTER(aspect, prio, funname, fmt,...)
int Length
Type for representing all lengths within dw::core::style.
int applyPerHeight(core::Widget *widget, int containerHeight, core::style::Length perHeight)
int correctAvailHeightOfChild(core::Widget *widget, core::Widget *child, int height, bool forceValue)
bool adjustExtraSpaceWhenCorrectingRequisitionByOOF()
int applyPerWidth(core::Widget *widget, int containerWidth, core::style::Length perWidth)
int correctAvailWidthOfChild(core::Widget *widget, core::Widget *child, int width, bool forceValue)
bool usesMaxGeneratorWidth()
void correctCorrectedRequisitionOfChild(core::Widget *widget, core::Widget *child, core::Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
void correctCorrectedExtremesOfChild(core::Widget *widget, core::Widget *child, core::Extremes *extremes, bool useAdjustmentWidth)
Dw is in this namespace, or sub namespaces of this one.
const char * boolToStr(bool b)
core::style::Style * style