Class · aurore
aurore::Rectangle
On this page
#include <aurore/views/rectangle.hpp>
class aurore::Rectangle : public aurore::ViewConstructors 3
Functions 5
virtual void draw( NVGcontext *vg,float x,float y,float width,float height,Style style,FrameContext *ctx) overrideCalled 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
virtual bool getStyleProperty( const std::string &name,StyleValue *value) overrideThe 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
virtual bool setStyleProperty( const std::string &name,const StyleValue &value) overrideAlso the functions of aurore::View (221).
Static functions 1
Read from Aurore's headers by Doxygen at each build · library/include