Aether
SDL2 based UI Framework for NX
MenuSeparator.hpp
1 #ifndef AETHER_MENUSEPERATOR_HPP
2 #define AETHER_MENUSEPARATOR_HPP
3 
4 #include "Aether/base/Element.hpp"
5 #include "Aether/primary/Rectangle.hpp"
6 
7 namespace Aether {
12  class MenuSeparator : public Element {
13  private:
15  Rectangle * rect;
16 
17  public:
24  MenuSeparator(Colour c = {255, 255, 255, 255});
25 
32  void setW(int w);
33  };
34 };
35 
36 #endif
A rectangle is a texture containing either a normal or rounded rectangle.
Definition: Rectangle.hpp:11
void setW(int w)
Adjusts menu separator width. Adjusting width also rescales the rectangle.
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
Base namespace for all Aether related classes and functions.
A MenuSeparator contains a rectangle with some padding above/below. It is not selectable.
Definition: MenuSeparator.hpp:12
MenuSeparator(Colour c={255, 255, 255, 255})
Construct a new Menu Separator object. Creates a rectangle with width 100px.