Aether
SDL2 based UI Framework for NX
ListComment.hpp
1 #ifndef AETHER_LISTCOMMENT_HPP
2 #define AETHER_LISTCOMMENT_HPP
3 
4 #include "Aether/base/Element.hpp"
5 #include "Aether/primary/TextBlock.hpp"
6 
7 namespace Aether {
12  class ListComment : public Element {
13  private:
15  TextBlock * text;
16 
20  void updateElement();
21 
22  public:
28  ListComment(std::string s);
29 
36 
42  void setTextColour(Colour c);
43 
49  void setW(int w);
50  };
51 };
52 
53 #endif
ListComment(std::string s)
Construct a new List Comment object.
Colour getTextColour()
Get the text colour.
int w()
Returns width of element.
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition: Colour.hpp:9
Element is the base class to be inherited to form all other types of elements.
Definition: Element.hpp:18
Base namespace for all Aether related classes and functions.
Element for rendering a multi-line block of text.
Definition: TextBlock.hpp:10
void setW(int w)
Set new width for comment.
void setTextColour(Colour c)
Set the text colour.
A ListComment is a sentence/paragraph usually found under an option describing what it does...
Definition: ListComment.hpp:12