Kanzi  3.9.6
Kanzi Engine API
kanzi::PropertyModifierBindingTargetRuntime Class Reference

Base class for property modifier binding target runtimes. More...

#include <kanzi/core.ui/binding/property_modifier_binding_target_runtime.hpp>

Inheritance diagram for kanzi::PropertyModifierBindingTargetRuntime:
[legend]

Public Member Functions

PropertyField getPropertyField () const
 Gets a property field. More...
 
AbstractPropertyType getPropertyType () const
 Gets a property type. More...
 
- Public Member Functions inherited from kanzi::BindingTargetRuntime
void attachForRead ()
 Attaches the binding target runtime for reading. More...
 
void attachForWrite ()
 Attaches the binding target runtime for writing. More...
 
BindingProcessorRuntimeConstIterator beginProcessorRuntimes () const
 Gets an iterator to the beginning of binding processor runtimes. More...
 
void createBindingProcessorsRuntimes (const AbstractBinding &binding)
 Creates a processor runtime for each BindingProcessor held by the binding parameter. More...
 
void detach ()
 Detaches binding target runtime. More...
 
BindingProcessorRuntimeConstIterator endProcessorRuntimes () const
 Gets an iterator to the end of binding processor runtimes. More...
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime. More...
 
BindingLookupContextgetLookupContext () const
 Accesses target lookup context. More...
 
bool isConnected ()
 Indicates whether this source is connected. More...
 
bool read (Variant &value)
 Reads a value from the binding target. More...
 
void setBindingRuntime (AbstractBindingRuntime &bindingRuntime)
 Sets the binding runtime. More...
 
bool write (const Variant &value)
 Writes a value to the binding target. More...
 
virtual ~BindingTargetRuntime ()=default
 Destructor. More...
 

Static Public Member Functions

static BindingTargetRuntimePtr create (BindingLookupContextPtr lookupContext, AbstractPropertyType propertyType, PropertyField field)
 Creates a property modifier binding target runtime without a binding target. More...
 

Protected Member Functions

 PropertyModifierBindingTargetRuntime (BindingLookupContextPtr lookupContext, AbstractPropertyType propertyType, PropertyField field)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::BindingTargetRuntime
virtual void attachForReadOverride ()
 Implementation-dependent attach. More...
 
virtual void attachForWriteOverride ()=0
 Implementation-dependent attach. More...
 
 BindingTargetRuntime (BindingLookupContextPtr lookupContext)
 Constructor. More...
 
virtual void detachOverride ()=0
 Implementation-dependent detach. More...
 
virtual bool isConnectedOverride ()=0
 Implementation-dependent connected check. More...
 
virtual bool readOverride (Variant &value)
 Implementation-dependent read. More...
 
virtual bool writeOverride (const Variant &value)=0
 Implementation-dependent write. More...
 

Protected Attributes

PropertyField m_field
 Property field to use. More...
 
bool m_localReadListenerRequested
 Is local read listener requested? More...
 
PropertyObjectm_object
 Object the property modifier is installed to. More...
 
AbstractPropertyType m_propertyType
 Property type to use. More...
 
- Protected Attributes inherited from kanzi::BindingTargetRuntime
AbstractBindingRuntimem_bindingRuntime
 Abstract binding runtime for this target. More...
 
BindingLookupContextPtr m_lookupContext
 Binding lookup context for wherever this binding target runtime is attached to. More...
 
BindingProcessorRuntimeContainer m_processorRuntimes
 Binding processors runtimes (for the target, backward direction). More...
 

Additional Inherited Members

- Public Types inherited from kanzi::BindingTargetRuntime
using BindingProcessorRuntimeConstIterator = BindingProcessorRuntimeContainer::const_iterator
 Binding processor iterator type. More...
 
using BindingProcessorRuntimeContainer = vector< BindingProcessorRuntimePtr >
 Binding processor container type. More...
 

Detailed Description

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:

// Calling setModifierBinding() installs the binding runtime as a property modifier.
AbstractBindingRuntimeSharedPtr runtime = node->setModifierBinding(binding, Node2D::OpacityProperty);

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.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ PropertyModifierBindingTargetRuntime()

kanzi::PropertyModifierBindingTargetRuntime::PropertyModifierBindingTargetRuntime ( BindingLookupContextPtr  lookupContext,
AbstractPropertyType  propertyType,
PropertyField  field 
)
protected

Constructor.

Parameters
lookupContextBinding lookup context to use.
propertyTypeProperty type to use.
fieldProperty field to use.

Member Function Documentation

◆ create()

static BindingTargetRuntimePtr kanzi::PropertyModifierBindingTargetRuntime::create ( BindingLookupContextPtr  lookupContext,
AbstractPropertyType  propertyType,
PropertyField  field 
)
static

Creates a property modifier binding target runtime without a binding target.

Parameters
lookupContextBinding lookup context to use.
propertyTypeProperty type to use.
fieldProperty field to use.
Returns
The property modifier binding target runtime.

◆ getPropertyType()

AbstractPropertyType kanzi::PropertyModifierBindingTargetRuntime::getPropertyType ( ) const
inline

Gets a property type.

Required by inheriting classes.

Returns
Property type for this target.

◆ getPropertyField()

PropertyField kanzi::PropertyModifierBindingTargetRuntime::getPropertyField ( ) const
inline

Gets a property field.

Returns
Property field.

Member Data Documentation

◆ m_object

PropertyObject& kanzi::PropertyModifierBindingTargetRuntime::m_object
protected

Object the property modifier is installed to.

◆ m_propertyType

AbstractPropertyType kanzi::PropertyModifierBindingTargetRuntime::m_propertyType
protected

Property type to use.

◆ m_field

PropertyField kanzi::PropertyModifierBindingTargetRuntime::m_field
protected

Property field to use.

◆ m_localReadListenerRequested

bool kanzi::PropertyModifierBindingTargetRuntime::m_localReadListenerRequested
protected

Is local read listener requested?


The documentation for this class was generated from the following file: