Base class for property modifier binding target runtimes. More...
#include <kanzi/core.ui/binding/property_modifier_binding_target_runtime.hpp>
Public Member Functions | |
PropertyField | getPropertyField () const |
Gets a property field. | |
AbstractPropertyType | getPropertyType () const |
Gets a property type. | |
Public Member Functions inherited from kanzi::BindingTargetRuntime | |
void | attachForRead () |
Attaches the binding target runtime for reading. | |
void | attachForWrite () |
Attaches the binding target runtime for writing. | |
BindingProcessorRuntimeConstIterator | beginProcessorRuntimes () const |
Gets an iterator to the beginning of binding processor runtimes. | |
void | createBindingProcessorsRuntimes (const AbstractBinding &binding) |
Creates a processor runtime for each BindingProcessor held by the binding parameter. | |
void | detach () |
Detaches binding target runtime. | |
BindingProcessorRuntimeConstIterator | endProcessorRuntimes () const |
Gets an iterator to the end of binding processor runtimes. | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. | |
BindingLookupContext & | getLookupContext () const |
Gets the lookup context. | |
bool | isConnected () |
Indicates whether this source is connected. | |
bool | read (Variant &value) |
Reads a value from the binding target. | |
void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
Sets the binding runtime. | |
bool | write (const Variant &value) |
Writes a value to the binding target. | |
virtual | ~BindingTargetRuntime ()=default |
Destructor. | |
Static Public Member Functions | |
static BindingTargetRuntimePtr | create (AbstractPropertyType propertyType, PropertyField field, PropertyObject &object) |
Creates a property modifier binding target runtime without a binding target. | |
Protected Member Functions | |
PropertyModifierBindingTargetRuntime (AbstractPropertyType propertyType, PropertyField field, PropertyObject &object) | |
Constructor. | |
Protected Member Functions inherited from kanzi::BindingTargetRuntime | |
virtual void | attachForReadOverride () |
Implementation-dependent attach. | |
virtual void | attachForWriteOverride ()=0 |
Implementation-dependent attach. | |
BindingTargetRuntime ()=default | |
Constructor. | |
virtual void | detachOverride ()=0 |
Implementation-dependent detach. | |
virtual bool | isConnectedOverride ()=0 |
Implementation-dependent connected check. | |
virtual bool | readOverride (Variant &value) |
Implementation-dependent read. | |
virtual bool | writeOverride (const Variant &value)=0 |
Implementation-dependent write. | |
Protected Attributes | |
PropertyField | m_field |
Property field to use. | |
bool | m_localReadListenerRequested |
Is local read listener requested? | |
PropertyObject & | m_object |
Object the property modifier is installed to. | |
AbstractPropertyType | m_propertyType |
Property type to use. | |
Protected Attributes inherited from kanzi::BindingTargetRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this target. | |
BindingProcessorRuntimeContainer | m_processorRuntimes |
Binding processors runtimes (for the target, backward direction). | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingTargetRuntime | |
using | BindingProcessorRuntimeConstIterator |
Binding processor iterator type. | |
using | BindingProcessorRuntimeContainer |
Binding processor container type. | |
Base class for property modifier binding target runtimes.
Inherited by type-specialized version.
Kanzi creates a property modifier binding target runtime when you add a modifier binding to a Node or RenderPass using the setModifierBinding() function.
To create a PropertyModifierBindingTargetRuntime for a binding runtime when adding the binding to a Node or RenderPass:
Setting the property with setProperty() does not remove the modifier, but can alter the value that is being modified. Property modifiers apply in the order of addition: adding a property modifier before setting a modifier binding creates a modifier in front of the binding, and the other way around. You can add multiple property modifier bindings for the same property.
|
explicitprotected |
Constructor.
propertyType | Property type to use. |
field | Property field to use. |
object | PropertyObject install path. |
|
static |
Creates a property modifier binding target runtime without a binding target.
propertyType | Property type to use. |
field | Property field to use. |
object | The PropertyObject install path. |
|
inline |
Gets a property type.
Required by inheriting classes.
|
inline |
Gets a property field.
|
protected |
Object the property modifier is installed to.
|
protected |
Property type to use.
|
protected |
Property field to use.
|
protected |
Is local read listener requested?