Aether
SDL2 based UI Framework for NX
Ellipse.hpp
1 #ifndef AETHER_ELLIPSE_HPP
2 #define AETHER_ELLIPSE_HPP
3 
4 #include "Aether/base/Texture.hpp"
5 
6 namespace Aether {
11  class Ellipse : public Texture {
12  private:
13  unsigned int xDiameter_;
14  unsigned int yDiameter_;
19  Drawable * renderDrawable();
20 
21  public:
31  Ellipse(const int x, const int y, const unsigned int xd, const unsigned int yd = 0);
32 
38  unsigned int xDiameter();
39 
45  void setXDiameter(const unsigned int xd);
46 
52  unsigned int yDiameter();
53 
59  void setYDiameter(const unsigned int yd);
60 
65 
70 
75  };
76 };
77 
78 #endif
Drawable * renderSelection()
Render matching elliptical selection layer.
unsigned int xDiameter()
Returns the ellipse's horizontal diameter.
void setXDiameter(const unsigned int xd)
Set a new horizontal diameter.
unsigned int yDiameter()
Returns the ellipse's vertical diameter.
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.
A Texture is an element that stores a texture to render in the window. It can't be instantiated alone...
Definition: Texture.hpp:24
Drawable * renderHighlightBG()
Render matching elliptical highlight background.
Base namespace for all Aether related classes and functions.
Element for rendering an ellipse.
Definition: Ellipse.hpp:11
Ellipse(const int x, const int y, const unsigned int xd, const unsigned int yd=0)
Constructs a new Ellipse element. Creates a circle if the vertical diameter is not specified...
void setYDiameter(const unsigned int yd)
Set a new vertical diameter.
Drawable * renderHighlight()
Render matching elliptical highlight border.
int y()
Returns y-coordinate of element.