Object property binding source. More...
#include <kanzi/core.ui/binding/object_property_binding_source.hpp>
Public Member Functions | |
string | getPath () const |
Gets the source object path. More... | |
PropertyField | getPropertyField () const |
Gets the source property field. More... | |
AbstractPropertyType | getPropertyType () const |
Gets the source property type. More... | |
Public Member Functions inherited from kanzi::BindingSource | |
BindingSourceRuntimePtr | createRuntime () |
Creates binding source runtime. More... | |
virtual | ~BindingSource () |
Destructor. More... | |
Static Public Member Functions | |
static BindingSourcePtr | create (string_view path, AbstractPropertyType propertyType, PropertyField field) |
Creates an object property binding source. More... | |
static BindingSourcePtr | create (string_view path, AbstractPropertyType propertyType) |
Creates an object property binding source. More... | |
Protected Member Functions | |
BindingSourceRuntimePtr | createRuntimeOverride () override |
BindingSource::createRuntime implementation. More... | |
ObjectPropertyBindingSource (string_view path, AbstractPropertyType propertyType, PropertyField field) | |
Constructor. More... | |
Protected Member Functions inherited from kanzi::BindingSource | |
BindingSource () | |
Constructor. More... | |
Protected Attributes | |
PropertyField | m_field |
Property field to read. More... | |
string | m_path |
Path to object to listen to. More... | |
AbstractPropertyType | m_propertyType |
Property type to read. More... | |
Object property binding source.
Use object property binding sources to read property values from Node or RenderPass objects.
To create an object property binding source:
To read property values, the source object must be available and have the corresponding property.
If the ObjectPropertyBindingSourceRuntime cannot be connected, it installs listeners to try to reconnect when the node tree or render pass tree changes.
|
inlineexplicitprotected |
Constructor.
path | Path to object. |
propertyType | Property type to listen to. |
field | Property field to read. |
|
static |
Creates an object property binding source.
path | Path to object. |
propertyType | Property type to listen to. |
field | Property field to read. |
|
inlinestatic |
Creates an object property binding source.
Whole property will be read.
path | Path to object. |
propertyType | Property type to listen to. |
|
inline |
Gets the source object path.
|
inline |
Gets the source property type.
|
inline |
Gets the source property field.
|
overrideprotectedvirtual |
BindingSource::createRuntime implementation.
Implements kanzi::BindingSource.
|
protected |
Path to object to listen to.
|
protected |
Property type to read.
|
protected |
Property field to read.