Kanzi 3.9.10
kanzi::RenderValueBindingTargetRuntime Class Reference

Runtime for render value binding target. More...

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

Inheritance diagram for kanzi::RenderValueBindingTargetRuntime:
[legend]

Public Member Functions

GlRenderStategetRenderState () const
 Gets the render state from the associated render value lookup context.
 
BindingRenderValueLookupContextgetRenderValueLookupContext () const
 Gets the lookup context as correct type.
 
string getRenderValueName () const
 Gets the name of the render value used.
 
- 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.
 
AbstractBindingRuntimegetBindingRuntime () const
 Gets the binding runtime.
 
BindingLookupContextgetLookupContext () 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)
 Creates a new object render value binding target runtime.
 
static BindingTargetRuntimePtr create (PropertyDataType dataType, string_view renderValueName)
 Creates a new object render value binding target runtime.
 

Protected Member Functions

void attachForReadOverride () override
 BindingTargetRuntime::attachForReadOverride() implementation.
 
void attachForWriteOverride () override
 BindingTargetRuntime::attachForWriteOverride() implementation.
 
void detachOverride () override
 BindingTargetRuntime::detachOverride() implementation.
 
bool isConnectedOverride () override
 BindingTargetRuntime::isConnectedOverride() implementation.
 
 RenderValueBindingTargetRuntime (string_view renderValueName)
 Constructor.
 
- Protected Member Functions inherited from kanzi::BindingTargetRuntime
 BindingTargetRuntime ()=default
 Constructor.
 
virtual bool readOverride (Variant &value)
 Implementation-dependent read.
 
virtual bool writeOverride (const Variant &value)=0
 Implementation-dependent write.
 

Protected Attributes

string m_renderValueName
 Target property type.
 
- Protected Attributes inherited from kanzi::BindingTargetRuntime
AbstractBindingRuntimem_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.
 

Detailed Description

Runtime for render value binding target.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ RenderValueBindingTargetRuntime()

kanzi::RenderValueBindingTargetRuntime::RenderValueBindingTargetRuntime ( string_view renderValueName)
explicitprotected

Constructor.

Parameters
renderValueNameName of the render value to use.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

Member Function Documentation

◆ create() [1/2]

static BindingTargetRuntimePtr kanzi::RenderValueBindingTargetRuntime::create ( PropertyDataType dataType,
string_view renderValueName )
static

Creates a new object render value binding target runtime.

Parameters
dataTypeData type for the target.
renderValueNameName of the render value to use.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

◆ create() [2/2]

static BindingTargetRuntimePtr kanzi::RenderValueBindingTargetRuntime::create ( AbstractPropertyType propertyType)
inlinestatic

Creates a new object render value binding target runtime.

Parameters
propertyTypeTarget property type to get the data type and name from.
Since
Kanzi 3.9.6 Removed BindingLookupContextPtr.

◆ getRenderValueName()

string kanzi::RenderValueBindingTargetRuntime::getRenderValueName ( ) const
inline

Gets the name of the render value used.

Returns
Render value name.

◆ getRenderValueLookupContext()

BindingRenderValueLookupContext & kanzi::RenderValueBindingTargetRuntime::getRenderValueLookupContext ( ) const

Gets the lookup context as correct type.

Returns
Render value lookup context.

◆ getRenderState()

GlRenderState & kanzi::RenderValueBindingTargetRuntime::getRenderState ( ) const

Gets the render state from the associated render value lookup context.

Returns
Render state.

◆ attachForReadOverride()

void kanzi::RenderValueBindingTargetRuntime::attachForReadOverride ( )
overrideprotectedvirtual

◆ attachForWriteOverride()

void kanzi::RenderValueBindingTargetRuntime::attachForWriteOverride ( )
overrideprotectedvirtual

◆ detachOverride()

void kanzi::RenderValueBindingTargetRuntime::detachOverride ( )
overrideprotectedvirtual

◆ isConnectedOverride()

bool kanzi::RenderValueBindingTargetRuntime::isConnectedOverride ( )
overrideprotectedvirtual

Member Data Documentation

◆ m_renderValueName

string kanzi::RenderValueBindingTargetRuntime::m_renderValueName
protected

Target property type.


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