Aether
SDL2 based UI Framework for NX
include
Aether
horizon
button
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
44
Drawable
*
renderHighlightBG
();
45
49
Drawable
*
renderHighlight
();
50
54
Drawable
*
renderSelection
();
55
};
56
};
57
58
#endif
Aether::Text
Element for rendering a single line of text. It can optionally scroll when overflowing.
Definition:
Text.hpp:15
Aether::HelpButton::setColour
void setColour(Colour c)
Set the colour of the question mark.
Aether::HelpButton
HelpButton is a round button displaying a question mark as seen in Horizon.
Definition:
HelpButton.hpp:11
Aether::HelpButton::renderSelection
Drawable * renderSelection()
Render selection layer.
Aether::Colour
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition:
Colour.hpp:9
Aether::Drawable
Stores either a surface or texture which can be drawn on screen by providing a renderer to render()...
Definition:
Drawable.hpp:22
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::HelpButton::colour
Colour colour()
Get the colour of the question mark.
Aether::HelpButton::renderHighlight
Drawable * renderHighlight()
Render highlight border.
Aether::HelpButton::renderHighlightBG
Drawable * renderHighlightBG()
Render highlight background.
Aether::HelpButton::HelpButton
HelpButton(int x, int y, int d, std::function< void()> f)
Creates the texture.
Aether::Element::y
int y()
Returns y-coordinate of element.
Generated by
1.8.13