YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PictureBox.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_PICTURE_BOX_HPP
2
# define YAPOG_PICTURE_BOX_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
# include "
YAPOG/Graphics/Texture.hpp
"
7
# include "
YAPOG/Graphics/Gui/WidgetBorder.hpp
"
8
# include "
YAPOG/System/Event/Event.hpp
"
9
10
namespace
yap
11
{
12
struct
ISprite;
13
14
class
YAPOG_LIB
PictureBox
:
public
BaseWidget
15
{
16
DISALLOW_COPY
(
PictureBox
);
17
18
public
:
19
PictureBox
();
20
virtual
~
PictureBox
();
21
22
virtual
bool
IsFocusable ()
const
;
23
24
void
SetPicture (
ISprite
* sprite);
25
const
ISprite
& GetPicture ()
const
;
26
27
private
:
28
virtual
Vector2
HandleGetSize ()
const
;
29
30
virtual
void
HandleMove (
const
Vector2
& offset);
31
virtual
void
HandleScale (
const
Vector2
& factor);
32
33
virtual
void
HandleDraw (
IDrawingContext
& context);
34
35
virtual
void
HandleShow (
bool
isVisible);
36
virtual
void
HandleChangeColor (
const
sf::Color& color);
37
38
virtual
void
HandleUpdate (
const
Time
& dt);
39
40
ISprite
*
picture_
;
41
};
42
}
// namespace yap
43
44
#endif
/* YAPOG_PICTURE_BOX_HPP! */
YAPOG
include
YAPOG
Graphics
Gui
PictureBox.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1