Aether
SDL2 based UI Framework for NX
BaseProgress.hpp
1 #ifndef AETHER_BASEPROGRESS_HPP
2 #define AETHER_BASEPROGRESS_HPP
3 
4 #include "Aether/base/Element.hpp"
5 
6 namespace Aether {
10  class BaseProgress : public Element {
11  private:
13  float value_;
14 
18  virtual void redrawBar() = 0;
19 
20  public:
29  BaseProgress(int x, int y, int w, int h);
30 
36  float value();
37 
45  virtual void setValue(float v);
46  };
47 };
48 
49 #endif
BaseProgress(int x, int y, int w, int h)
Construct a new Base Progress object.
float value()
Get the value of progress bar.
int w()
Returns width of element.
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
int h()
Returns height of element.
Base namespace for all Aether related classes and functions.
virtual void setValue(float v)
Set the value of progress bar.
Base element for progress bars that handles the value.
Definition: BaseProgress.hpp:10
int y()
Returns y-coordinate of element.