3 Copyright 2007-2008 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 #include "gui/game/TextCell.h"
20 #include "gui/game/TextCellDecorator_i.h"
21 #include "gui/game/EventManager.h"
24 using namespace fail::gui::game
;
26 TextCell::TextCell( Container
* pParent
, const std::string
& Text
) :
30 m_pDecorator
= getTheme()->newTextCellDecorator( this );
33 void TextCell::buildSceneGraph( const Pointer
< scenegraph::RenderPass
>& pRP
)
35 m_pDecorator
->buildSceneGraph( m_pFrame
, m_pRenderable
);
38 void TextCell::calcMinMax()
40 m_pDecorator
->calcMinMax();
43 void TextCell::layout()
45 m_pDecorator
->layout();