diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-01 00:42:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-01 00:42:33 +0300 |
commit | 70e506eeae6bde07d0af1f5fb2b2d9797b515c58 (patch) | |
tree | afe33a0b4a3e9854de23ad9b0ca265679946878f /src/gui/widgets/layout.h | |
parent | e0803d8066297368d55b297089257a7e857b368a (diff) | |
download | manaplus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.gz manaplus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.bz2 manaplus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.xz manaplus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.zip |
Add horisontal and vertical padding for layout object.
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r-- | src/gui/widgets/layout.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index 523b77f75..49b4815d7 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -182,7 +182,19 @@ class LayoutCell * Sets the padding around the cell content. */ LayoutCell &setPadding(int p) - { mPadding = p; return *this; } + { mHPadding = p; mVPadding = p; return *this; } + + /** + * Sets the vertical padding around the cell content. + */ + LayoutCell &setVPadding(int p) + { mVPadding = p; return *this; } + + /** + * Sets the horisontal padding around the cell content. + */ + LayoutCell &setHPadding(int p) + { mHPadding = p; return *this; } /** * Sets the horizontal alignment of the cell content. @@ -268,7 +280,8 @@ class LayoutCell void reflow(int nx, int ny, int nw, int nh); int mSize[2]; - int mPadding; + int mHPadding; + int mVPadding; int mExtent[2]; int mAlign[2]; int mNbFill[2]; |