Class · aurore
aurore::Button
#include <aurore/views/button.hpp>
class aurore::Button : public aurore::BoxDerived by
Constructors 1
Functions 12
void setStyle(const ButtonStyle *style) Sets the style of the button. can be a pointer to one of the BUTTONSTYLE constants or any other user created style.
button.hpp:159void setState(ButtonState state) Sets the state of the button.
button.hpp:164ButtonState getState() Gets the state of the button.
button.hpp:169Sets the text of the button.
button.hpp:174Sets the font sise of the button.
button.hpp:179Override style text color of the button.
button.hpp:184Returns the text of the button
button.hpp:189virtual 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) overrideSets the view's text, for bind="text: …"; false when it has none.
Overrides aurore::View::setBoundText
Also the functions of aurore::Box (53), aurore::View (221).
Static functions 1
Protected functions 2
virtual AccessibilityRole getDefaultAccessibilityRole() override The view's own role and label when the app gave none.
Overrides aurore::View::getDefaultAccessibilityRole
A focusable box says the texts shown in it (getAccessibilityText).
Overrides aurore::Box::getDefaultAccessibilityLabel
Read from Aurore's headers by Doxygen at each build · library/include