Kanzi  3.9.7
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 ()
 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 () 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

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

Constructor.

Parameters
valueValue to create with.

Member Function Documentation

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

Creates a manual binding source.

Parameters
valueValue to create with.
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.
Variant kanzi::ValueBindingSource::getValue ( ) const
inline

Gets the value.

Returns
Fixed value.
BindingSourceRuntimePtr kanzi::ValueBindingSource::createRuntimeOverride ( )
overrideprotectedvirtual

Member Data Documentation

Variant kanzi::ValueBindingSource::m_value
protected

Fixed value.


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