File imageRect.hpp

struct ImageRect : public UIElement
#include <imageRect.hpp>

Public Functions

ImageRect()
virtual void init()

Initialize the properties and callbacks.

virtual void update()

Update routine.

virtual void draw(Rectangle rect)

Draw routine using a rect.

virtual void config()

Routine to update the element after a property has been changed.

void scaleImage(int scale)
void loadImage(const std::string &path)