Class · aurore

aurore::BatteryWidget

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

class aurore::BatteryWidget : public aurore::Box

Constructors 1

BatteryWidget()

Functions 2

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

battery.hpp:32
virtual void onThemeChanged() override

Called on every view of the screens when the theme changes (Application::getThemeChangedEvent): the colours given by key (setThemeColor) take their new values, the state styles read their "@theme/" values again. A view that keeps other colours of its own looks them up again here, then calls the base. A Box goes on to its children.

Overrides aurore::View::onThemeChanged

battery.hpp:33

Also the functions of aurore::Box (53), aurore::View (221).

Static functions 1

static View * create()

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