|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
A single-line text field. More...
#include <xentara/workbench/bindings/TextField.hpp>
Inheritance diagram for xentara::workbench::bindings::TextField:Classes | |
| struct | Options |
| Options for the binding. More... | |
Public Member Functions | |
| template<StringBindable< std::string > Property> | |
| TextField (PropertyController &propertyController, Property &property, Options options) | |
| Constructor that accesses the variable holding a property’s value directly. | |
| template<typename Object , StringGetter< std::string, Object > GetterType, StringSetter< std::string, Object > SetterType> | |
| TextField (const PropertyHandle &property, Object &object, GetterType get, SetterType set, Options options) | |
| Constructor that uses a getter and setter to access a property. | |
| template<typename Object , StringGetter< std::string, Object > GetterType, StringSetter< std::string, Object > SetterType, StringChecker< std::string, Object > CheckerType> | |
| TextField (const PropertyHandle &property, Object &object, GetterType get, SetterType set, CheckerType check, Options options) | |
| Constructor that uses a getter, a setter, and a checker to access a property. | |
A single-line text field.
| xentara::workbench::bindings::TextField::TextField | ( | 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::TextField::TextField | ( | 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 |
| xentara::workbench::bindings::TextField::TextField | ( | const PropertyHandle & | property, |
| Object & | object, | ||
| GetterType | get, | ||
| SetterType | set, | ||
| CheckerType | check, | ||
| Options | options | ||
| ) |
Constructor that uses a getter, a setter, and a checker 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 |
| check | The checker function. The check function will be called with a potential new value before it is set. If the function returns false, then the value is not set. Normally, this callback should return false if the new value is the same or equivalent to the current value. If the value has an invalid format, you can return an unexpected value containing an internationalized, human readable error string. |
| options | The binding options |