diff options
author | Sebastian Geerken <devnull@localhost> | 2014-05-30 15:08:16 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-05-30 15:08:16 +0200 |
commit | 1a3983870885abaf0cb73cc72e46a43f7f289a10 (patch) | |
tree | fb61296259f5e0a8d5e60f7b3c38420b9e57ce49 /dw/style.hh | |
parent | dbb857df40f41a11a46622c2c561400bd029994c (diff) |
Added Widget::extraSpace (not used yet).
Diffstat (limited to 'dw/style.hh')
-rw-r--r-- | dw/style.hh | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/dw/style.hh b/dw/style.hh index 2cc258bf..da214ca1 100644 --- a/dw/style.hh +++ b/dw/style.hh @@ -564,22 +564,14 @@ public: = borderStyle.left = val; } inline int boxOffsetX () - { - return margin.left + borderWidth.left + padding.left; - } + { return margin.left + borderWidth.left + padding.left; } inline int boxRestWidth () - { - return margin.right + borderWidth.right + padding.right; - } + { return margin.right + borderWidth.right + padding.right; } inline int boxDiffWidth () { return boxOffsetX () + boxRestWidth (); } inline int boxOffsetY () - { - return margin.top + borderWidth.top + padding.top; - } + { return margin.top + borderWidth.top + padding.top; } inline int boxRestHeight () - { - return margin.bottom + borderWidth.bottom + padding.bottom; - } + { return margin.bottom + borderWidth.bottom + padding.bottom; } inline int boxDiffHeight () { return boxOffsetY () + boxRestHeight (); } inline bool hasBackground () |