Dillo
oofposabslikemgr.hh
Go to the documentation of this file.
1 #ifndef __DW_OOFPOSABSLIKEMGR_HH__
2 #define __DW_OOFPOSABSLIKEMGR_HH__
3 
4 #include "oofpositionedmgr.hh"
5 
6 namespace dw {
7 
8 namespace oof {
9 
11 {
12 protected:
13  virtual int containerBoxOffsetX () = 0;
14  virtual int containerBoxOffsetY () = 0;
15  virtual int containerBoxRestWidth () = 0;
16  virtual int containerBoxRestHeight () = 0;
17 
18  inline int containerBoxDiffWidth ()
19  { return containerBoxOffsetX () + containerBoxRestWidth (); }
20  inline int containerBoxDiffHeight ()
22 
23  bool haveExtremesChanged ();
24 
25  void sizeAllocateChildren ();
26 
27  bool posXAbsolute (Child *child);
28  bool posYAbsolute (Child *child);
29 
30  void calcPosAndSizeChildOfChild (Child *child, int refWidth, int refHeight,
31  int *xPtr, int *yPtr, int *widthPtr,
32  int *ascentPtr, int *descentPtr);
33  void calcHPosAndSizeChildOfChild (Child *child, int refWidth,
34  int origChildWidth, int *xPtr,
35  int *widthPtr);
36  void calcVPosAndSizeChildOfChild (Child *child, int refHeight,
37  int origChildAscent, int origChildDescent,
38  int *yPtr, int *ascentPtr,
39  int *descentPtr);
40 
41 
42 public:
45 
46  void calcWidgetRefSize (core::Widget *widget, core::Requisition *size);
47 
48  void getSize (core::Requisition *containerReq, int *oofWidth,
49  int *oofHeight);
50  void getExtremes (core::Extremes *containerExtr,
51  int *oofMinWidth, int *oofMaxWidth);
52 
53  int getAvailWidthOfChild (core::Widget *child, bool forceValue);
54  int getAvailHeightOfChild (core::Widget *child, bool forceValue);
55 };
56 
57 } // namespace oof
58 
59 } // namespace dw
60 
61 #endif // __DW_OOFPOSABSLIKEMGR_HH__
void calcVPosAndSizeChildOfChild(Child *child, int refHeight, int origChildAscent, int origChildDescent, int *yPtr, int *ascentPtr, int *descentPtr)
Definition: oofposabslikemgr.cc:352
virtual int containerBoxRestHeight()=0
int containerBoxDiffHeight()
Definition: oofposabslikemgr.hh:20
virtual int containerBoxRestWidth()=0
bool posYAbsolute(Child *child)
Definition: oofposabslikemgr.cc:252
void getExtremes(core::Extremes *containerExtr, int *oofMinWidth, int *oofMaxWidth)
Definition: oofposabslikemgr.cc:105
void sizeAllocateChildren()
Definition: oofposabslikemgr.cc:45
void getSize(core::Requisition *containerReq, int *oofWidth, int *oofHeight)
Definition: oofposabslikemgr.cc:72
Definition: types.hh:172
virtual int containerBoxOffsetX()=0
The base class of all dillo widgets.
Definition: widget.hh:23
OOFAwareWidget * container
Definition: oofpositionedmgr.hh:26
Definition: types.hh:179
Base class for widgets which can act as container and generator for widgets out of flow...
Definition: oofawarewidget.hh:77
bool posXAbsolute(Child *child)
Definition: oofposabslikemgr.cc:240
void calcWidgetRefSize(core::Widget *widget, core::Requisition *size)
Definition: oofposabslikemgr.cc:40
void calcPosAndSizeChildOfChild(Child *child, int refWidth, int refHeight, int *xPtr, int *yPtr, int *widthPtr, int *ascentPtr, int *descentPtr)
Definition: oofposabslikemgr.cc:264
void calcHPosAndSizeChildOfChild(Child *child, int refWidth, int origChildWidth, int *xPtr, int *widthPtr)
Definition: oofposabslikemgr.cc:292
int getAvailHeightOfChild(core::Widget *child, bool forceValue)
Definition: oofposabslikemgr.cc:199
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
OOFPosAbsLikeMgr(OOFAwareWidget *container)
Definition: oofposabslikemgr.cc:29
virtual int containerBoxOffsetY()=0
int containerBoxDiffWidth()
Definition: oofposabslikemgr.hh:18
~OOFPosAbsLikeMgr()
Definition: oofposabslikemgr.cc:35
int getAvailWidthOfChild(core::Widget *child, bool forceValue)
Definition: oofposabslikemgr.cc:156
Definition: oofpositionedmgr.hh:11
Definition: oofposabslikemgr.hh:10