xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
Loading...
Searching...
No Matches
xentara::workbench::bindings::ComboBox Class Referencefinal

A combo box. More...

#include <xentara/workbench/bindings/ComboBox.hpp>

+ Inheritance diagram for xentara::workbench::bindings::ComboBox:

Classes

struct  Options
 Options for the binding. More...
 

Public Member Functions

template<StringBindable< std::string > Property>
 ComboBox (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>
 ComboBox (const PropertyHandle &property, Object &object, GetterType get, SetterType set, Options options)
 Constructor that uses a getter and setter to access a property.
 

Detailed Description

A combo box.

Constructor & Destructor Documentation

◆ ComboBox() [1/2]

template<StringBindable< std::string > Property>
xentara::workbench::bindings::ComboBox::ComboBox ( PropertyController propertyController,
Property &  property,
Options  options 
)

Constructor that accesses the variable holding a property’s value directly.

Attention
This constructor can only be used for address-based properties.
Parameters
propertyControllerThe property controller that manages the property
propertyA reference to the variable holding the property’s value.
optionsThe binding options

◆ ComboBox() [2/2]

template<typename Object , StringGetter< std::string, Object > GetterType, StringSetter< std::string, Object > SetterType>
xentara::workbench::bindings::ComboBox::ComboBox ( const PropertyHandle property,
Object &  object,
GetterType  get,
SetterType  set,
Options  options 
)

Constructor that uses a getter and setter to access a property.

Parameters
propertyA handle to the bound property
objectThe object on which the getter and setter should be called
getThe getter function
setThe setter function
optionsThe binding options