diff options
author | Sebastian Geerken <devnull@localhost> | 2014-12-16 22:21:07 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-12-16 22:21:07 +0100 |
commit | 6eec2b423cfbac418dda85eaffa7fdc395458516 (patch) | |
tree | 6d2c3c8fb4aab57f78f9a72d3ebb404d3db6d5da /dw/oofpositionedmgr.hh | |
parent | b67b3db43024bb72609ae5b1aa3c03a6a38d6637 (diff) |
Positioned elements: some work on extremes.
Diffstat (limited to 'dw/oofpositionedmgr.hh')
-rw-r--r-- | dw/oofpositionedmgr.hh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/dw/oofpositionedmgr.hh b/dw/oofpositionedmgr.hh index 8fa8be7a..04fa1629 100644 --- a/dw/oofpositionedmgr.hh +++ b/dw/oofpositionedmgr.hh @@ -55,9 +55,21 @@ protected: { return getPosBorder (child->getStyle()->bottom, availHeight); } int getPosBorder (core::style::Length cssValue, int refLength); + + bool isHPosComplete (core::Widget *child); + bool isVPosComplete (core::Widget *child); + bool isPosComplete (core::Widget *child); + void calcPosAndSizeChildOfChild (Child *child, int refWidth, int refHeight, - int *x, int *y, int *width, int *ascent, - int *descent); + int *xPtr, int *yPtr, int *widthPtr, + int *ascentPtr, int *descentPtr); + void calcHPosAndSizeChildOfChild (Child *child, int refWidth, + int origChildWidth, int *xPtr, + int *widthPtr); + void calcVPosAndSizeChildOfChild (Child *child, int refHeight, + int origChildAscent, int origChildDescent, + int *yPtr, int *ascentPtr, + int *descentPtr); public: OOFPositionedMgr (OOFAwareWidget *container); |