summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-01 00:42:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-01 00:42:33 +0300
commit70e506eeae6bde07d0af1f5fb2b2d9797b515c58 (patch)
treeafe33a0b4a3e9854de23ad9b0ca265679946878f /src/gui/widgets/layout.h
parente0803d8066297368d55b297089257a7e857b368a (diff)
downloadplus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.gz
plus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.bz2
plus-70e506eeae6bde07d0af1f5fb2b2d9797b515c58.tar.xz
plus-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.h17
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];