Kanzi  3.9.4
Kanzi Engine API
kanzi::FocusChainNode Struct Reference

The focus chain node of a focus scope consists of the node of the focus scope, its focus order, and the focus order offset. More...

#include <kanzi/core.ui/input/focus_scope.hpp>

Inheritance diagram for kanzi::FocusChainNode:
[legend]

Public Member Functions

 FocusChainNode ()=default
 Constructor. More...
 
 FocusChainNode (Node &node, size_t offset)
 Constructor. More...
 
bool isFocused () const
 Returns whether this focus chain element is focused or, in case it is a scope node, contains focus. More...
 
 operator bool () const
 bool() operator to check for validity of a FocusChainNode instance. More...
 
bool operator== (const FocusChainNode &rhs) const
 Equality operator. More...
 
void reset ()
 Resets the focus chain node fields to an invalid state. More...
 
- Public Member Functions inherited from kanzi::FocusChainIndex
 FocusChainIndex ()=default
 Constructor. More...
 
 FocusChainIndex (size_t order, size_t offset)
 Constructor. More...
 
 operator bool () const
 bool() operator to check for validity of a FocusChainIndex instance. More...
 

Static Public Member Functions

static FocusChainNode get (const Node &node)
 Returns the focus chain node for a node. More...
 

Public Attributes

Nodenode
 The node of the focus scope. More...
 
- Public Attributes inherited from kanzi::FocusChainIndex
size_t focusOffset
 The offset to the node with the same focus order. More...
 
size_t focusOrder
 The focus chain order of the node. More...
 

Detailed Description

The focus chain node of a focus scope consists of the node of the focus scope, its focus order, and the focus order offset.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ FocusChainNode() [1/2]

kanzi::FocusChainNode::FocusChainNode ( )
explicitdefault

Constructor.

◆ FocusChainNode() [2/2]

kanzi::FocusChainNode::FocusChainNode ( Node node,
size_t  offset 
)
explicit

Constructor.

Member Function Documentation

◆ operator bool()

kanzi::FocusChainNode::operator bool ( ) const
inlineexplicit

bool() operator to check for validity of a FocusChainNode instance.

◆ operator==()

bool kanzi::FocusChainNode::operator== ( const FocusChainNode rhs) const
inline

Equality operator.

◆ isFocused()

bool kanzi::FocusChainNode::isFocused ( ) const

Returns whether this focus chain element is focused or, in case it is a scope node, contains focus.

◆ reset()

void kanzi::FocusChainNode::reset ( )

Resets the focus chain node fields to an invalid state.

◆ get()

static FocusChainNode kanzi::FocusChainNode::get ( const Node node)
static

Returns the focus chain node for a node.

Parameters
nodeThe node for which to return the focus chain node.

Member Data Documentation

◆ node

Node* kanzi::FocusChainNode::node

The node of the focus scope.


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