Class

LoadingBar

A progress bar that eases to each new value (the loading screen's, a list's).

On this page
aurore/cadran/view/loading_bar.hpp
#include <aurore/cadran/view/loading_bar.hpp>

class LoadingBar : public aurore::View

Constructors 1

LoadingBar()

Functions 5

void setProgress(float value)

0..1: how much of the start-up is done.

loading_bar.hpp:19
void fillOver(float value, aurore::Time duration_us)

Fills to value at a steady pace, over duration_us.

loading_bar.hpp:21
void reset()

Empty again at once (a bar shown anew, not easing back down).

loading_bar.hpp:23
void setBrand(bool on)

In the brand's colours whatever the theme (the loading screen's); else the theme's well and teal (a screen's, while its list loads).

loading_bar.hpp:26
virtual void draw(NVGcontext *vg,float x,float y,float width,float height,aurore::Style style,aurore::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

loading_bar.hpp:28

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