Class · aurore

aurore::ProgressSpinner

On this page
aurore/views/progress_spinner.hpp
#include <aurore/views/progress_spinner.hpp>

class aurore::ProgressSpinner : public aurore::View

Constructors 1

Functions 7

virtual void draw(NVGcontext *vg,float x,float y,float width,float height,Style style,FrameContext *ctx) override

Called by frame() to draw the view onscreen. Views should not draw outside of their bounds (they may be clipped if they do so).

Overrides aurore::View::draw

progress_spinner.hpp:37
virtual void willAppear(bool resetState = false) override

Called when the view will appear on screen, before or after layout().

Can be called if the view has already appeared, so be careful.

Overrides aurore::View::willAppear

progress_spinner.hpp:38
virtual void willDisappear(bool resetState = false) override

Called when the view will disappear from the screen.

Can be called if the view has already disappeared, so be careful.

Overrides aurore::View::willDisappear

progress_spinner.hpp:39
void setColor(NVGcolor color)

Sets the color of the spinner's bars, in place of the theme's aurore/spinner/bar_color (its alpha is the faintest bar's).

progress_spinner.hpp:45
virtual bool getStyleProperty(const std::string &name,StyleValue *value) override

The style properties the states and transitions work on, by name: backgroundColor, borderColor, lineColor (colours), borderThickness, cornerRadius, alpha, scale (numbers); a Label adds textColor, a Rectangle color, a Button textColor. Only properties that are drawn, never laid out. A subclass adds its own by overriding both and calling the base for the others.

Overrides aurore::View::getStyleProperty

progress_spinner.hpp:48
virtual bool setStyleProperty(const std::string &name,const StyleValue &value) override
void animate(bool animate)

Also the functions of aurore::View (221).

Static functions 1

static aurore::View * create()

Read from Aurore's headers by Doxygen at each build · library/include