YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
LoginWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_LOGINWIDGET_HPP
2
# define YAPOG_CLIENT_LOGINWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
# include "
YAPOG/Graphics/Gui/VerticalLayout.hpp
"
7
# include "
YAPOG/Graphics/Gui/TextBoxWidget.hpp
"
8
# include "
YAPOG/Graphics/Gui/HorizontalLayout.hpp
"
9
10
namespace
ycl
11
{
12
class
LoginWidget
:
public
yap::BaseWidget
13
{
14
DISALLOW_COPY
(
LoginWidget
);
15
16
public
:
17
LoginWidget
();
18
virtual
~LoginWidget
();
19
20
void
Init
();
21
24
yap::TextBoxWidget
&
GetLoginTextBox
();
25
yap::TextBoxWidget
&
GetPasswordTextBox
();
27
30
void
SetErrorText
(
const
yap::String
& error);
32
33
virtual
bool
IsFocusable
()
const
;
34
protected
:
35
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
36
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
37
virtual
void
HandleDraw
(
yap::IDrawingContext
& context);
38
virtual
void
HandleShow
(
bool
isVisible);
39
virtual
void
HandleChangeColor
(
const
sf::Color& color);
40
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
41
42
private
:
45
yap::VerticalLayout
widgetBox_
;
46
yap::HorizontalLayout
loginBox_
;
47
yap::HorizontalLayout
passwordBox_
;
49
52
yap::Label
loginLabel_
;
53
yap::Label
passwordLabel_
;
54
yap::Label
errorLabel_
;
56
59
yap::TextBoxWidget
loginTextBox_
;
60
yap::TextBoxWidget
passwordTextBox_
;
62
};
63
}
// namespace ycl
64
65
#endif // YAPOG_CLIENT_LOGINWIDGET_HPP
YAPOG.Client
include
Gui
LoginWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1