4#ifndef QQTEMBEDDEDWINDOWNODE_H
5#define QQTEMBEDDEDWINDOWNODE_H
7#include <QtCore/qglobal.h>
8#include <qarkui/qembeddedwindownode.h>
9#include <qohosplugincore.h>
10#include <QtCore/qpoint.h>
39class QQtEmbeddedWindowNode
final
84 QQtEmbeddedWindowNode(
85 std::unique_ptr<Node> stackNode,
86 std::unique_ptr<Node> xComponentNode,
87 std::unique_ptr<QtOhos::WindowIdStruct> windowId);
93 std::shared_ptr<
void> m_xComponentCallbackDispatcherToken;
94 std::unique_ptr<QXComponentCallbackReceiver> m_callbackReceiver;
95 ::OHNativeWindow *m_nativeWindow =
nullptr;
96 QOhosConsumer<AreaChangeEvent> m_optAreaChangedReceiver;
97 QOhosConsumer<
bool> m_optFocusedChangedReceiver;
98 QOhosConsumer<
bool> m_optVisibilityChangedReceiver;
99 QOhosConsumer<
const ::ArkUI_UIInputEvent *> m_optTouchInterceptReceiver;
static const std::int32_t minimumNodeZIndexValue
void setTouchInterceptReceiver(QOhosConsumer< const ::ArkUI_UIInputEvent * > touchInterceptReceiver)
void onHoverEvent(bool isHover) override
QPoint parentRelativeOffsetPixels() const
void setFocusedChangeReceiver(QOhosConsumer< bool > focus)
void setSurfaceResolution(std::uint32_t width, std::uint32_t height)
bool hasNonQtManagedChildren() const
~QQtEmbeddedWindowNode() override
void onSurfaceEvent(SurfaceEventType surfaceEventType, ::OHNativeWindow *nativeWindow) override
static std::shared_ptr< QQtEmbeddedWindowNode > createOrFail(const CreateInfo &createInfo)
QRect nodeScreenGeometryPixels() const
void setAreaChangeReceiver(QOhosConsumer< AreaChangeEvent > areaChangeReceiver)
void onInputEvent(InputEventType inputEventType, ::OHNativeWindow *nativeWindow) override
::OHNativeWindow * nativeWindowOrNull() const
QPoint windowRelativeOffsetPixels() const
void setCallbackReceiver(std::unique_ptr< QXComponentCallbackReceiver > callbackReceiver)
QXComponentRender renderXComponent() const
void setVisibilityChangeReceiver(QOhosConsumer< bool > visibilityChangedReceiver)
virtual void onHoverEvent(bool isHover)=0
virtual void onSurfaceEvent(SurfaceEventType surfaceEventType, ::OHNativeWindow *nativeWindow)=0
virtual ~QXComponentCallbackReceiver()
virtual void onInputEvent(InputEventType inputEventType, ::OHNativeWindow *nativeWindow)=0
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
Combined button and popup list for selecting options.
bool isNativeNodeApiMouseEventsEnabled()
bool isNativeNodeApiKeyEventsEnabled()
QXComponent< QXComponentType::Render > QXComponentRender
QRect screenGeometryPixels
QPoint parentRelativeOffsetPixels
QPoint windowRelativeOffsetPixels
QOhosOptional< QColor > backgroundColor
QXComponentId xComponentId
::ArkUI_RenderFit renderFit
::ArkUI_XComponentType xComponentType
QOhosOptional< ParentDescriptor > optParent