aboutsummaryrefslogtreecommitdiff
path: root/dw/oofpositionedmgr.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/oofpositionedmgr.hh')
-rw-r--r--dw/oofpositionedmgr.hh23
1 files changed, 13 insertions, 10 deletions
diff --git a/dw/oofpositionedmgr.hh b/dw/oofpositionedmgr.hh
index 07660547..f4ded844 100644
--- a/dw/oofpositionedmgr.hh
+++ b/dw/oofpositionedmgr.hh
@@ -17,16 +17,19 @@ private:
bool haveExtremesChanged ();
void sizeAllocateChildren ();
- inline int getAbsPosLeft (core::Widget *child, int availWidth)
- { return getAbsPosBorder (child->getStyle()->left, availWidth); }
- inline int getAbsPosRight (core::Widget *child, int availWidth)
- { return getAbsPosBorder (child->getStyle()->right, availWidth); }
- inline int getAbsPosTop (core::Widget *child, int availHeight)
- { return getAbsPosBorder (child->getStyle()->top, availHeight); }
- inline int getAbsPosBottom (core::Widget *child, int availHeight)
- { return getAbsPosBorder (child->getStyle()->bottom, availHeight); }
-
- int getAbsPosBorder (core::style::Length cssValue, int refLength);
+ inline int getPosLeft (core::Widget *child, int availWidth)
+ { return getPosBorder (child->getStyle()->left, availWidth); }
+ inline int getPosRight (core::Widget *child, int availWidth)
+ { return getPosBorder (child->getStyle()->right, availWidth); }
+ inline int getPosTop (core::Widget *child, int availHeight)
+ { return getPosBorder (child->getStyle()->top, availHeight); }
+ inline int getPosBottom (core::Widget *child, int availHeight)
+ { return getPosBorder (child->getStyle()->bottom, availHeight); }
+
+ int getPosBorder (core::style::Length cssValue, int refLength);
+ void calcPosAndSizeChildOfChild (core::Widget *child, int refWidth,
+ int refHeight, int *x, int *y, int *width,
+ int *ascent, int *descent);
public:
OOFPositionedMgr (Textblock *containingBlock);