Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QArkUi::Node Class Reference

#include <qnativenodeapi.h>

Collaboration diagram for QArkUi::Node:

Public Member Functions

 Node (const Node &)=delete
Nodeoperator= (const Node &)=delete
 Node (Node &&)=delete
Nodeoperator= (Node &&)=delete
::ArkUI_NodeHandle handle () const
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, float value)
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, std::uint32_t value)
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, std::int32_t value)
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, bool value)
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::string &value)
template<std::size_t N>
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::array< float, N > &value)
template<std::size_t N>
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::array< std::int32_t, N > &value)
template<std::size_t N>
void setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::array< std::uint32_t, N > &value)
template<typename ... EnumTypes>
std::enable_if_t< QtOhos::Conjuction< std::is_enum< EnumTypes >... >::value, voidsetAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::tuple< EnumTypes ... > &enumValuesTuple)
template<typename T>
std::enable_if_t< std::is_enum< T >::value, voidsetAttributeOrFail (::ArkUI_NodeAttributeType attributeType, T value)
void addChildOrFail (Node &child)
void removeChildOrFail (Node &child)
void setEventHandler (::ArkUI_NodeEventType eventType, std::function< void(::ArkUI_NodeEvent *)> eventHandler)
template<typename T>
getAttributeOrFail (::ArkUI_NodeAttributeType attributeType) const
template<>
std::int32_t getAttributeOrFail (::ArkUI_NodeAttributeType attributeType) const
void setLengthMetricUnitOrFail (::ArkUI_LengthMetricUnit unit)

Static Public Member Functions

static std::unique_ptr< NodecreateOrFail (::ArkUI_NodeType type)
static std::unique_ptr< NodetakeOwnershipOfExternalNode (::ArkUI_NodeHandle nodeHandle)
static bool isQtManagedNode (::ArkUI_NodeHandle nodeHandle)
static QOhosOptional<::ArkUI_NodeHandle > tryfindChild (::ArkUI_NodeHandle nodeHandle, const std::function< bool(::ArkUI_NodeHandle)> predicate)

Detailed Description

Definition at line 26 of file qnativenodeapi.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

QArkUi::Node::Node ( const Node & )
delete

◆ Node() [2/2]

QArkUi::Node::Node ( Node && )
delete

Member Function Documentation

◆ addChildOrFail()

void Node< _Tp >::addChildOrFail ( Node & child)

Definition at line 174 of file qnativenodeapi.cpp.

◆ createOrFail()

std::unique_ptr< Node > Node< _Tp >::createOrFail ( ::ArkUI_NodeType type)
static

Definition at line 191 of file qnativenodeapi.cpp.

◆ getAttributeOrFail() [1/2]

template<>
std::int32_t QArkUi::Node::getAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType) const

◆ getAttributeOrFail() [2/2]

template<typename T>
T QArkUi::Node::getAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType) const

◆ handle()

ArkUI_NodeHandle Node< _Tp >::handle ( ) const

Definition at line 186 of file qnativenodeapi.cpp.

◆ isQtManagedNode()

bool Node< _Tp >::isQtManagedNode ( ::ArkUI_NodeHandle nodeHandle)
static

Definition at line 281 of file qnativenodeapi.cpp.

◆ operator=() [1/2]

Node & QArkUi::Node::operator= ( const Node & )
delete

◆ operator=() [2/2]

Node & QArkUi::Node::operator= ( Node && )
delete

◆ removeChildOrFail()

void Node< _Tp >::removeChildOrFail ( Node & child)

Definition at line 217 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [1/10]

void Node< _Tp >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
bool value )

Definition at line 158 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [2/10]

template<std::size_t N>
void Node< N >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
const std::array< float, N > & value )

Definition at line 132 of file qnativenodeapi.h.

◆ setAttributeOrFail() [3/10]

template<std::size_t N>
void Node< N >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
const std::array< std::int32_t, N > & value )

Definition at line 147 of file qnativenodeapi.h.

◆ setAttributeOrFail() [4/10]

template<std::size_t N>
void Node< N >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
const std::array< std::uint32_t, N > & value )

Definition at line 162 of file qnativenodeapi.h.

◆ setAttributeOrFail() [5/10]

void Node< _Tp >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
const std::string & value )

Definition at line 165 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [6/10]

template<typename ... EnumTypes>
std::enable_if_t< QtOhos::Conjuction< std::is_enum< EnumTypes >... >::value, void > Node< EnumTypes >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
const std::tuple< EnumTypes ... > & enumValuesTuple )

Definition at line 108 of file qnativenodeapi.h.

◆ setAttributeOrFail() [7/10]

void Node< _Tp >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
float value )

Definition at line 140 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [8/10]

void Node< _Tp >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
std::int32_t value )

Definition at line 146 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [9/10]

void Node< _Tp >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
std::uint32_t value )

Definition at line 152 of file qnativenodeapi.cpp.

◆ setAttributeOrFail() [10/10]

template<typename T>
std::enable_if_t< std::is_enum< T >::value, void > Node< T >::setAttributeOrFail ( ::ArkUI_NodeAttributeType attributeType,
T value )

Definition at line 125 of file qnativenodeapi.h.

◆ setEventHandler()

void Node< _Tp >::setEventHandler ( ::ArkUI_NodeEventType eventType,
std::function< void(::ArkUI_NodeEvent *)> eventHandler )

Definition at line 224 of file qnativenodeapi.cpp.

◆ setLengthMetricUnitOrFail()

void Node< _Tp >::setLengthMetricUnitOrFail ( ::ArkUI_LengthMetricUnit unit)

Definition at line 302 of file qnativenodeapi.cpp.

◆ takeOwnershipOfExternalNode()

std::unique_ptr< Node > Node< _Tp >::takeOwnershipOfExternalNode ( ::ArkUI_NodeHandle nodeHandle)
static

Definition at line 273 of file qnativenodeapi.cpp.

◆ tryfindChild()

QOhosOptional<::ArkUI_NodeHandle > Node< _Tp >::tryfindChild ( ::ArkUI_NodeHandle nodeHandle,
const std::function< bool(::ArkUI_NodeHandle)> predicate )
static

Definition at line 311 of file qnativenodeapi.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function:

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