Aether
SDL2 based UI Framework for NX
HelpButton.hpp
1 #ifndef AETHER_HELPBUTTON_HPP
2 #define AETHER_HELPBUTTON_HPP
3 
4 #include "Aether/primary/Text.hpp"
5 
6 namespace Aether {
11  class HelpButton : public Element {
12  private:
14  Text * text;
15 
16  public:
25  HelpButton(int x, int y, int d, std::function<void()> f);
26 
32  Colour colour();
33 
39  void setColour(Colour c);
40 
45 
50 
55  };
56 };
57 
58 #endif
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition: Text.hpp:15
void setColour(Colour c)
Set the colour of the question mark.
HelpButton is a round button displaying a question mark as seen in Horizon.
Definition: HelpButton.hpp:11
Drawable * renderSelection()
Render selection layer.
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition: Colour.hpp:9
Stores either a surface or texture which can be drawn on screen by providing a renderer to render()...
Definition: Drawable.hpp:22
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.
Colour colour()
Get the colour of the question mark.
Drawable * renderHighlight()
Render highlight border.
Drawable * renderHighlightBG()
Render highlight background.
HelpButton(int x, int y, int d, std::function< void()> f)
Creates the texture.
int y()
Returns y-coordinate of element.