diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-12 12:38:52 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-12 12:38:52 +0200 |
commit | 3590571500d5e00bdb65e70ce777735a26318a39 (patch) | |
tree | 562d3178c6124a301a75d5ddc4009245e207556e /dw/oofawarewidget.hh | |
parent | a42d8297257c9d68062811467a3bd2aaab7c16ff (diff) |
OOFAwareWidget: moving some stuff from Textblock to OOFAwareWidget.
Diffstat (limited to 'dw/oofawarewidget.hh')
-rw-r--r-- | dw/oofawarewidget.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh index bf13958d..37b8eeb3 100644 --- a/dw/oofawarewidget.hh +++ b/dw/oofawarewidget.hh @@ -2,6 +2,7 @@ #define __DW_OOFAWAREWIDGET_HH__ #include "core.hh" +#include "outofflowmgr.hh" namespace dw { @@ -16,6 +17,18 @@ namespace oof { */ class OOFAwareWidget: public core::Widget { +protected: + enum { OOFM_FLOATS, OOFM_ABSOLUTE, OOFM_FIXED, NUM_OOFM }; + enum { PARENT_REF_OOFM_BITS = 2, + PARENT_REF_OOFM_MASK = (1 << PARENT_REF_OOFM_BITS) - 1 }; + +public: + OOFAwareWidget *oofContainer[NUM_OOFM]; + oof::OutOfFlowMgr *outOfFlowMgr[NUM_OOFM]; + + inline OutOfFlowMgr *searchOutOfFlowMgr (int oofmIndex) + { return oofContainer[oofmIndex] ? + oofContainer[oofmIndex]->outOfFlowMgr[oofmIndex] : NULL; } public: virtual void borderChanged (int y, core::Widget *vloat); virtual void oofSizeChanged (bool extremesChanged); |