![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qnativenodeapi.h>
Public Member Functions | |
| Node (const Node &)=delete | |
| Node & | operator= (const Node &)=delete |
| Node (Node &&)=delete | |
| Node & | operator= (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, void > | setAttributeOrFail (::ArkUI_NodeAttributeType attributeType, const std::tuple< EnumTypes ... > &enumValuesTuple) |
| template<typename T> | |
| std::enable_if_t< std::is_enum< T >::value, void > | setAttributeOrFail (::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> | |
| 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< Node > | createOrFail (::ArkUI_NodeType type) |
| static std::unique_ptr< Node > | takeOwnershipOfExternalNode (::ArkUI_NodeHandle nodeHandle) |
| static bool | isQtManagedNode (::ArkUI_NodeHandle nodeHandle) |
| static QOhosOptional<::ArkUI_NodeHandle > | tryfindChild (::ArkUI_NodeHandle nodeHandle, const std::function< bool(::ArkUI_NodeHandle)> predicate) |
Definition at line 26 of file qnativenodeapi.h.
|
delete |
|
delete |
Definition at line 174 of file qnativenodeapi.cpp.
Definition at line 191 of file qnativenodeapi.cpp.
| std::int32_t QArkUi::Node::getAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType | ) | const |
| T QArkUi::Node::getAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType | ) | const |
Definition at line 186 of file qnativenodeapi.cpp.
|
static |
Definition at line 281 of file qnativenodeapi.cpp.
Definition at line 217 of file qnativenodeapi.cpp.
Definition at line 158 of file qnativenodeapi.cpp.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< float, N > & | value ) |
Definition at line 132 of file qnativenodeapi.h.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< std::int32_t, N > & | value ) |
Definition at line 147 of file qnativenodeapi.h.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< std::uint32_t, N > & | value ) |
Definition at line 162 of file qnativenodeapi.h.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::string & | value ) |
Definition at line 165 of file qnativenodeapi.cpp.
| 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.
Definition at line 140 of file qnativenodeapi.cpp.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| std::int32_t | value ) |
Definition at line 146 of file qnativenodeapi.cpp.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| std::uint32_t | value ) |
Definition at line 152 of file qnativenodeapi.cpp.
| 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.
| void Node< _Tp >::setEventHandler | ( | ::ArkUI_NodeEventType | eventType, |
| std::function< void(::ArkUI_NodeEvent *)> | eventHandler ) |
Definition at line 224 of file qnativenodeapi.cpp.
Definition at line 302 of file qnativenodeapi.cpp.
|
static |
Definition at line 273 of file qnativenodeapi.cpp.
|
static |
Definition at line 311 of file qnativenodeapi.cpp.
References makeEmptyQOhosOptional().