Kanzi  3.9.4
Kanzi Engine API
kanzi::ValueBindingSource Class Reference

Constant value as binding source. More...

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

Inheritance diagram for kanzi::ValueBindingSource:
[legend]

Public Member Functions

Variant getValue () const
 Gets the value. More...
 
- Public Member Functions inherited from kanzi::BindingSource
BindingSourceRuntimePtr createRuntime (BindingLookupContextPtr lookupContext)
 Creates binding source runtime. More...
 
virtual ~BindingSource ()
 Destructor. More...
 

Static Public Member Functions

static BindingSourcePtr create (Variant value)
 Creates a manual binding source. More...
 
template<typename T >
static BindingSourcePtr create (T value)
 Creates a value binding source over some specific value. More...
 

Protected Member Functions

BindingSourceRuntimePtr createRuntimeOverride (BindingLookupContextPtr lookupContext) override
 BindingSource::createRuntime implementation. More...
 
 ValueBindingSource (Variant value)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::BindingSource
 BindingSource ()
 Constructor. More...
 

Protected Attributes

Variant m_value
 Fixed value. More...
 

Detailed Description

Constant value as binding source.

Has no specific attach or detach. Always returns a fixed value.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ValueBindingSource()

kanzi::ValueBindingSource::ValueBindingSource ( Variant  value)
inlineexplicitprotected

Constructor.

Parameters
valueValue to create with.

Member Function Documentation

◆ create() [1/2]

static BindingSourcePtr kanzi::ValueBindingSource::create ( Variant  value)
static

Creates a manual binding source.

Parameters
valueValue to create with.

◆ create() [2/2]

template<typename T >
static BindingSourcePtr kanzi::ValueBindingSource::create ( T  value)
inlinestatic

Creates a value binding source over some specific value.

Parameters
valueValue to create with.

◆ getValue()

Variant kanzi::ValueBindingSource::getValue ( ) const
inline

Gets the value.

Returns
Fixed value.

◆ createRuntimeOverride()

BindingSourceRuntimePtr kanzi::ValueBindingSource::createRuntimeOverride ( BindingLookupContextPtr  lookupContext)
overrideprotectedvirtual

Member Data Documentation

◆ m_value

Variant kanzi::ValueBindingSource::m_value
protected

Fixed value.


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