Kanzi 3.9.10
kanzi::StateManager::StateObjectRuntime Class Reference

State object runtime. More...

#include <kanzi/core.ui/state_manager/state_manager.hpp>

Public Types

enum  ApplyTargetType { NotApplied , AppliedToNode , AppliedToClone }
 

Public Member Functions

void apply ()
 Applies state style to its target.
 
void assignTargetObject (StateObjectRuntimeSharedPtr runtime, TargetObjectSharedPtr targetObject)
 Assigns target object.
 
ObjectgetAppliedTarget ()
 Gets the object that has the style entry applied.
 
StateObjectgetStateObject () const
 Gets state object.
 
ObjectgetTarget () const
 Gets target, or null pointer if target is not acquired.
 
void onBeforeTargetLost ()
 Notification callback which is called by TargetObject just before target is lost.
 
void onTargetAcquired ()
 Notification callback which is called by TargetObject when target is acquired.
 
void unapply ()
 Unapplies state style from its target.
 
 ~StateObjectRuntime ()
 Destructor.
 

Static Public Member Functions

static StateObjectRuntimeSharedPtr create (const StateObjectPtr &stateObject)
 Create new state object runtime.
 

Detailed Description

State object runtime.

Member Enumeration Documentation

◆ ApplyTargetType

Enumerator
NotApplied 

Not applied.

AppliedToNode 

Applied to target node.

AppliedToClone 

Applied to clone.

Constructor & Destructor Documentation

◆ ~StateObjectRuntime()

kanzi::StateManager::StateObjectRuntime::~StateObjectRuntime ( )

Destructor.

Member Function Documentation

◆ create()

static StateObjectRuntimeSharedPtr kanzi::StateManager::StateObjectRuntime::create ( const StateObjectPtr & stateObject)
static

Create new state object runtime.

◆ getStateObject()

StateObject * kanzi::StateManager::StateObjectRuntime::getStateObject ( ) const

Gets state object.

◆ getTarget()

Object * kanzi::StateManager::StateObjectRuntime::getTarget ( ) const

Gets target, or null pointer if target is not acquired.

◆ getAppliedTarget()

Object * kanzi::StateManager::StateObjectRuntime::getAppliedTarget ( )

Gets the object that has the style entry applied.

Returns
Pointer to cloned or base object, depending on which has the style entry applied.

◆ assignTargetObject()

void kanzi::StateManager::StateObjectRuntime::assignTargetObject ( StateObjectRuntimeSharedPtr runtime,
TargetObjectSharedPtr targetObject )

Assigns target object.

Parameters
runtimeShared pointer to this state object runtime.
targetObjectTarget object to track the target.

◆ apply()

void kanzi::StateManager::StateObjectRuntime::apply ( )

Applies state style to its target.

◆ unapply()

void kanzi::StateManager::StateObjectRuntime::unapply ( )

Unapplies state style from its target.

◆ onTargetAcquired()

void kanzi::StateManager::StateObjectRuntime::onTargetAcquired ( )

Notification callback which is called by TargetObject when target is acquired.

◆ onBeforeTargetLost()

void kanzi::StateManager::StateObjectRuntime::onBeforeTargetLost ( )

Notification callback which is called by TargetObject just before target is lost.


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