Kanzi 3.9.10
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.
 
- Public Member Functions inherited from kanzi::BindingSource
BindingSourceRuntimePtr createRuntime ()
 Creates binding source runtime.
 
virtual ~BindingSource ()
 Destructor.
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

Variant m_value
 Fixed value.
 

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 ( )
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: