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
qwasmeventdispatcher.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qwasmeventdispatcher.h"
6
#
include
"qwasmintegration.h"
7
8
#
include
<
QtGui
/
qpa
/
qwindowsysteminterface
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
QWasmEventDispatcher::QWasmEventDispatcher(std::shared_ptr<QWasmSuspendResumeControl> suspendResume)
13
:QEventDispatcherWasm(suspendResume)
14
{
15
16
}
17
18
// Note: All event dispatcher functionality is implemented in QEventDispatcherWasm
19
// in QtCore, except for processPostedEvents() below which uses API from QtGui.
20
bool
QWasmEventDispatcher
::
sendPostedEvents
()
21
{
22
QEventDispatcherWasm::sendPostedEvents();
23
return
QWindowSystemInterface::sendWindowSystemEvents(QEventLoop::AllEvents);
24
}
25
26
void
QWasmEventDispatcher
::
onLoaded
()
27
{
28
// This function is called when the application is ready to paint
29
// the first frame. Send the qtlaoder onLoaded event first (via
30
// the base class implementation), and then enable/call requestUpdate
31
// to deliver a frame.
32
QEventDispatcherWasm::onLoaded();
33
34
// Make sure all screens have a defined size; and pick
35
// up size changes due to onLoaded event handling.
36
QWasmIntegration
*wasmIntegration =
QWasmIntegration
::
get
(
)
;
37
wasmIntegration
->
resizeAllScreens
(
)
;
38
39
wasmIntegration
->
releaseRequesetUpdateHold
(
)
;
40
}
41
42
QT_END_NAMESPACE
QWasmEventDispatcher
Definition
qwasmeventdispatcher.h:17
QWasmEventDispatcher::onLoaded
void onLoaded() override
Definition
qwasmeventdispatcher.cpp:26
QWasmEventDispatcher::sendPostedEvents
bool sendPostedEvents() override
Definition
qwasmeventdispatcher.cpp:20
QWasmIntegration
Definition
qwasmintegration.h:42
QWasmIntegration::get
static QWasmIntegration * get()
Definition
qwasmintegration.h:78
QWasmIntegration::releaseRequesetUpdateHold
void releaseRequesetUpdateHold()
Definition
qwasmintegration.cpp:231
QWasmIntegration::resizeAllScreens
void resizeAllScreens()
Definition
qwasmintegration.cpp:436
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
wasm
qwasmeventdispatcher.cpp
Generated on
for Qt by
1.16.1