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