1 #ifndef AETHER_MESSAGEBOX_HPP 2 #define AETHER_MESSAGEBOX_HPP 4 #include "Aether/horizon/button/BorderButton.hpp" 5 #include "Aether/primary/Rectangle.hpp" 6 #include "Aether/Overlay.hpp" 40 void repositionButtons();
45 void resizeElements();
96 void addTopButton(std::string s, std::function<
void()> f);
void addTopButton(std::string s, std::function< void()> f)
Add button to top rectangle.
A rectangle is a texture containing either a normal or rounded rectangle.
Definition: Rectangle.hpp:11
void setTextColour(Colour c)
Set the text colour object.
MessageBox()
Construct a new Message Box object.
void setLineColour(Colour c)
Set the line colour.
void addRightButton(std::string s, std::function< void()> f)
Add button to bottom right rectangle.
void addLeftButton(std::string s, std::function< void()> f)
Add button to bottom left rectangle.
void setRectangleColour(Colour c)
Set the rectangle colour.
int w()
Returns width of element.
Stores RGBA values representing a colour. Each component can be within the range 0 to 255 (inclusive)...
Definition: Colour.hpp:9
Element is the base class to be inherited to form all other types of elements.
Definition: Element.hpp:18
int h()
Returns height of element.
Base namespace for all Aether related classes and functions.
void emptyBody()
Deletes the element (and it's children!) used as body.
void setBody(Element *e)
Set the body element Does nothing if a body has been set alreadu!
An object representing an overlay.
Definition: Overlay.hpp:14
void setBodySize(int w, int h)
Set the body size.
A "MessageBox" is a box presented in the middle of the screen, usually containing a few yes/no/cancel...
Definition: MessageBox.hpp:16
void getBodySize(int *w, int *h)
Get the body size.