summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-03 01:31:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-04 23:57:02 +0300
commitc52472123eb7847b5cee6b1898c42ef25a5466dd (patch)
treea7ca7f0db7b347ed54726fab11f5a01feecb6c8f /src/gui/widgets/scrollarea.h
parent26ec3807ac2f3ab7ffdb9e04a209385ac39bd6e3 (diff)
downloadmv-c52472123eb7847b5cee6b1898c42ef25a5466dd.tar.gz
mv-c52472123eb7847b5cee6b1898c42ef25a5466dd.tar.bz2
mv-c52472123eb7847b5cee6b1898c42ef25a5466dd.tar.xz
mv-c52472123eb7847b5cee6b1898c42ef25a5466dd.zip
Add support for themed background for scrollarea.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r--src/gui/widgets/scrollarea.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h
index 335d810b2..d2032b379 100644
--- a/src/gui/widgets/scrollarea.h
+++ b/src/gui/widgets/scrollarea.h
@@ -46,14 +46,15 @@ class ScrollArea : public gcn::ScrollArea, public gcn::WidgetListener
* Constructor that takes no content. Needed for use with the DropDown
* class.
*/
- ScrollArea(bool opaque = true);
+ ScrollArea(bool opaque = true, const std::string &skin = "");
/**
* Constructor.
*
* @param content the initial content to show in the scroll area
*/
- ScrollArea(gcn::Widget *content, bool opaque = true);
+ ScrollArea(gcn::Widget *content, bool opaque = true,
+ const std::string &skin = "");
/**
* Destructor. Also deletes the content.
@@ -128,7 +129,7 @@ class ScrollArea : public gcn::ScrollArea, public gcn::WidgetListener
/**
* Initializes the scroll area.
*/
- void init();
+ void init(std::string skinName);
void drawButton(gcn::Graphics *graphics, BUTTON_DIR dir);
void drawUpButton(gcn::Graphics *graphics);