aboutsummaryrefslogtreecommitdiff
path: root/dw/oofpositionedmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-01 23:40:44 +0200
committerSebastian Geerken <devnull@localhost>2014-09-01 23:40:44 +0200
commit42d6755811a82977d70dae3ae6d5e35920f2740f (patch)
tree9d8638c85cbc9674aff6438f95806df31c34fe78 /dw/oofpositionedmgr.hh
parentc29fcb30b1b15b0226e339f5bac481bf98cdcacd (diff)
Some more work on absolute positions.
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);