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

An editor for a time point. More...

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

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

Classes

struct  Options
 Options for the binding. More...
 

Public Member Functions

template<Bindable< std::chrono::system_clock::time_point > Property>
 TimePointEdit (PropertyController &propertyController, Property &property, Options options)
 Constructor that accesses the variable holding a property’s value directly.
 
template<typename Object , Getter< std::chrono::system_clock::time_point, Object > GetterType, Setter< std::chrono::system_clock::time_point, Object > SetterType>
 TimePointEdit (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 a time point.

Constructor & Destructor Documentation

◆ TimePointEdit() [1/2]

template<Bindable< std::chrono::system_clock::time_point > Property>
xentara::workbench::bindings::TimePointEdit::TimePointEdit ( 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

◆ TimePointEdit() [2/2]

template<typename Object , Getter< std::chrono::system_clock::time_point, Object > GetterType, Setter< std::chrono::system_clock::time_point, Object > SetterType>
xentara::workbench::bindings::TimePointEdit::TimePointEdit ( 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