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

An editor for time durations. More...

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

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

Classes

struct  Options
 Options for the binding. More...
 

Public Member Functions

template<Bindable< chrono::Duration > Property>
 DurationEdit (PropertyController &propertyController, Property &property, Options options)
 Constructor that accesses the variable holding a property’s value directly.
 
template<typename Object , Getter< chrono::Duration, Object > GetterType, Setter< chrono::Duration, Object > SetterType>
 DurationEdit (const PropertyHandle &property, Object &object, GetterType get, SetterType set, Options options)
 Constructor that uses a getter and setter to access a property.
 

Detailed Description

An editor for time durations.

Constructor & Destructor Documentation

◆ DurationEdit() [1/2]

template<Bindable< chrono::Duration > Property>
xentara::workbench::bindings::DurationEdit::DurationEdit ( 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

◆ DurationEdit() [2/2]

template<typename Object , Getter< chrono::Duration, Object > GetterType, Setter< chrono::Duration, Object > SetterType>
xentara::workbench::bindings::DurationEdit::DurationEdit ( 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