summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-11 00:46:34 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-11 00:46:34 +0300
commit632c1797013d8b0a987ab68341b50354afdb1f9d (patch)
treefda998f25feac4696058c8c1a14e430dceac66d6 /src/gui/theme.h
parentee39f800bd1809b25cc7c05238e2fa7abccd8ab3 (diff)
downloadmanaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.gz
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.bz2
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.xz
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.zip
Add support for padding in theme configuration files.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 46d2eee2d..92b2c8878 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -43,8 +43,8 @@ class Skin
{
public:
Skin(ImageRect skin, Image *close, Image *stickyUp, Image *stickyDown,
- const std::string &filePath,
- const std::string &name = "");
+ const std::string &filePath, const std::string &name = "",
+ int padding = 3);
~Skin();
@@ -95,6 +95,9 @@ class Skin
*/
void updateAlpha(float minimumOpacityAllowed = 0.0f);
+ int getPadding()
+ { return mPadding; }
+
int instances;
private:
@@ -104,6 +107,7 @@ class Skin
Image *mCloseImage; /**< Close Button Image */
Image *mStickyImageUp; /**< Sticky Button Image */
Image *mStickyImageDown; /**< Sticky Button Image */
+ int mPadding;
};
class Theme : public Palette, public ConfigListener