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 Namespace Reference

Namespaces

namespace  details_qarkuiutils_h

Classes

struct  MouseEvent
struct  KeyEvent
struct  TouchEvent
struct  NativeGestureInfo
class  QEmbeddedWindowNode
class  Node
class  CZString
class  DragAction
class  QXComponentCallbackReceiver
class  QQtEmbeddedWindowNode
class  QXComponentRegistry
struct  WindowProperties
class  JsWindowRef

Typedefs

using JsDisplayId = QOhosDisplayInfo::JsDisplayId
using JsWindowId = QtOhos::TypedId<double, struct JsWindowIdTag>

Functions

QOhosOptional<::Input_MouseEventAction > tryMapMouseEventAction (std::int32_t actionValue)
QOhosOptional<::Input_MouseEventButton > tryMapMouseEventButton (std::int32_t buttonValue)
QOhosOptional<::Input_TouchEventAction > tryMapTouchEventAction (std::int32_t actionValue)
QOhosOptional<::Input_KeyEventAction > tryMapKeyEventAction (std::int32_t actionValue)
QInputDevice::DeviceType getTouchDeviceType (const ::ArkUI_UIInputEvent *inputEvent)
template<>
std::int32_t Node::getAttributeOrFail< std::int32_t > (::ArkUI_NodeAttributeType attributeType) const
std::array< float, 2 > toFloatArray (const QPointF &point)
template<typename Func, Func f, typename... FuncArgs>
std::enable_if_t< std::is_same< QOhosInvokeResult< Func, FuncArgs... >, std::int32_t >::value||std::is_enum< QOhosInvokeResult< Func, FuncArgs... > >::value, voidcallArkUiOrFailOnErrorResult (QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
template<typename Func, Func f, typename... FuncArgs>
Q_REQUIRED_RESULT std::enable_if_t< std::is_pointer< QOhosInvokeResult< Func, FuncArgs... > >::value, QOhosInvokeResult< Func, FuncArgs... > > callArkUiOrFailOnNullResult (QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
template<typename Func, Func f, typename... FuncArgs>
QOhosInvokeResult< Func, FuncArgs... > callArkUi (QOhosNamedFunc< Func, f > func, FuncArgs &&...funcArgs)
std::function< void()> makeVSyncFrameRequester (::OHNativeWindow *nativeWindow, std::function< void()> vsyncFrameReadyFunc)
QOhosOptional< WindowPropertiestryGetWindowProperties (JsWindowId jsWindowId)
std::shared_ptr< voidregisterMouseEventsConsumer (JsWindowId jsWindowId, QOhosConsumer< const MouseEvent & > eventsConsumer)
std::shared_ptr< voidregisterKeyEventsConsumer (JsWindowId jsWindowId, QOhosConsumer< const KeyEvent & > eventsConsumer)
std::shared_ptr< voidregisterTouchEventsConsumer (JsWindowId jsWindowId, QOhosConsumer< const TouchEvent & > eventsConsumer)
template<>
std::int32_t Node::getAttributeOrFail< std::int32_t > (::ArkUI_NodeAttributeType attributeType) const

Typedef Documentation

◆ JsDisplayId

Definition at line 10 of file input.cpp.

◆ JsWindowId

using QArkUi::JsWindowId = QtOhos::TypedId<double, struct JsWindowIdTag>

Definition at line 21 of file window.h.

Function Documentation

◆ callArkUi()

template<typename Func, Func f, typename... FuncArgs>
QOhosInvokeResult< Func, FuncArgs... > QArkUi::callArkUi ( QOhosNamedFunc< Func, f > func,
FuncArgs &&... funcArgs )

Definition at line 201 of file qarkuiutils.h.

◆ callArkUiOrFailOnErrorResult()

template<typename Func, Func f, typename... FuncArgs>
std::enable_if_t< std::is_same< QOhosInvokeResult< Func, FuncArgs... >, std::int32_t >::value||std::is_enum< QOhosInvokeResult< Func, FuncArgs... > >::value, void > QArkUi::callArkUiOrFailOnErrorResult ( QOhosNamedFunc< Func, f > func,
FuncArgs &&... funcArgs )

Definition at line 171 of file qarkuiutils.h.

◆ callArkUiOrFailOnNullResult()

template<typename Func, Func f, typename... FuncArgs>
Q_REQUIRED_RESULT std::enable_if_t< std::is_pointer< QOhosInvokeResult< Func, FuncArgs... > >::value, QOhosInvokeResult< Func, FuncArgs... > > QArkUi::callArkUiOrFailOnNullResult ( QOhosNamedFunc< Func, f > func,
FuncArgs &&... funcArgs )

Definition at line 187 of file qarkuiutils.h.

◆ getTouchDeviceType()

QInputDevice::DeviceType QArkUi::getTouchDeviceType ( const ::ArkUI_UIInputEvent * inputEvent)

Definition at line 150 of file input.cpp.

◆ makeVSyncFrameRequester()

std::function< void()> QArkUi::makeVSyncFrameRequester ( ::OHNativeWindow * nativeWindow,
std::function< void()> vsyncFrameReadyFunc )

Definition at line 157 of file vsync.cpp.

◆ Node::getAttributeOrFail< std::int32_t >() [1/2]

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

Definition at line 297 of file qnativenodeapi.cpp.

◆ Node::getAttributeOrFail< std::int32_t >() [2/2]

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

Definition at line 297 of file qnativenodeapi.cpp.

◆ registerKeyEventsConsumer()

std::shared_ptr< void > QArkUi::registerKeyEventsConsumer ( JsWindowId jsWindowId,
QOhosConsumer< const KeyEvent & > eventsConsumer )

Definition at line 200 of file window_manager.cpp.

◆ registerMouseEventsConsumer()

std::shared_ptr< void > QArkUi::registerMouseEventsConsumer ( JsWindowId jsWindowId,
QOhosConsumer< const MouseEvent & > eventsConsumer )

Definition at line 192 of file window_manager.cpp.

◆ registerTouchEventsConsumer()

std::shared_ptr< void > QArkUi::registerTouchEventsConsumer ( JsWindowId jsWindowId,
QOhosConsumer< const TouchEvent & > eventsConsumer )

Definition at line 208 of file window_manager.cpp.

◆ toFloatArray()

std::array< float, 2 > QArkUi::toFloatArray ( const QPointF & point)
inline

Definition at line 141 of file qarkuiutils.h.

◆ tryGetWindowProperties()

QOhosOptional< WindowProperties > QArkUi::tryGetWindowProperties ( JsWindowId jsWindowId)

Definition at line 27 of file window.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function:

◆ tryMapKeyEventAction()

QOhosOptional<::Input_KeyEventAction > QArkUi::tryMapKeyEventAction ( std::int32_t actionValue)

Definition at line 53 of file input.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function:

◆ tryMapMouseEventAction()

QOhosOptional<::Input_MouseEventAction > QArkUi::tryMapMouseEventAction ( std::int32_t actionValue)

Definition at line 12 of file input.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function:

◆ tryMapMouseEventButton()

QOhosOptional<::Input_MouseEventButton > QArkUi::tryMapMouseEventButton ( std::int32_t buttonValue)

Definition at line 27 of file input.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function:

◆ tryMapTouchEventAction()

QOhosOptional<::Input_TouchEventAction > QArkUi::tryMapTouchEventAction ( std::int32_t actionValue)

Definition at line 41 of file input.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function: