kanzi::StateManager::StateObjectRuntime Class Reference

State object runtime. More...

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

Public Member Functions

 ~StateObjectRuntime ()
 Destructor. More...
 
void acquireLocalCopy (Resource &resourceObject)
 Acquire a local copy of a resource object. More...
 
void applyStyle (Node &objectNode)
 Apply style for this state object runtime. More...
 
void unapplyStyle (Node &objectNode)
 Unapply style applied from this state object runtime. More...
 

Static Public Member Functions

static StateObjectRuntimeSharedPtr create (const StateObjectPtr &stateObject)
 Create new state object runtime. More...
 
static void modifierCallback (PropertyObject &object, PropertyDataTypeTraits< ResourceSharedPtr >::StorageType &storage, PropertyNotificationReason reason, void *owner)
 Callback for modifier value storage. More...
 

Public Attributes

StateObjectm_object
 State object. More...
 
Objectm_clonedObjectParent
 Node this state object runtime has installed a callback for. More...
 
ResourceSharedPtr m_clonedObjectStorage
 Storage for cloned resource. More...
 
AbstractPropertyType m_clonedObjectProperty
 Property type for the cloned object. More...
 
AppliedStyleEntrym_appliedStateStyle
 Applied state style entry. More...
 
weak_ptr< Nodem_appliedStyleNode
 Pointer to node the applied state style has been applied to, if it's a node. More...
 

Detailed Description

State object runtime.

Constructor & Destructor Documentation

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

Destructor.

Member Function Documentation

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

Create new state object runtime.

static void kanzi::StateManager::StateObjectRuntime::modifierCallback ( PropertyObject object,
PropertyDataTypeTraits< ResourceSharedPtr >::StorageType &  storage,
PropertyNotificationReason  reason,
void owner 
)
static

Callback for modifier value storage.

void kanzi::StateManager::StateObjectRuntime::acquireLocalCopy ( Resource resourceObject)

Acquire a local copy of a resource object.

Store the copy within this #StateObjectRuntime.

void kanzi::StateManager::StateObjectRuntime::applyStyle ( Node objectNode)

Apply style for this state object runtime.

void kanzi::StateManager::StateObjectRuntime::unapplyStyle ( Node objectNode)

Unapply style applied from this state object runtime.

Member Data Documentation

StateObject* kanzi::StateManager::StateObjectRuntime::m_object

State object.

Object* kanzi::StateManager::StateObjectRuntime::m_clonedObjectParent

Node this state object runtime has installed a callback for.

ResourceSharedPtr kanzi::StateManager::StateObjectRuntime::m_clonedObjectStorage

Storage for cloned resource.

Made when properties of resources within a node are modified. Instead of modifying properties of the resource, a copy is made and modifications applied there.

AbstractPropertyType kanzi::StateManager::StateObjectRuntime::m_clonedObjectProperty

Property type for the cloned object.

AppliedStyleEntry* kanzi::StateManager::StateObjectRuntime::m_appliedStateStyle

Applied state style entry.

weak_ptr<Node> kanzi::StateManager::StateObjectRuntime::m_appliedStyleNode

Pointer to node the applied state style has been applied to, if it's a node.


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