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
qohosjsmain.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOHOSJSMAIN_H
5#define QOHOSJSMAIN_H
6
7#include <QtCore/qloggingcategory.h>
8
10
11Q_DECLARE_LOGGING_CATEGORY(QtForOhos)
12
13namespace QtOhos {
14
22
24
26
27void updateApplicationState(int state);
28
30
31}
32
33QT_END_NAMESPACE
34
35#endif // QOHOSJSMAIN_H
static const std::int32_t minimumNodeZIndexValue
void setTouchInterceptReceiver(QOhosConsumer< const ::ArkUI_UIInputEvent * > touchInterceptReceiver)
void onHoverEvent(bool isHover) override
void setFocusedChangeReceiver(QOhosConsumer< bool > focus)
void setSurfaceResolution(std::uint32_t width, std::uint32_t height)
void onSurfaceEvent(SurfaceEventType surfaceEventType, ::OHNativeWindow *nativeWindow) override
static std::shared_ptr< QQtEmbeddedWindowNode > createOrFail(const CreateInfo &createInfo)
void setAreaChangeReceiver(QOhosConsumer< AreaChangeEvent > areaChangeReceiver)
void onInputEvent(InputEventType inputEventType, ::OHNativeWindow *nativeWindow) override
::OHNativeWindow * nativeWindowOrNull() 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 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 acquireAndCleanPendingAutoStartedInstanceWindowFlag()
bool blockEventLoopsWhenSuspended()
void updateApplicationState(int state)
bool isOhosNoUiChildMode()
bool isGlBackingStoreDefaultEnabled()
void quitApplicationFromJsThread()
bool isVsyncOnSoftwareBackingStoreEnabled()
bool isNativeNodeApiMouseEventsEnabled()
bool isNativeNodeApiKeyEventsEnabled()
bool isDebugUseBasicStyleAndThemeEnabled()
bool isDebugDrawQtRasterBackingStoreFlushedRegionEnabled()
QXComponent< QXComponentType::Render > QXComponentRender
Definition qxcomponent.h:43
QOhosOptional< ParentDescriptor > optParent