YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
MultiLabelWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_MULTILABELWIDGET_HPP
2
# define YAPOG_MULTILABELWIDGET_HPP
3
4
# include "
YAPOG/Graphics/Texture.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
# include "
YAPOG/Graphics/Gui/Label.hpp
"
7
# include "
YAPOG/System/IntTypes.hpp
"
8
# include "
YAPOG/Collection/Array.hpp
"
9
# include "
YAPOG/System/Time/UpdateableTimer.hpp
"
10
# include "
YAPOG/Graphics/Gui/LayoutBox.hpp
"
11
12
namespace
yap
13
{
14
class
PartialLayoutManager;
15
class
VerticalLayout;
16
class
YAPOG_LIB
MultiLabelWidget
:
public
BaseWidget
17
{
18
DISALLOW_COPY
(
MultiLabelWidget
);
19
20
public
:
21
22
MultiLabelWidget
(
Padding
ext,
Padding
in,
bool
Extendable);
23
virtual
~
MultiLabelWidget
();
24
25
virtual
String
GetContent ()
const
;
26
virtual
void
AddText (
const
String
& contentArg,
uint
charSize, sf::Color color = DEFAULT_COLOR,
LayoutBox::Align
align = LayoutBox::Align::LEFT);
27
virtual
bool
IsFocusable ()
const
;
28
void
SetShowText (
bool
state);
29
void
Clear ();
30
protected
:
31
void
Refresh ();
32
virtual
bool
HandleOnEvent (
const
GuiEvent
& guiEvent);
33
virtual
Vector2
HandleGetSize ()
const
;
34
virtual
void
HandleMove (
const
Vector2
& offset);
35
virtual
void
HandleScale (
const
Vector2
& factor);
36
37
virtual
void
HandleDraw (
IDrawingContext
& context);
38
39
virtual
void
HandleShow (
bool
isVisible);
40
virtual
void
HandleChangeColor (
const
sf::Color& color);
41
42
virtual
void
HandleUpdate (
const
Time
& dt);
43
44
private
:
45
String
content_
;
46
collection::Array<Label*>
labels_
;
47
uint
currentText_
;
48
VerticalLayout
*
layout_
;
49
PartialLayoutManager
*
layoutManager_
;
50
bool
showText_
;
51
uint
currentSelec_
;
52
53
};
54
}
// namespace yap
55
56
#endif
/* YAPOG_MULTILABELWIDGET_HPP! */
YAPOG
include
YAPOG
Graphics
Gui
MultiLabelWidget.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1