|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
Base class for UI bindings for a certain type of element. More...
#include <xentara/workbench/bindings/ElementBinding.hpp>
Inheritance diagram for xentara::workbench::bindings::ElementBinding< ConcreteElement >:Public Types | |
| using | Base = ElementBinding |
| An alias for this class, to make inheriting constructors easier. | |
| using | Element = ConcreteElement |
| An alias for the element. | |
Public Member Functions | |
| ElementBinding (Element &element) | |
| Constructor that sets the element. | |
| constexpr auto | element () const noexcept -> Element & |
| Returns the element. | |
| template<typename Type > requires std::derived_from<ConcreteElement, PropertyController> | |
| auto | propertyId (const Type &property) const noexcept -> PropertyId |
| Gets the ID of a variable-based property of the element. | |
| template<typename Type > requires std::derived_from<ConcreteElement, PropertyController> | |
| auto | propertyHandle (const Type &property) noexcept -> PropertyHandle |
| Creates a handle for a variable-based property of the element. | |
| auto | propertyHandle (const PropertyId &propertyId) noexcept -> PropertyHandle |
| Creates a handle for a property of the element. | |
Public Member Functions inherited from xentara::workbench::bindings::AbstractElementBinding | |
| virtual | ~AbstractElementBinding ()=0 |
| Virtual destructor. | |
| virtual auto | populateUi (ui::Form form) -> void=0 |
| Populate the ui with the contents of the given form. | |
Base class for UI bindings for a certain type of element.
| ConcreteElement | The element class the binding is for |
| using xentara::workbench::bindings::ElementBinding< ConcreteElement >::Base = ElementBinding |
An alias for this class, to make inheriting constructors easier.
| using xentara::workbench::bindings::ElementBinding< ConcreteElement >::Element = ConcreteElement |
An alias for the element.
| xentara::workbench::bindings::ElementBinding< ConcreteElement >::ElementBinding | ( | Element & | element | ) |
Constructor that sets the element.
|
constexprnoexcept |
Returns the element.
|
noexcept |
Creates a handle for a property of the element.
| propertyId | The ID of the property to create the handle for. |
|
noexcept |
Creates a handle for a variable-based property of the element.
| property | A reference to the variable holding the property’s value. |
|
noexcept |
Gets the ID of a variable-based property of the element.
| property | A reference to the variable holding the property’s value. |