YAPOG  0.0.1
Yet Another Pokemon Online Game
MenuItem.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MENU_ITEM_HPP
2 # define YAPOG_MENU_ITEM_HPP
3 
4 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
11  class YAPOG_LIB MenuItem : public BaseWidget
12  {
14 
15  public:
18 
19  MenuItem ();
20  MenuItem (bool isScalable);
21  virtual ~MenuItem ();
22  virtual void Do ();
23  virtual bool IsFocusable () const;
24  String GetContent () const;
25  void SetContent (String content);
26 
27  protected:
28  virtual void Refresh ();
29  virtual Vector2 HandleGetSize () const;
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  private:
43 
44  };
45 } // namespace yap
46 
47 #endif /* YAPOG_MENU_ITEM_HPP! */