summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-30 02:53:13 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-30 22:00:10 +0300
commit793bcbe5d8308c8c33419f67378df9dc83462445 (patch)
treead03064158e791e4831c5f67e174babeba66a1f7 /src/gui/widgets
parent03d04b42b9578616715a4483b0ef581f1fb11fd8 (diff)
downloadmv-793bcbe5d8308c8c33419f67378df9dc83462445.tar.gz
mv-793bcbe5d8308c8c33419f67378df9dc83462445.tar.bz2
mv-793bcbe5d8308c8c33419f67378df9dc83462445.tar.xz
mv-793bcbe5d8308c8c33419f67378df9dc83462445.zip
Add addition options to skin objects.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp7
-rw-r--r--src/gui/widgets/window.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index d2ba03e07..f84376f2d 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -1022,3 +1022,10 @@ gcn::Rectangle Window::getWindowArea()
getWidth() - getPadding() * 2,
getHeight() - getPadding() * 2);
}
+
+int Window::getOption(std::string name)
+{
+ if (mSkin)
+ return mSkin->getOption(name);
+ return 0;
+}
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index 6e6fcdaf0..ee49f2852 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -399,6 +399,8 @@ class Window : public gcn::Window, gcn::WidgetListener
void setCaptionFont(gcn::Font *font)
{ mCaptionFont = font; }
+ int getOption(std::string name);
+
protected:
bool canMove();