aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-23 12:35:35 +0200
committerSebastian Geerken <devnull@localhost>2014-09-23 12:35:35 +0200
commit43298239a35f6b75dfc3cb7e392deafb0bb1528c (patch)
tree905f535c5e1b5d0f7635a91c6fcc71fbe396162b /dw/widget.hh
parentafbbb4180fd2f4ab7bc534811ebfc0ede00d8a93 (diff)
More work on Widget::extraSpace.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh11
1 files changed, 10 insertions, 1 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index 46fdf856..88219764 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -187,7 +187,10 @@ protected:
/**
* \brief Space around the margin box. Allocation is extraSpace +
- * margin + border + padding + contents;
+ * margin + border + padding + contents.
+ *
+ * See also dw::core::Widget::calcExtraSpace and
+ * dw::core::Widget::calcExtraSpaceImpl.
*/
style::Box extraSpace;
@@ -275,6 +278,8 @@ protected:
*/
virtual void getExtremesImpl (Extremes *extremes) = 0;
+ virtual void calcExtraSpaceImpl ();
+
/**
* \brief See \ref dw-widget-sizes.
*/
@@ -427,6 +432,8 @@ public:
void getExtremes (Extremes *extremes);
void sizeAllocate (Allocation *allocation);
+ void calcExtraSpace ();
+
int getAvailWidth (bool forceValue);
int getAvailHeight (bool forceValue);
virtual bool getAdjustMinWidth () { return Widget::adjustMinWidth; }
@@ -489,6 +496,8 @@ public:
void scrollTo (HPosition hpos, VPosition vpos,
int x, int y, int width, int height);
+ void getMarginArea (int *xMar, int *yMar, int *widthMar, int *heightMar);
+ void getBorderArea (int *xBor, int *yBor, int *widthBor, int *heightBor);
void getPaddingArea (int *xPad, int *yPad, int *widthPad, int *heightPad);
/**