Renamed RenderContext into RenderPass.
[fail.git] / src / gui / game / ScrollArea.h
blob30cc2884a2f7915945e4a1aaac50c1a527b9cb4f
1 /*
2 Fail game engine
3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_GUI_GAME_SCROLLAREA_H_
20 #define FAIL_GUI_GAME_SCROLLAREA_H_
22 #include "core/core.h"
23 #include "gui/game/gui-game_export.h"
24 #include "SimpleContainer.h"
25 #include "Slider.h"
26 #include <string>
28 namespace fail { namespace gui { namespace game
30 class FLGUI_GAME_EXPORT ScrollArea : public SimpleContainer
32 public:
33 ScrollArea( Container* pParent_ );
35 virtual void addChild( const Pointer< Widget >& pChild_ );
36 virtual void buildSceneGraph( const Pointer< scenegraph::RenderPass >& pRP );
37 virtual void calcMinMax();
38 virtual void layout();
40 private:
41 Pointer< Slider > m_pHSlider;
42 Pointer< Slider > m_pVSlider;
43 Pointer< Widget > m_pContent;
45 }}}
47 #endif