#include <parameterbutton.h>
Public Member Functions | |
virtual void | setValue (const Parameter &value) override |
void | setPressed (bool pressed) |
bool | isPressed () const |
![]() | |
const std::string | getDisplayName () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
Signal | click |
Signal that's raised when the button is active. More... | |
Signal | press |
Signal that's raised when the button is pressed. More... | |
Signal | release |
Signal that's raised when the button is released. More... | |
![]() | |
std::string | mName |
Property 'Name': The name of this property. The name is separate from the ID and doesn't have to be unique. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Button parameter
bool isPressed | ( | ) | const |
void setPressed | ( | bool | pressed | ) |
Set the pressed state of this parameter. Raises the "press" signal if the state changed to pressed. Raises the "release" signal if the state changed to not pressed.
pressed | The pressed state to set |
|
overridevirtual |
Set the value for this parameter from another parameter
value | The parameter to set the value from |
Implements Parameter.