Dillo
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 
6 namespace dw {
7 
8 namespace oof {
9 
11 {
12 protected:
13  void sizeAllocateChildren ();
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 
28 public:
30  ~OOFPosRelMgr ();
31 
32  void markSizeChange (int ref);
33  void markExtremesChange (int ref);
34  void calcWidgetRefSize (core::Widget *widget, core::Requisition *size);
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__
int getAvailWidthOfChild(core::Widget *child, bool forceValue)
Definition: oofposrelmgr.cc:235
int getChildPosX(Child *child)
Definition: oofposrelmgr.hh:23
int getChildPosY(Child *child, int refHeight)
Definition: oofposrelmgr.cc:187
void getExtremes(core::Extremes *containerExtr, int *oofMinWidth, int *oofMaxWidth)
Definition: oofposrelmgr.cc:130
bool posXAbsolute(Child *child)
Definition: oofposrelmgr.cc:160
bool posYAbsolute(Child *child)
Definition: oofposrelmgr.cc:165
int getAvailHeight(bool forceValue)
Definition: widget.cc:670
int getAvailHeightOfChild(core::Widget *child, bool forceValue)
Definition: oofposrelmgr.cc:241
~OOFPosRelMgr()
Definition: oofposrelmgr.cc:36
Definition: types.hh:172
bool dealingWithSizeOfChild(core::Widget *child)
Definition: oofposrelmgr.cc:230
The base class of all dillo widgets.
Definition: widget.hh:23
void markSizeChange(int ref)
Definition: oofposrelmgr.cc:42
OOFAwareWidget * container
Definition: oofpositionedmgr.hh:26
int getChildPosY(Child *child)
Definition: oofposrelmgr.hh:25
Definition: types.hh:179
Base class for widgets which can act as container and generator for widgets out of flow...
Definition: oofawarewidget.hh:77
Definition: oofpositionedmgr.hh:14
void calcWidgetRefSize(core::Widget *widget, core::Requisition *size)
Definition: oofposrelmgr.cc:56
int getChildPosX(Child *child, int refWidth)
Definition: oofposrelmgr.cc:170
void sizeAllocateChildren()
Definition: oofposrelmgr.cc:78
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
Definition: oofposrelmgr.hh:10
void markExtremesChange(int ref)
Definition: oofposrelmgr.cc:52
int getChildPosDim(core::style::Length posCssValue, core::style::Length negCssValue, int refPos, int refLength)
Definition: oofposrelmgr.cc:203
int getAvailWidth(bool forceValue)
Definition: widget.cc:628
void getSize(core::Requisition *containerReq, int *oofWidth, int *oofHeight)
Definition: oofposrelmgr.cc:100
int Length
Type for representing all lengths within dw::core::style.
Definition: style.hh:428
OOFPosRelMgr(OOFAwareWidget *container)
Definition: oofposrelmgr.cc:30
Definition: oofpositionedmgr.hh:11