Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4
#include "
qwasmeventdispatcher.h
"
5
#include "
qwasmintegration.h
"
6
7
#include <QtGui/qpa/qwindowsysteminterface.h>
8
9
QT_BEGIN_NAMESPACE
10
11
// Note: All event dispatcher functionality is implemented in QEventDispatcherWasm
12
// in QtCore, except for processPostedEvents() below which uses API from QtGui.
13
bool
QWasmEventDispatcher::processPostedEvents
()
14
{
15
QEventDispatcherWasm::processPostedEvents
();
16
return
QWindowSystemInterface::sendWindowSystemEvents
(
QEventLoop::AllEvents
);
17
}
18
19
void
QWasmEventDispatcher::onLoaded
()
20
{
21
// This function is called when the application is ready to paint
22
// the first frame. Send the qtlaoder onLoaded event first (via
23
// the base class implementation), and then enable/call requestUpdate
24
// to deliver a frame.
25
QEventDispatcherWasm::onLoaded
();
26
27
// Make sure all screens have a defined size; and pick
28
// up size changes due to onLoaded event handling.
29
QWasmIntegration
*wasmIntegration =
QWasmIntegration::get
();
30
wasmIntegration->resizeAllScreens();
31
32
wasmIntegration->releaseRequesetUpdateHold();
33
}
34
35
QT_END_NAMESPACE
QEventDispatcherWasm::processPostedEvents
virtual bool processPostedEvents()
Definition
qeventdispatcher_wasm.cpp:595
QEventDispatcherWasm::onLoaded
virtual void onLoaded()
Definition
qeventdispatcher_wasm.cpp:939
QEventLoop::AllEvents
@ AllEvents
Definition
qeventloop.h:26
QWasmEventDispatcher::onLoaded
void onLoaded() override
Definition
qwasmeventdispatcher.cpp:19
QWasmEventDispatcher::processPostedEvents
bool processPostedEvents() override
Definition
qwasmeventdispatcher.cpp:13
QWasmIntegration
Definition
qwasmintegration.h:38
QWasmIntegration::get
static QWasmIntegration * get()
Definition
qwasmintegration.h:71
QWindowSystemInterface::sendWindowSystemEvents
static bool sendWindowSystemEvents(QEventLoop::ProcessEventsFlags flags)
Definition
qwindowsysteminterface.cpp:1097
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qwasmeventdispatcher.h
qwasmintegration.h
qtbase
src
plugins
platforms
wasm
qwasmeventdispatcher.cpp
Generated by
1.10.0