Class · aurore

aurore::Rectangle

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

class aurore::Rectangle : public aurore::View

Constructors 3

Rectangle(NVGcolor color)
Rectangle()
~Rectangle()

Functions 5

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

rectangle.hpp:34
void setColor(NVGcolor color)
NVGcolor getColor()
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

rectangle.hpp:39
virtual bool setStyleProperty(const std::string &name,const StyleValue &value) override

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

Static functions 1

static View * create()

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