From 793bcbe5d8308c8c33419f67378df9dc83462445 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jul 2012 02:53:13 +0300 Subject: Add addition options to skin objects. --- src/gui/widgets/window.cpp | 7 +++++++ src/gui/widgets/window.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/gui/widgets') 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(); -- cgit v1.2.3-70-g09d2