Aether
SDL2 based UI Framework for NX
include
Aether
horizon
list
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
33
Colour
getRectColour
();
34
40
void
setRectColour
(
Colour
c);
41
47
Colour
getTextColour
();
48
54
void
setTextColour
(
Colour
c);
55
};
56
};
57
58
#endif
Aether::Rectangle
A rectangle is a texture containing either a normal or rounded rectangle.
Definition:
Rectangle.hpp:11
Aether::ListHeading
A ListHeading is a small rectangle with text alongside, usually used in a list.
Definition:
ListHeading.hpp:12
Aether::ListHeading::setRectColour
void setRectColour(Colour c)
Set the rectangle colour.
Aether::Text
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition:
Text.hpp:15
Aether::ListHeading::getTextColour
Colour getTextColour()
Get the text colour.
Aether::ListHeading::getRectColour
Colour getRectColour()
Get the rectangle colour.
Aether::Colour
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition:
Colour.hpp:9
Aether::ListHeading::ListHeading
ListHeading(std::string s)
Construct a new List Heading object. Creates rectangle and text associated when list heading is insta...
Aether::Element
Element is the base class to be inherited to form all other types of elements.
Definition:
Element.hpp:18
Aether
Base namespace for all Aether related classes and functions.
Aether::ListHeading::setTextColour
void setTextColour(Colour c)
Set the text colour.
Generated by
1.8.13