Dillo v3.1.1-119-g140d9ebd
|
#include <oofposrelmgr.hh>
Public Member Functions | |
OOFPosRelMgr (OOFAwareWidget *container) | |
~OOFPosRelMgr () | |
void | markSizeChange (int ref) |
void | markExtremesChange (int ref) |
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) |
bool | dealingWithSizeOfChild (core::Widget *child) |
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) |
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 () |
int | getNumWidgets () |
core::Widget * | getWidget (int i) |
Public Member Functions inherited from dw::oof::OutOfFlowMgr | |
OutOfFlowMgr () | |
virtual | ~OutOfFlowMgr () |
Protected Member Functions | |
void | sizeAllocateChildren () |
bool | posXAbsolute (Child *child) |
bool | posYAbsolute (Child *child) |
int | getChildPosX (Child *child, int refWidth) |
int | getChildPosY (Child *child, int refHeight) |
int | getChildPosDim (core::style::Length posCssValue, core::style::Length negCssValue, int refPos, int refLength) |
int | getChildPosX (Child *child) |
int | getChildPosY (Child *child) |
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 oofposrelmgr.hh.
dw::oof::OOFPosRelMgr::OOFPosRelMgr | ( | OOFAwareWidget * | container | ) |
Definition at line 30 of file oofposrelmgr.cc.
References DBG_OBJ_CREATE.
dw::oof::OOFPosRelMgr::~OOFPosRelMgr | ( | ) |
Definition at line 36 of file oofposrelmgr.cc.
References DBG_OBJ_DELETE.
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 56 of file oofposrelmgr.cc.
References dw::core::Requisition::ascent, dw::oof::OOFAwareWidget::CLASS_ID, DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::core::Requisition::descent, lout::identity::IdentifiableObject::instanceOf(), dw::core::Widget::sizeRequest(), and dw::core::Requisition::width.
|
virtual |
Reimplemented from dw::oof::OOFPositionedMgr.
Definition at line 230 of file oofposrelmgr.cc.
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 241 of file oofposrelmgr.cc.
References lout::misc::notImplemented().
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 235 of file oofposrelmgr.cc.
References lout::misc::notImplemented().
|
protected |
Definition at line 203 of file oofposrelmgr.cc.
References DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, DBG_OBJ_MSGF, and dw::oof::OOFPositionedMgr::getPosBorder().
Referenced by getChildPosX(), and getChildPosY().
|
inlineprotected |
Definition at line 23 of file oofposrelmgr.hh.
References dw::oof::OOFPositionedMgr::container, dw::core::Widget::getAvailWidth(), and getChildPosX().
|
protected |
Definition at line 170 of file oofposrelmgr.cc.
References dw::core::style::StyleAttrs::boxDiffWidth(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::oof::OOFPositionedMgr::generatorPosX(), getChildPosDim(), dw::core::Widget::getStyle(), dw::core::style::StyleAttrs::left, dw::core::style::StyleAttrs::right, dw::oof::OOFPositionedMgr::Child::widget, and dw::oof::OOFPositionedMgr::Child::x.
Referenced by getChildPosX(), getExtremes(), getSize(), and sizeAllocateChildren().
|
inlineprotected |
Definition at line 25 of file oofposrelmgr.hh.
References dw::oof::OOFPositionedMgr::container, dw::core::Widget::getAvailHeight(), and getChildPosY().
|
protected |
Definition at line 187 of file oofposrelmgr.cc.
References dw::core::style::StyleAttrs::bottom, dw::core::style::StyleAttrs::boxDiffHeight(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::oof::OOFPositionedMgr::generatorPosY(), getChildPosDim(), dw::core::Widget::getStyle(), dw::core::style::StyleAttrs::top, dw::oof::OOFPositionedMgr::Child::widget, and dw::oof::OOFPositionedMgr::Child::y.
Referenced by getChildPosY(), getSize(), and sizeAllocateChildren().
|
virtual |
Implements dw::oof::OutOfFlowMgr.
Definition at line 130 of file oofposrelmgr.cc.
References dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::Child::consideredForExtremes, getChildPosX(), 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 100 of file oofposrelmgr.cc.
References dw::core::Requisition::ascent, dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::Child::consideredForSize, DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, dw::core::Requisition::descent, getChildPosX(), getChildPosY(), lout::misc::max(), dw::oof::OOFPositionedMgr::posXDefined(), dw::oof::OOFPositionedMgr::posYDefined(), dw::core::Widget::sizeRequest(), dw::oof::OOFPositionedMgr::Child::widget, and dw::core::Requisition::width.
|
virtual |
Reimplemented from dw::oof::OOFPositionedMgr.
Definition at line 52 of file oofposrelmgr.cc.
|
virtual |
Reimplemented from dw::oof::OOFPositionedMgr.
Definition at line 42 of file oofposrelmgr.cc.
References dw::oof::OOFPositionedMgr::children, DBG_OBJ_ENTER, DBG_OBJ_LEAVE, DBG_OBJ_MSGF, dw::oof::OOFPositionedMgr::Child::externalIndex, dw::oof::OOFPositionedMgr::Child::generator, and dw::oof::OOFAwareWidget::widgetRefSizeChanged().
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 160 of file oofposrelmgr.cc.
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 165 of file oofposrelmgr.cc.
|
protectedvirtual |
Implements dw::oof::OOFPositionedMgr.
Definition at line 78 of file oofposrelmgr.cc.
References dw::core::Allocation::ascent, dw::core::Requisition::ascent, dw::oof::OOFPositionedMgr::children, dw::oof::OOFPositionedMgr::containerAllocation, DBG_OBJ_ENTER0, DBG_OBJ_LEAVE, dw::core::Allocation::descent, dw::core::Requisition::descent, getChildPosX(), getChildPosY(), dw::core::Widget::sizeAllocate(), dw::core::Widget::sizeRequest(), dw::oof::OOFPositionedMgr::Child::widget, dw::core::Allocation::width, dw::core::Requisition::width, dw::core::Allocation::x, and dw::core::Allocation::y.