Dillo v3.1.1-111-gd4f56d0d
|
#include <oofposabslikemgr.hh>
Public Member Functions | |
OOFPosAbsLikeMgr (OOFAwareWidget *container) | |
~OOFPosAbsLikeMgr () | |
void | calcWidgetRefSize (core::Widget *widget, core::Requisition *size) |
void | getSize (core::Requisition *containerReq, int *oofWidth, int *oofHeight) |
void | getExtremes (core::Extremes *containerExtr, int *oofMinWidth, int *oofMaxWidth) |
int | getAvailWidthOfChild (core::Widget *child, bool forceValue) |
int | getAvailHeightOfChild (core::Widget *child, bool forceValue) |
Public Member Functions inherited from dw::oof::OOFPositionedMgr | |
OOFPositionedMgr (OOFAwareWidget *container) | |
~OOFPositionedMgr () | |
void | sizeAllocateStart (OOFAwareWidget *caller, core::Allocation *allocation) |
void | sizeAllocateEnd (OOFAwareWidget *caller) |
void | containerSizeChangedForChildren () |
void | draw (core::View *view, core::Rectangle *area, core::DrawingContext *context) |
void | markSizeChange (int ref) |
void | markExtremesChange (int ref) |
core::Widget * | getWidgetAtPoint (int x, int y, core::GettingWidgetAtPointContext *context) |
void | addWidgetInFlow (OOFAwareWidget *widget, OOFAwareWidget *parent, int externalIndex) |
int | addWidgetOOF (core::Widget *widget, OOFAwareWidget *generator, int externalIndex) |
void | moveExternalIndices (OOFAwareWidget *generator, int oldStartIndex, int diff) |
void | tellPosition1 (core::Widget *widget, int x, int y) |
Called before tellPosition2, see there for more. | |
void | tellPosition2 (core::Widget *widget, int x, int y) |
Called after tellPosition1. | |
void | tellIncompletePosition1 (core::Widget *generator, core::Widget *widget, int x, int y) |
void | tellIncompletePosition2 (core::Widget *generator, core::Widget *widget, int x, int y) |
bool | containerMustAdjustExtraSpace () |
int | getLeftBorder (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Get the left border for the vertical position of y, for a height of h", based on floats; relative to the *container. | |
int | getRightBorder (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Get the right border for the vertical position of y, for a height of h, based on floats; relative to the container. | |
bool | hasFloatLeft (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Return whether there is a float on the left side. | |
bool | hasFloatRight (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Return whether there is a float on the right side. | |
int | getLeftFloatHeight (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Assuming there is a float on the left side, return the rest height of it. | |
int | getRightFloatHeight (int y, int h, OOFAwareWidget *lastGen, int lastExtIndex) |
Assuming there is a float on the right side, return the rest height of it. | |
int | getClearPosition (OOFAwareWidget *widget) |
Return value is relative to the calling generator (not container). | |
bool | affectsLeftBorder (core::Widget *widget) |
bool | affectsRightBorder (core::Widget *widget) |
bool | mayAffectBordersAtAll () |
bool | dealingWithSizeOfChild (core::Widget *child) |
int | getNumWidgets () |
core::Widget * | getWidget (int i) |
Public Member Functions inherited from dw::oof::OutOfFlowMgr | |
OutOfFlowMgr () | |
virtual | ~OutOfFlowMgr () |
Protected Member Functions | |
virtual int | containerBoxOffsetX ()=0 |
virtual int | containerBoxOffsetY ()=0 |
virtual int | containerBoxRestWidth ()=0 |
virtual int | containerBoxRestHeight ()=0 |
int | containerBoxDiffWidth () |
int | containerBoxDiffHeight () |
bool | haveExtremesChanged () |
void | sizeAllocateChildren () |
bool | posXAbsolute (Child *child) |
bool | posYAbsolute (Child *child) |
void | calcPosAndSizeChildOfChild (Child *child, int refWidth, int refHeight, int *xPtr, int *yPtr, int *widthPtr, int *ascentPtr, int *descentPtr) |
void | calcHPosAndSizeChildOfChild (Child *child, int refWidth, int origChildWidth, int *xPtr, int *widthPtr) |
void | calcVPosAndSizeChildOfChild (Child *child, int refHeight, int origChildAscent, int origChildDescent, int *yPtr, int *ascentPtr, int *descentPtr) |
Protected Member Functions inherited from dw::oof::OOFPositionedMgr | |
bool | getPosLeft (core::Widget *child, int availWidth, int *result) |
bool | getPosRight (core::Widget *child, int availWidth, int *result) |
bool | getPosTop (core::Widget *child, int availHeight, int *result) |
bool | getPosBottom (core::Widget *child, int availHeight, int *result) |
bool | getPosBorder (core::style::Length cssValue, int refLength, int *result) |
bool | allChildrenConsideredForSize () |
bool | allChildrenConsideredForExtremes () |
bool | doChildrenExceedContainer () |
bool | generatorPosDefined (Child *child) |
int | generatorPosX (Child *child) |
int | generatorPosY (Child *child) |
bool | posXDefined (Child *child) |
bool | posYDefined (Child *child) |
Additional Inherited Members | |
Protected Types inherited from dw::oof::OOFPositionedMgr | |
enum | { NOT_ALLOCATED , IN_ALLOCATION , WAS_ALLOCATED } |
Protected Attributes inherited from dw::oof::OOFPositionedMgr | |
OOFAwareWidget * | container |
core::Allocation | containerAllocation |
enum dw::oof::OOFPositionedMgr:: { ... } | containerAllocationState |
lout::container::typed::Vector< Child > * | children |
lout::container::typed::HashTable< lout::object::TypedPointer< dw::core::Widget >, Child > * | childrenByWidget |
Definition at line 10 of file oofposabslikemgr.hh.
dw::oof::OOFPosAbsLikeMgr::OOFPosAbsLikeMgr | ( | OOFAwareWidget * | container | ) |
Definition at line 29 of file oofposabslikemgr.cc.
References DBG_OBJ_CREATE.
dw::oof::OOFPosAbsLikeMgr::~OOFPosAbsLikeMgr | ( | ) |
Definition at line 35 of file oofposabslikemgr.cc.
References DBG_OBJ_DELETE.
|
protected |
Definition at line 292 of file oofposabslikemgr.cc.
References dw::core::style::absLengthVal(), dw::core::Widget::boxDiffWidth(), containerBoxDiffWidth(), containerBoxOffsetX(), containerBoxRestWidth(), DBG_OBJ_MSG, DBG_OBJ_MSGF, dw::oof::OOFPositionedMgr::generatorPosX(), dw::oof::OOFPositionedMgr::getPosLeft(), dw::oof::OOFPositionedMgr::getPosRight(), dw::core::Widget::getStyle(), dw::core::style::isAbsLength(), dw::core::style::isPerLength(), dw::core::style::multiplyWithPerLength(), dw::core::style::perLengthVal_useThisOnlyForDebugging(), dw::oof::OOFPositionedMgr::Child::widget, dw::core::style::StyleAttrs::width, and dw::oof::OOFPositionedMgr::Child::x.
Referenced by calcPosAndSizeChildOfChild(), and getExtremes().
|
protected |
Definition at line 264 of file oofposabslikemgr.cc.
References dw::core::Requisition::ascent, calcHPosAndSizeChildOfChild(), calcVPosAndSizeChildOfChild(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, dw::core::Requisition::descent, dw::core::Widget::sizeRequest(), dw::oof::OOFPositionedMgr::Child::widget, and dw::core::Requisition::width.
Referenced by getSize(), and sizeAllocateChildren().
|
protected |
Definition at line 352 of file oofposabslikemgr.cc.
References dw::core::style::absLengthVal(), dw::core::Widget::boxDiffHeight(), containerBoxDiffHeight(), containerBoxOffsetY(), DBG_OBJ_MSG, DBG_OBJ_MSGF, dw::oof::OOFPositionedMgr::generatorPosY(), dw::oof::OOFPositionedMgr::getPosBottom(), dw::oof::OOFPositionedMgr::getPosTop(), dw::core::Widget::getStyle(), dw::core::style::StyleAttrs::height, dw::core::style::isAbsLength(), dw::core::style::isPerLength(), dw::core::style::multiplyWithPerLength(), dw::core::style::perLengthVal_useThisOnlyForDebugging(), dw::core::splitHeightPreserveAscent(), dw::oof::OOFPositionedMgr::Child::widget, and dw::oof::OOFPositionedMgr::Child::y.
Referenced by calcPosAndSizeChildOfChild().
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 40 of file oofposabslikemgr.cc.
References dw::core::Requisition::ascent, dw::core::Requisition::descent, and dw::core::Requisition::width.
|
inlineprotected |
Definition at line 20 of file oofposabslikemgr.hh.
References containerBoxOffsetY(), and containerBoxRestHeight().
Referenced by calcVPosAndSizeChildOfChild(), getAvailHeightOfChild(), getSize(), and sizeAllocateChildren().
|
inlineprotected |
Definition at line 18 of file oofposabslikemgr.hh.
References containerBoxOffsetX(), and containerBoxRestWidth().
Referenced by calcHPosAndSizeChildOfChild(), getAvailWidthOfChild(), getExtremes(), getSize(), and sizeAllocateChildren().
|
protectedpure virtual |
Implemented in dw::oof::OOFPosAbsMgr, and dw::oof::OOFPosFixedMgr.
Referenced by calcHPosAndSizeChildOfChild(), containerBoxDiffWidth(), and sizeAllocateChildren().
|
protectedpure virtual |
Implemented in dw::oof::OOFPosAbsMgr, and dw::oof::OOFPosFixedMgr.
Referenced by calcVPosAndSizeChildOfChild(), containerBoxDiffHeight(), and sizeAllocateChildren().
|
protectedpure virtual |
Implemented in dw::oof::OOFPosAbsMgr, and dw::oof::OOFPosFixedMgr.
Referenced by containerBoxDiffHeight().
|
protectedpure virtual |
Implemented in dw::oof::OOFPosAbsMgr, and dw::oof::OOFPosFixedMgr.
Referenced by calcHPosAndSizeChildOfChild(), and containerBoxDiffWidth().
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 199 of file oofposabslikemgr.cc.
References dw::core::Widget::calcHeight(), dw::oof::OOFPositionedMgr::container, containerBoxDiffHeight(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSG, DBG_OBJ_MSGF, dw::core::Widget::getAvailHeight(), dw::oof::OOFPositionedMgr::getPosBottom(), dw::oof::OOFPositionedMgr::getPosTop(), dw::core::Widget::getStyle(), dw::core::style::StyleAttrs::height, dw::core::style::LENGTH_AUTO, lout::misc::max(), dw::core::style::StyleAttrs::maxHeight, and dw::core::style::StyleAttrs::minHeight.
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 156 of file oofposabslikemgr.cc.
References dw::core::Widget::calcFinalWidth(), dw::oof::OOFPositionedMgr::container, containerBoxDiffWidth(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSG, DBG_OBJ_MSGF, dw::core::Widget::getAvailWidth(), dw::core::Widget::getMinWidth(), dw::oof::OOFPositionedMgr::getPosLeft(), dw::oof::OOFPositionedMgr::getPosRight(), dw::core::Widget::getStyle(), dw::core::style::LENGTH_AUTO, lout::misc::max(), dw::core::style::StyleAttrs::maxWidth, dw::core::style::StyleAttrs::minWidth, and dw::core::style::StyleAttrs::width.
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 105 of file oofposabslikemgr.cc.
References calcHPosAndSizeChildOfChild(), dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::Child::consideredForExtremes, containerBoxDiffWidth(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::core::Widget::getExtremes(), lout::misc::max(), dw::core::Extremes::maxWidth, dw::core::Extremes::minWidth, dw::oof::OOFPositionedMgr::posXDefined(), and dw::oof::OOFPositionedMgr::Child::widget.
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 72 of file oofposabslikemgr.cc.
References dw::core::Requisition::ascent, calcPosAndSizeChildOfChild(), dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::Child::consideredForSize, dw::oof::OOFPositionedMgr::container, containerBoxDiffHeight(), containerBoxDiffWidth(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::core::Requisition::descent, dw::core::Widget::getAvailHeight(), dw::core::Widget::getAvailWidth(), lout::misc::max(), dw::oof::OOFPositionedMgr::posXDefined(), dw::oof::OOFPositionedMgr::posYDefined(), and dw::core::Requisition::width.
|
protected |
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 240 of file oofposabslikemgr.cc.
References lout::misc::boolToStr(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::core::Widget::getStyle(), dw::core::style::isAbsLength(), dw::core::style::isPerLength(), dw::core::style::StyleAttrs::left, dw::core::style::StyleAttrs::right, and dw::oof::OOFPositionedMgr::Child::widget.
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 252 of file oofposabslikemgr.cc.
References lout::misc::boolToStr(), dw::core::style::StyleAttrs::bottom, DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::core::Widget::getStyle(), dw::core::style::isAbsLength(), dw::core::style::isPerLength(), dw::core::style::StyleAttrs::top, and dw::oof::OOFPositionedMgr::Child::widget.
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 45 of file oofposabslikemgr.cc.
References dw::core::Allocation::ascent, calcPosAndSizeChildOfChild(), dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::container, dw::oof::OOFPositionedMgr::containerAllocation, containerBoxDiffHeight(), containerBoxDiffWidth(), containerBoxOffsetX(), containerBoxOffsetY(), DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, dw::core::Allocation::descent, dw::core::Widget::getAvailHeight(), dw::core::Widget::getAvailWidth(), dw::core::Widget::sizeAllocate(), dw::oof::OOFPositionedMgr::Child::widget, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.