YAPOG  0.0.1
Yet Another Pokemon Online Game
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"
9 
10 namespace yap
11 {
12  struct ISprite;
13 
15  {
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 
41  };
42 } // namespace yap
43 
44 #endif /* YAPOG_PICTURE_BOX_HPP! */