Aether
SDL2 based UI Framework for NX
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 
50 
56  void setCircleColour(Colour c);
57 
64 
70  void setTickColour(Colour c);
71  };
72 };
73 
74 #endif
void setCircleColour(Colour c)
Set the circle element's colour.
Colour getTickColour()
Get the tick's text colour.
void setTickColour(Colour c)
Set the tick's text colour.
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
void setSize(unsigned int s)
Set the diamater of the circle element.
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition: Text.hpp:15
Tick(int x, int y, unsigned int d)
Construct a new Tick object.
unsigned int size()
Get the diameter of the circle element.
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition: Colour.hpp:9
int x()
Returns x-coordinate of element.
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 an ellipse.
Definition: Ellipse.hpp:11
Colour getCircleColour()
Get the circle element's colour.
int y()
Returns y-coordinate of element.