Aether
SDL2 based UI Framework for NX
include
Aether
horizon
Tick.hpp
1
#ifndef AETHER_TICK_HPP
2
#define AETHER_TICK_HPP
3
4
#include "Aether/primary/Ellipse.hpp"
5
#include "Aether/primary/Text.hpp"
6
7
namespace
Aether
{
13
class
Tick
:
public
Element
{
14
private
:
16
Ellipse
* circle;
18
Text
* tick;
19
20
public
:
28
Tick
(
int
x
,
int
y
,
unsigned
int
d);
29
35
unsigned
int
size
();
36
42
void
setSize
(
unsigned
int
s);
43
49
Colour
getCircleColour
();
50
56
void
setCircleColour
(
Colour
c);
57
63
Colour
getTickColour
();
64
70
void
setTickColour
(
Colour
c);
71
};
72
};
73
74
#endif
Aether::Tick::setCircleColour
void setCircleColour(Colour c)
Set the circle element's colour.
Aether::Tick::getTickColour
Colour getTickColour()
Get the tick's text colour.
Aether::Tick::setTickColour
void setTickColour(Colour c)
Set the tick's text colour.
Aether::Tick
A Tick is an element that looks the same as the tick shown in Horizon - a coloured circle with a tick...
Definition:
Tick.hpp:13
Aether::Tick::setSize
void setSize(unsigned int s)
Set the diamater of the circle element.
Aether::Text
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition:
Text.hpp:15
Aether::Tick::Tick
Tick(int x, int y, unsigned int d)
Construct a new Tick object.
Aether::Tick::size
unsigned int size()
Get the diameter of the circle element.
Aether::Colour
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition:
Colour.hpp:9
Aether::Element::x
int x()
Returns x-coordinate of element.
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::Ellipse
Element for rendering an ellipse.
Definition:
Ellipse.hpp:11
Aether::Tick::getCircleColour
Colour getCircleColour()
Get the circle element's colour.
Aether::Element::y
int y()
Returns y-coordinate of element.
Generated by
1.8.13