Class · aurore

aurore::IconButton

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

class aurore::IconButton : public aurore::Button

Constructors 1

IconButton()

Functions 7

void setIcon(const std::string &path)
void setGlyph(const std::string &glyph)
void setIconView(View *view)
void setIconSize(float size)
void setText(const std::string &text)
virtual bool applyXMLAttribute(std::string name, std::string value) override

Applies the given attribute to the view.

You can add your own attributes to by calling registerXMLAttribute() in the view constructor.

Overrides aurore::Box::applyXMLAttribute

icon_button.hpp:44
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::Box::draw

icon_button.hpp:45

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

Static functions 1

static View * create()

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