4#ifndef QARKUI__WINDOW_H
5#define QARKUI__WINDOW_H
7#include <QtCore/private/qnapi_p.h>
8#include <QtCore/private/qohoscommon_p.h>
9#include <QtCore/qglobal.h>
10#include <QtCore/qrect.h>
11#include <qohosdisplayinfo.h>
12#include <qohosplugincore.h>
13#include <qohosutils.h>
36 explicit JsWindowRef(JsWindowId windowId, QNapi::Object jsWindow);
46 JsWindowId
id()
const;
49 Result
call(
const std::string &methodName,
const std::vector<QNapi::ValueWrapper> &args = {})
const;
54 JsWindowId m_jsWindowId;
55 QNapi::Reference<QNapi::Object> m_jsWindow;
58template<
typename Result>
59Result
JsWindowRef::
call(
const std::string &methodName,
const std::vector<QNapi::ValueWrapper> &args)
const
61 return m_jsWindow.call<Result>(methodName, args);
JsWindowRef(JsWindowRef &&)=delete
JsWindowRef(const JsWindowRef &)=delete
JsWindowRef & operator=(JsWindowRef &&)=delete
JsWindowRef(JsWindowId windowId, QNapi::Object jsWindow)
Result call(const std::string &methodName, const std::vector< QNapi::ValueWrapper > &args={}) const
bool isWindowShown() const
JsWindowRef & operator=(const JsWindowRef &)=delete
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
QOhosOptional< WindowProperties > tryGetWindowProperties(JsWindowId jsWindowId)
Combined button and popup list for selecting options.
QOhosOptional< void > makeEmptyQOhosOptional()
QOhosOptional< QOhosDisplayInfo::JsDisplayId > displayId