4#ifndef QOHOSDISPLAYINFO_H
5#define QOHOSDISPLAYINFO_H
7#include <QtCore/QSizeF>
8#include <QtCore/private/qnapi_p.h>
9#include <QtCore/private/qohoscommon_p.h>
10#include <QtCore/qstring.h>
12#include <qohosenums.h>
13#include <qohosplugincore.h>
14#include <qohosutils.h>
15#include <qpa/qplatformscreen.h>
51Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QOhosDisplayInfo::JsDisplayId));
JsWindowRef(JsWindowRef &&)=delete
JsWindowRef(std::string owningQAbilityInstanceId, JsWindowId windowId, QNapi::Object jsWindow, QtOhos::QObjectThreadSafeRef owningQWindowRef)
JsWindowRef(const JsWindowRef &)=delete
QtOhos::QObjectThreadSafeRef owningQWindowRef() const
JsWindowRef & operator=(JsWindowRef &&)=delete
Result eval(const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) const
bool isWindowShown() const
JsWindowRef & operator=(const JsWindowRef &)=delete
const std::string & owningQAbilityInstanceId() const
QNapi::Promise evalToPromiseOrRejectOnThrow(const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) const
std::optional< WindowProperties > tryGetWindowProperties(JsWindowId jsWindowId)
Combined button and popup list for selecting options.
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SelectionMode))
std::optional< QOhosDisplayInfo::JsDisplayId > displayId
bool isDisplayMainOrExtended() const
std::optional< DisplaySourceMode > sourceMode
QSizeF physicalSize() const
QtOhos::enums::ohos::display::Orientation JsDisplayOrientation
QRect displayGeometryPixels() const
std::optional< QPoint > topLeftOffsetPixels
static QOhosDisplayInfo makeFromOhosDisplayObject(QtOhos::JsState &jsState, QNapi::Object displayObject)
std::optional< JsDisplayOrientation > orientation
QtOhos::enums::ohos::display::DisplaySourceMode DisplaySourceMode
static std::optional< QNapi::Object > tryGetDisplayById(QtOhos::JsState &jsState, QOhosDisplayInfo::JsDisplayId displayId)
bool shouldIgnoreDisplay() const