Dillo v3.1.1-98-g318d1f14
|
Provided some common implementations of virtual widget methods. More...
Functions | |
bool | getAdjustMinWidth () |
bool | isBlockLevel () |
int | correctAvailWidthOfChild (core::Widget *widget, core::Widget *child, int width, bool forceValue) |
int | correctAvailHeightOfChild (core::Widget *widget, core::Widget *child, int height, bool forceValue) |
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) |
int | applyPerWidth (core::Widget *widget, int containerWidth, core::style::Length perWidth) |
int | applyPerHeight (core::Widget *widget, int containerHeight, core::style::Length perHeight) |
bool | usesMaxGeneratorWidth () |
bool | adjustExtraSpaceWhenCorrectingRequisitionByOOF () |
Provided some common implementations of virtual widget methods.
Once I understand how diamond inheritance works, a class TableCell will be provided, from which SimpleTableCell and AlignedTableCell will inherit, additionaly (in a multiple way).
|
inline |
Definition at line 36 of file tablecell.hh.
Referenced by dw::AlignedTableCell::adjustExtraSpaceWhenCorrectingRequisitionByOOF(), and dw::SimpleTableCell::adjustExtraSpaceWhenCorrectingRequisitionByOOF().
int dw::tablecell::applyPerHeight | ( | core::Widget * | widget, |
int | containerHeight, | ||
core::style::Length | perHeight | ||
) |
Definition at line 121 of file tablecell.cc.
References dw::core::style::multiplyWithPerLength().
Referenced by dw::AlignedTableCell::applyPerHeight(), and dw::SimpleTableCell::applyPerHeight().
int dw::tablecell::applyPerWidth | ( | core::Widget * | widget, |
int | containerWidth, | ||
core::style::Length | perWidth | ||
) |
Definition at line 115 of file tablecell.cc.
References dw::core::style::multiplyWithPerLength().
Referenced by dw::AlignedTableCell::applyPerWidth(), and dw::SimpleTableCell::applyPerWidth().
int dw::tablecell::correctAvailHeightOfChild | ( | core::Widget * | widget, |
core::Widget * | child, | ||
int | height, | ||
bool | forceValue | ||
) |
Definition at line 72 of file tablecell.cc.
Referenced by dw::AlignedTableCell::getAvailHeightOfChild(), and dw::SimpleTableCell::getAvailHeightOfChild().
int dw::tablecell::correctAvailWidthOfChild | ( | core::Widget * | widget, |
core::Widget * | child, | ||
int | width, | ||
bool | forceValue | ||
) |
Definition at line 47 of file tablecell.cc.
References dw::core::Widget::boxDiffWidth(), DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_O, DBG_OBJ_MSGF_O, dw::core::Widget::getAvailWidth(), lout::misc::max(), and lout::misc::min().
Referenced by dw::AlignedTableCell::getAvailWidthOfChild(), and dw::SimpleTableCell::getAvailWidthOfChild().
void dw::tablecell::correctCorrectedExtremesOfChild | ( | core::Widget * | widget, |
core::Widget * | child, | ||
core::Extremes * | extremes, | ||
bool | useAdjustmentWidth | ||
) |
Definition at line 108 of file tablecell.cc.
Referenced by dw::AlignedTableCell::correctExtremesOfChild(), and dw::SimpleTableCell::correctExtremesOfChild().
void dw::tablecell::correctCorrectedRequisitionOfChild | ( | core::Widget * | widget, |
core::Widget * | child, | ||
core::Requisition * | requisition, | ||
void(*)(int, int *, int *) | splitHeightFun, | ||
bool | allowDecreaseWidth, | ||
bool | allowDecreaseHeight | ||
) |
Definition at line 79 of file tablecell.cc.
References dw::core::Requisition::ascent, lout::misc::boolToStr(), dw::core::Widget::boxDiffWidth(), DBG_OBJ_ENTER_O, DBG_OBJ_LEAVE_O, DBG_OBJ_MSGF_O, dw::core::Requisition::descent, dw::core::Widget::getAvailWidth(), lout::misc::max(), lout::misc::min(), and dw::core::Requisition::width.
Referenced by dw::AlignedTableCell::correctRequisitionOfChild(), and dw::SimpleTableCell::correctRequisitionOfChild().
bool dw::tablecell::getAdjustMinWidth | ( | ) |
Definition at line 37 of file tablecell.cc.
References dw::Table::getAdjustTableMinWidth().
Referenced by dw::AlignedTableCell::getAdjustMinWidth(), and dw::SimpleTableCell::getAdjustMinWidth().
bool dw::tablecell::isBlockLevel | ( | ) |
Definition at line 42 of file tablecell.cc.
Referenced by dw::AlignedTableCell::isBlockLevel(), and dw::SimpleTableCell::isBlockLevel().
|
inline |
Definition at line 10 of file tablecell.hh.
Referenced by dw::AlignedTableCell::usesMaxGeneratorWidth(), and dw::SimpleTableCell::usesMaxGeneratorWidth().