Aether
SDL2 based UI Framework for NX
ListHeading.hpp
1 #ifndef AETHER_LISTHEADING_HPP
2 #define AETHER_LISTHEADING_HPP
3 
4 #include "Aether/base/Element.hpp"
5 #include "Aether/primary/Rectangle.hpp"
6 #include "Aether/primary/Text.hpp"
7 
8 namespace Aether {
12  class ListHeading : public Element {
13  private:
15  Rectangle * rect;
17  Text * text;
18 
19  public:
26  ListHeading(std::string s);
27 
34 
40  void setRectColour(Colour c);
41 
48 
54  void setTextColour(Colour c);
55  };
56 };
57 
58 #endif
A rectangle is a texture containing either a normal or rounded rectangle.
Definition: Rectangle.hpp:11
A ListHeading is a small rectangle with text alongside, usually used in a list.
Definition: ListHeading.hpp:12
void setRectColour(Colour c)
Set the rectangle colour.
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition: Text.hpp:15
Colour getTextColour()
Get the text colour.
Colour getRectColour()
Get the rectangle colour.
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition: Colour.hpp:9
ListHeading(std::string s)
Construct a new List Heading object. Creates rectangle and text associated when list heading is insta...
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.
void setTextColour(Colour c)
Set the text colour.