Kanzi  3.9.6
Kanzi Engine API
node.hpp File Reference

Classes

struct  kanzi::Node::MessageSubscription::LessFunctor
 
class  kanzi::Node::MessageSubscriptionToken
 Message subscription token for nodes. More...
 
class  kanzi::Node
 Base class for Kanzi nodes. More...
 
struct  kanzi::Node::NodeComponentEntry
 Object node component entry. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Typedefs

typedef shared_ptr< InputManipulator > kanzi::InputManipulatorBaseSharedPtr
 
typedef shared_ptr< NodeComponent > kanzi::NodeComponentSharedPtr
 
typedef shared_ptr< Node const > kanzi::NodeConstSharedPtr
 Alias for shared pointer of const Node. More...
 
typedef weak_ptr< Node const > kanzi::NodeConstWeakPtr
 Alias for weak pointer of const Node. More...
 
typedef shared_ptr< ResourceDictionary > kanzi::ResourceDictionarySharedPtr
 Resource dictionary shared pointer. More...
 

Functions

bool kanzi::canNodeGetFocus (const Node &node)
 Returns whether a node can get the key focus. More...
 
Node * kanzi::findCommonParent (const Node &nodeA, const Node &nodeB)
 Gets first common parent from nodeA and nodeB, or null if not found. More...
 
template<typename Type >
shared_ptr< Type > kanzi::findParent (const Node &node)
 Gets nearest parent of specified type. More...
 
optional< string > kanzi::getRelativePath (const Node &targetNode, const Node &baseNode)
 Gets the relative path from base object node to target object node, or nullopt if path could not be found. More...
 
Node * kanzi::getRoot (Node &node)
 Gets the root node of the node tree to which the node belongs. More...
 
const Node * kanzi::getRoot (const Node &node)
 Gets the root node of the node tree to which the node belongs. More...
 
unsigned int kanzi::getTreeHeight (const Node &node)
 Gets tree height from the object node to the parent. More...
 
bool kanzi::isAncestorOf (const Node &node, const Node &ancestor)
 Indicates whether one node is the ancestor of another node at any level in the node tree. More...
 
bool kanzi::isParentOf (const Node &child, const Node &parent)
 Indicates whether one node is the parent of another node. More...