Runtime for render value binding target. More...
#include <kanzi/core.ui/binding/render_value_binding_target_runtime.hpp>
Public Member Functions | |
GlRenderState & | getRenderState () const |
Gets the render state from the associated render value lookup context. More... | |
BindingRenderValueLookupContext & | getRenderValueLookupContext () const |
Gets the lookup context as correct type. More... | |
string | getRenderValueName () const |
Gets the name of the render value used. 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... | |
BindingProcessorConstIterator | beginProcessors () const |
Gets an iterator to the beginning of binding processors. More... | |
void | copyBindingProcessors (const AbstractBinding &binding) |
Copies backward direction processors from a binding. More... | |
void | detach () |
Detaches binding target runtime. More... | |
BindingProcessorConstIterator | endProcessors () const |
Gets an iterator to the end of binding processors. More... | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. More... | |
BindingLookupContext & | getLookupContext () 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 () |
Destructor. More... | |
Static Public Member Functions | |
static BindingTargetRuntimePtr | create (BindingLookupContextPtr lookupContext, PropertyDataType dataType, string_view renderValueName) |
Creates a new object render value binding target runtime. More... | |
static BindingTargetRuntimePtr | create (BindingLookupContextPtr lookupContext, AbstractPropertyType propertyType) |
Creates a new object render value binding target runtime. More... | |
Protected Member Functions | |
void | attachForReadOverride () override |
BindingTargetRuntime::attachForReadOverride() implementation. More... | |
void | attachForWriteOverride () override |
BindingTargetRuntime::attachForWriteOverride() implementation. More... | |
void | detachOverride () override |
BindingTargetRuntime::detachOverride() implementation. More... | |
bool | isConnectedOverride () override |
BindingTargetRuntime::isConnectedOverride() implementation. More... | |
RenderValueBindingTargetRuntime (BindingLookupContextPtr lookupContext, string_view renderValueName) | |
Constructor. More... | |
Protected Member Functions inherited from kanzi::BindingTargetRuntime | |
BindingTargetRuntime (BindingLookupContextPtr lookupContext) | |
Constructor. More... | |
virtual bool | readOverride (Variant &value) |
Implementation-dependent read. More... | |
virtual bool | writeOverride (const Variant &value)=0 |
Implementation-dependent write. More... | |
Protected Attributes | |
string | m_renderValueName |
Target property type. More... | |
Protected Attributes inherited from kanzi::BindingTargetRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this target. More... | |
BindingLookupContextPtr | m_lookupContext |
Binding lookup context for wherever this binding target runtime is attached to. More... | |
BindingProcessorContainer | m_processors |
Binding processors (for the target, backward direction). More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingTargetRuntime | |
typedef BindingProcessorContainer::const_iterator | BindingProcessorConstIterator |
Binding processor iterator type. More... | |
typedef vector< BindingProcessorSharedPtr > | BindingProcessorContainer |
Binding processor container type. More... | |
Runtime for render value binding target.
|
explicitprotected |
Constructor.
lookupContext | Binding lookup context to use. |
renderValueName | Name of the render value to use. |
|
static |
Creates a new object render value binding target runtime.
lookupContext | Binding lookup context to use. |
dataType | Data type for the target. |
renderValueName | Name of the render value to use. |
|
inlinestatic |
Creates a new object render value binding target runtime.
lookupContext | Binding lookup context to use. |
propertyType | Target property type to get the data type and name from. |
|
inline |
Gets the name of the render value used.
BindingRenderValueLookupContext& kanzi::RenderValueBindingTargetRuntime::getRenderValueLookupContext | ( | ) | const |
Gets the lookup context as correct type.
GlRenderState& kanzi::RenderValueBindingTargetRuntime::getRenderState | ( | ) | const |
Gets the render state from the associated render value lookup context.
|
overrideprotectedvirtual |
BindingTargetRuntime::attachForReadOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::attachForWriteOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::detachOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
overrideprotectedvirtual |
BindingTargetRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
protected |
Target property type.