Kanzi  3.9.5
Kanzi Engine API
kanzi::ResourceBindingSource Class Reference

Resource binding source. More...

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

Inheritance diagram for kanzi::ResourceBindingSource:
[legend]

Public Member Functions

ResourceID getResourceID () const
 Gets the source object path. 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 (ResourceID id)
 Creates a resource binding source. More...
 
static BindingSourcePtr create (string_view id)
 Creates a resource binding source. More...
 

Protected Member Functions

BindingSourceRuntimePtr createRuntimeOverride (BindingLookupContextPtr lookupContext) override
 BindingSource::createRuntime implementation. More...
 
 ResourceBindingSource (ResourceID id)
 Constructor. More...
 
- Protected Member Functions inherited from kanzi::BindingSource
 BindingSource ()
 Constructor. More...
 

Protected Attributes

ResourceID m_id
 Path to object to listen to. More...
 

Detailed Description

Resource binding source.

Used to resolve resource IDs and shortcuts.

Since
Kanzi 3.7.0

Constructor & Destructor Documentation

◆ ResourceBindingSource()

kanzi::ResourceBindingSource::ResourceBindingSource ( ResourceID  id)
inlineprotected

Constructor.

Parameters
idResource ID to listen to.

Member Function Documentation

◆ create() [1/2]

static BindingSourcePtr kanzi::ResourceBindingSource::create ( ResourceID  id)
static

Creates a resource binding source.

Parameters
idResource ID to listen to.
Returns
The resource binding source.

◆ create() [2/2]

static BindingSourcePtr kanzi::ResourceBindingSource::create ( string_view  id)
inlinestatic

Creates a resource binding source.

Parameters
idResource ID to listen to.
Returns
The resource binding source.

◆ getResourceID()

ResourceID kanzi::ResourceBindingSource::getResourceID ( ) const
inline

Gets the source object path.

Returns
Resource ID being listened to.

◆ createRuntimeOverride()

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

Member Data Documentation

◆ m_id

ResourceID kanzi::ResourceBindingSource::m_id
protected

Path to object to listen to.


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