YAPOG  0.0.1
Yet Another Pokemon Online Game
MultiLabelWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MULTILABELWIDGET_HPP
2 # define YAPOG_MULTILABELWIDGET_HPP
3 
11 
12 namespace yap
13 {
14  class PartialLayoutManager;
15  class VerticalLayout;
17  {
19 
20  public:
21 
22  MultiLabelWidget (Padding ext, Padding in, bool Extendable);
23  virtual ~MultiLabelWidget ();
24 
25  virtual String GetContent () const;
26  virtual void AddText (const String& contentArg, uint charSize, sf::Color color = DEFAULT_COLOR, LayoutBox::Align align = LayoutBox::Align::LEFT);
27  virtual bool IsFocusable () const;
28  void SetShowText (bool state);
29  void Clear ();
30  protected:
31  void Refresh ();
32  virtual bool HandleOnEvent (const GuiEvent& guiEvent);
33  virtual Vector2 HandleGetSize () const;
34  virtual void HandleMove (const Vector2& offset);
35  virtual void HandleScale (const Vector2& factor);
36 
37  virtual void HandleDraw (IDrawingContext& context);
38 
39  virtual void HandleShow (bool isVisible);
40  virtual void HandleChangeColor (const sf::Color& color);
41 
42  virtual void HandleUpdate (const Time& dt);
43 
44  private:
50  bool showText_;
52 
53  };
54 } // namespace yap
55 
56 #endif /* YAPOG_MULTILABELWIDGET_HPP! */