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

class  QOhosDisplayManager
class  CZString
struct  MouseEvent
struct  KeyEvent
struct  TouchEvent
struct  NativeNodeMouseEvent
struct  NativeNodeHoverEvent
struct  NativeGestureInfo
class  QEmbeddedWindowNode
class  Node
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

QPoint mapFromDisplayToGlobal (const QPoint &displayOffset, QOhosDisplayInfo::JsDisplayId jsDisplayId)
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)
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)
QPointF getPointerEventLocalPosition (const ::ArkUI_UIInputEvent *event)
QPointF getPointerEventDisplayPosition (const ::ArkUI_UIInputEvent *event)
QPointF getPointerEventGlobalPosition (const ::ArkUI_UIInputEvent *event)
ch::milliseconds getInputEventTimeMs (const ::ArkUI_UIInputEvent *event)
template<>
std::int32_t Node::getAttributeOrFail< std::int32_t > (::ArkUI_NodeAttributeType attributeType) const
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 16 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.

◆ getInputEventTimeMs()

ch::milliseconds QArkUi::getInputEventTimeMs ( const ::ArkUI_UIInputEvent * event)

Definition at line 196 of file input.cpp.

◆ getPointerEventDisplayPosition()

QPointF QArkUi::getPointerEventDisplayPosition ( const ::ArkUI_UIInputEvent * event)

Definition at line 182 of file input.cpp.

◆ getPointerEventGlobalPosition()

QPointF QArkUi::getPointerEventGlobalPosition ( const ::ArkUI_UIInputEvent * event)

Definition at line 189 of file input.cpp.

◆ getPointerEventLocalPosition()

QPointF QArkUi::getPointerEventLocalPosition ( const ::ArkUI_UIInputEvent * event)

Definition at line 175 of file input.cpp.

◆ getTouchDeviceType()

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

Definition at line 165 of file input.cpp.

◆ makeVSyncFrameRequester()

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

Definition at line 157 of file vsync.cpp.

◆ mapFromDisplayToGlobal()

QPoint QArkUi::mapFromDisplayToGlobal ( const QPoint & displayOffset,
QOhosDisplayInfo::JsDisplayId jsDisplayId )

Definition at line 178 of file displaymanager.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 298 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 298 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 59 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 18 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 33 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 47 of file input.cpp.

References makeEmptyQOhosOptional().

Here is the call graph for this function: