YAPOG  0.0.1
Yet Another Pokemon Online Game
TrainerCardWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_TRAINERCARDWIDGET_HPP
2 # define YAPOG_CLIENT_TRAINERCARDWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
9  class Label;
10  class PictureBox;
11  class VerticalLayout;
12  class HorizontalLayout;
13 }
14 
15 namespace ycl
16 {
17  class User;
18 
20  {
22 
23  public:
24  TrainerCardWidget (const User& user);
25  virtual ~TrainerCardWidget();
26 
27  void Init ();
28 
29  virtual bool IsFocusable () const;
30 
31  protected:
32  void Open ();
33  virtual yap::Vector2 HandleGetSize () const;
34  virtual void HandleMove (const yap::Vector2& offset);
35  virtual void HandleScale (const yap::Vector2& factor);
36 
37  virtual void HandleDraw (yap::IDrawingContext& context);
38 
39  virtual void HandleShow (bool isVisible);
40  virtual void HandleChangeColor (const sf::Color& color);
41 
42  virtual void HandleUpdate (const yap::Time& dt);
43 
44  virtual bool HandleOnEvent (const yap::GuiEvent& guiEvent);
45 
46  private:
47  const User& user_;
48 
49  // Labels
60 
61  // PïctureBoxes
63 
64  // Layouts
66 
68 
70 
72 
74 
79 
81 
83  };
84 } // namespace ycl
85 
86 #endif // YAPOG_CLIENT_TRAINERCARDWIDGET_HPP