|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A toggle switch for selecting a Boolean option. More...
#include <xentara/workbench/bindings/ToggleSwitch.hpp>
Inheritance diagram for xentara::workbench::bindings::ToggleSwitch:Classes | |
| struct | Options |
| Options for the binding. More... | |
Public Member Functions | |
| template<Bindable< bool > Property> | |
| ToggleSwitch (PropertyController &propertyController, Property &property, Options options) | |
| Constructor that accesses the variable holding a property’s value directly. | |
| template<typename Object , Getter< bool, Object > GetterType, Setter< bool, Object > SetterType> | |
| ToggleSwitch (const PropertyHandle &property, Object &object, GetterType get, SetterType set, Options options) | |
| Constructor that uses a getter and setter to access a property. | |
A toggle switch for selecting a Boolean option.
| xentara::workbench::bindings::ToggleSwitch::ToggleSwitch | ( | PropertyController & | propertyController, |
| Property & | property, | ||
| Options | options | ||
| ) |
Constructor that accesses the variable holding a property’s value directly.
| propertyController | The property controller that manages the property |
| property | A reference to the variable holding the property’s value. |
| options | The binding options |
| xentara::workbench::bindings::ToggleSwitch::ToggleSwitch | ( | const PropertyHandle & | property, |
| Object & | object, | ||
| GetterType | get, | ||
| SetterType | set, | ||
| Options | options | ||
| ) |
Constructor that uses a getter and setter to access a property.
| property | A handle to the bound property |
| object | The object on which the getter and setter should be called |
| get | The getter function |
| set | The setter function |
| options | The binding options |