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. | |
PropertyField | getPropertyField () const |
Gets the source property field. | |
AbstractPropertyType | getPropertyType () const |
Gets the source property type. | |
Public Member Functions inherited from kanzi::BindingSource | |
BindingSourceRuntimePtr | createRuntime () |
Creates binding source runtime. | |
virtual | ~BindingSource () |
Destructor. | |
Static Public Member Functions | |
static BindingSourcePtr | create (string_view path, AbstractPropertyType propertyType) |
Creates an object property binding source. | |
static BindingSourcePtr | create (string_view path, AbstractPropertyType propertyType, PropertyField field) |
Creates an object property binding source. | |
Protected Member Functions | |
BindingSourceRuntimePtr | createRuntimeOverride () override |
BindingSource::createRuntime implementation. | |
ObjectPropertyBindingSource (string_view path, AbstractPropertyType propertyType, PropertyField field) | |
Constructor. | |
Protected Member Functions inherited from kanzi::BindingSource | |
BindingSource () | |
Constructor. | |
Protected Attributes | |
PropertyField | m_field |
Property field to read. | |
string | m_path |
Path to object to listen to. | |
AbstractPropertyType | m_propertyType |
Property type to read. | |
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.