xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
Loading...
Searching...
No Matches
xentara::workbench::bindings::JsonEditor< Type > Class Template Reference

A field for editing JSON text. More...

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

+ Inheritance diagram for xentara::workbench::bindings::JsonEditor< Type >:

Classes

struct  Options
 Options for the binding. More...
 

Public Member Functions

template<Bindable< Type > Property>
 JsonEditor (PropertyController &propertyController, Property &property, Options options)
 Constructor that accesses the variable holding a property’s value directly.
 
template<typename Object , Getter< Type, Object > GetterType, Setter< Type, Object > SetterType>
 JsonEditor (const PropertyHandle &property, Object &object, GetterType get, SetterType set, Options options)
 Constructor that uses a getter and setter to access a property.
 
- Public Member Functions inherited from xentara::workbench::bindings::AbstractJsonEditor
virtual ~AbstractJsonEditor ()=0
 Virtual destructor.
 

Detailed Description

template<JsonType Type>
class xentara::workbench::bindings::JsonEditor< Type >

A field for editing JSON text.

Constructor & Destructor Documentation

◆ JsonEditor() [1/2]

template<JsonType Type>
template<Bindable< Type > Property>
xentara::workbench::bindings::JsonEditor< Type >::JsonEditor ( 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

◆ JsonEditor() [2/2]

template<JsonType Type>
template<typename Object , Getter< Type, Object > GetterType, Setter< Type, Object > SetterType>
xentara::workbench::bindings::JsonEditor< Type >::JsonEditor ( 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