Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
oofposrelmgr.hh
Go to the documentation of this file.
1#ifndef __DW_OOFPOSRELMGR_HH__
2#define __DW_OOFPOSRELMGR_HH__
3
4#include "oofpositionedmgr.hh"
5
6namespace dw {
7
8namespace oof {
9
11{
12protected:
14 bool posXAbsolute (Child *child);
15 bool posYAbsolute (Child *child);
16
17 int getChildPosX (Child *child, int refWidth);
18 int getChildPosY (Child *child, int refHeight);
19 int getChildPosDim (core::style::Length posCssValue,
20 core::style::Length negCssValue, int refPos,
21 int refLength);
22
23 inline int getChildPosX (Child *child)
24 { return getChildPosX (child, container->getAvailWidth (true)); }
25 inline int getChildPosY (Child *child)
26 { return getChildPosY (child, container->getAvailHeight (true)); }
27
28public:
31
32 void markSizeChange (int ref);
33 void markExtremesChange (int ref);
35
36 void getSize (core::Requisition *containerReq, int *oofWidth,
37 int *oofHeight);
38 void getExtremes (core::Extremes *containerExtr, int *oofMinWidth,
39 int *oofMaxWidth);
40
42 int getAvailWidthOfChild (core::Widget *child, bool forceValue);
43 int getAvailHeightOfChild (core::Widget *child, bool forceValue);
44};
45
46} // namespace oof
47
48} // namespace dw
49
50#endif // __DW_OOFPOSRELMGR_HH__
The base class of all dillo widgets.
Definition widget.hh:44
int getAvailWidth(bool forceValue)
Return available width including margin/border/padding (extraSpace?), not only the content width.
Definition widget.cc:665
int getAvailHeight(bool forceValue)
Return available height including margin/border/padding (extraSpace?), not only the content height.
Definition widget.cc:705
Base class for widgets which can act as container and generator for widgets out of flow.
int getChildPosDim(core::style::Length posCssValue, core::style::Length negCssValue, int refPos, int refLength)
bool posYAbsolute(Child *child)
int getAvailWidthOfChild(core::Widget *child, bool forceValue)
int getChildPosY(Child *child)
void getExtremes(core::Extremes *containerExtr, int *oofMinWidth, int *oofMaxWidth)
void markExtremesChange(int ref)
bool dealingWithSizeOfChild(core::Widget *child)
void getSize(core::Requisition *containerReq, int *oofWidth, int *oofHeight)
void calcWidgetRefSize(core::Widget *widget, core::Requisition *size)
int getChildPosX(Child *child, int refWidth)
int getChildPosX(Child *child)
int getChildPosY(Child *child, int refHeight)
int getAvailHeightOfChild(core::Widget *child, bool forceValue)
void markSizeChange(int ref)
bool posXAbsolute(Child *child)
int Length
Type for representing all lengths within dw::core::style.
Definition style.hh:429
Dw is in this namespace, or sub namespaces of this one.