diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-30 19:27:16 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-30 19:27:16 +0100 |
commit | b1e34672ecbe28c18462cd1b02ba0b2cfc7f772b (patch) | |
tree | 8812e9c6b89b4099129d00e8a123ea1f501943de /dw/oofposrelmgr.hh | |
parent | 76544475ea4a8578351a818068657a9bd6cd5a06 (diff) |
Relative positions, part 1.
Diffstat (limited to 'dw/oofposrelmgr.hh')
-rw-r--r-- | dw/oofposrelmgr.hh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dw/oofposrelmgr.hh b/dw/oofposrelmgr.hh new file mode 100644 index 00000000..6f712a84 --- /dev/null +++ b/dw/oofposrelmgr.hh @@ -0,0 +1,32 @@ +#ifndef __DW_OOFPOSRELMGR_HH__ +#define __DW_OOFPOSRELMGR_HH__ + +#include "oofpositionedmgr.hh" + +namespace dw { + +namespace oof { + +class OOFPosRelMgr: public OOFPositionedMgr +{ +protected: + bool isReference (core::Widget *widget); + int containerBoxOffsetX (); + int containerBoxOffsetY (); + int containerBoxRestWidth (); + int containerBoxRestHeight (); + +public: + OOFPosRelMgr (OOFAwareWidget *container); + ~OOFPosRelMgr (); + + void markSizeChange (int ref); + void markExtremesChange (int ref); + void calcWidgetRefSize (core::Widget *widget, core::Requisition *size); +}; + +} // namespace oof + +} // namespace dw + +#endif // __DW_OOFPOSRELMGR_HH__ |