YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonBasicInfoWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_POKEMONBASICINFOWIDGET_HPP
2 # define YAPOG_CLIENT_POKEMONBASICINFOWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 
8 
9 namespace yap
10 {
11  class PictureBox;
12  class Label;
13  class MultiLabelWidget;
14  class HorizontalLayout;
15  class VerticalLayout;
16 }
17 
18 namespace ycl
19 {
20  class Pokemon;
21 
23  {
24  public:
26 
27  virtual void Init ();
28 
29  virtual void SetPokemon (const Pokemon& pokemon);
30 
33  /*
34  virtual void SetDefaultColor (const sf::Color& color);
35  virtual void AddDrawable (yap::IDrawable& drawable);
36  virtual void AddChild (yap::IWidget& child);
37  virtual yap::IWidget& GetRoot () const;
38  virtual yap::WidgetBorder* GetBorder () const;
39  virtual void SetParent (yap::IWidget& parent);
40  virtual void SetPadding (const yap::Padding& padding);
41  virtual void SetBackground (yap::WidgetBackground& background);
42  virtual void SetBorder (yap::WidgetBorder& border, yap::uint width);
43  virtual void Refresh ();
44  */
45  virtual bool IsFocusable () const;
46  /*
47  virtual void SetFocused (bool state);
48  virtual void SetEnable (bool enable);
49  virtual void Open ();
50  virtual void Close ();
51  */
53 
54  protected:
55  virtual void HandleMove (const yap::Vector2& offset);
56  virtual void HandleScale (const yap::Vector2& factor);
57  virtual void HandleDraw (yap::IDrawingContext& offset);
58  virtual void HandleShow (bool isVisible);
59  virtual void HandleChangeColor (const sf::Color& color);
60  virtual void HandleUpdate (const yap::Time& dt);
61 
62  private:
63  // Labels
70 
71  // PictureBoxes
74 
75  // Layouts
77 
79 
82 
84 
86  };
87 } // namespace ycl
88 
89 #endif // YAPOG_CLIENT_POKEMONBASICINFOWIDGET_HPP