![]() |
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) |
| bool | hasParent () const |
| std::uint32_t | siblingsCount () const |
| void | moveTo (std::uint32_t index) |
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) |
| static QPoint | nodeGlobalPosition (::ArkUI_NodeHandle nodeHandle) |
| static QPoint | nodeDisplayPosition (::ArkUI_NodeHandle nodeHandle) |
Definition at line 27 of file qnativenodeapi.h.
|
delete |
|
delete |
Definition at line 175 of file qnativenodeapi.cpp.
Definition at line 192 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 187 of file qnativenodeapi.cpp.
| bool Node< _Tp >::hasParent | ( | ) | const |
Definition at line 312 of file qnativenodeapi.cpp.
|
static |
Definition at line 282 of file qnativenodeapi.cpp.
Definition at line 325 of file qnativenodeapi.cpp.
Definition at line 353 of file qnativenodeapi.cpp.
Definition at line 344 of file qnativenodeapi.cpp.
Definition at line 218 of file qnativenodeapi.cpp.
Definition at line 159 of file qnativenodeapi.cpp.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< float, N > & | value ) |
Definition at line 142 of file qnativenodeapi.h.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< std::int32_t, N > & | value ) |
Definition at line 157 of file qnativenodeapi.h.
| void Node< N >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::array< std::uint32_t, N > & | value ) |
Definition at line 172 of file qnativenodeapi.h.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| const std::string & | value ) |
Definition at line 166 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 118 of file qnativenodeapi.h.
Definition at line 141 of file qnativenodeapi.cpp.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| std::int32_t | value ) |
Definition at line 147 of file qnativenodeapi.cpp.
| void Node< _Tp >::setAttributeOrFail | ( | ::ArkUI_NodeAttributeType | attributeType, |
| std::uint32_t | value ) |
Definition at line 153 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 135 of file qnativenodeapi.h.
| void Node< _Tp >::setEventHandler | ( | ::ArkUI_NodeEventType | eventType, |
| std::function< void(::ArkUI_NodeEvent *)> | eventHandler ) |
Definition at line 225 of file qnativenodeapi.cpp.
Definition at line 303 of file qnativenodeapi.cpp.
| std::uint32_t Node< _Tp >::siblingsCount | ( | ) | const |
Definition at line 317 of file qnativenodeapi.cpp.
|
static |
Definition at line 274 of file qnativenodeapi.cpp.
|
static |
Definition at line 332 of file qnativenodeapi.cpp.
References makeEmptyQOhosOptional().