QtBase
v6.3.1
|
#include <qwasmintegration.h>
Definition at line 57 of file qwasmintegration.h.
QWasmIntegration::QWasmIntegration | ( | ) |
QWasmIntegration::~QWasmIntegration | ( | ) |
void QWasmIntegration::addScreen | ( | const emscripten::val & | canvas | ) |
Definition at line 282 of file qwasmintegration.cpp.
|
overridevirtual |
Accessor for the platform integration's clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 277 of file qwasmintegration.cpp.
|
overridevirtual |
Factory function for the GUI event dispatcher. The platform plugin should create and return a QAbstractEventDispatcher subclass when this function is called.
If the platform plugin for some reason creates the event dispatcher outside of this function (for example in the constructor), it needs to handle the case where this function is never called, ensuring that the event dispatcher is still deleted at some point (typically in the destructor).
Note that the platform plugin should never explicitly set the event dispatcher itself, using QCoreApplication::setEventDispatcher(), but let QCoreApplication decide when and which event dispatcher to create.
Implements QPlatformIntegration.
Definition at line 236 of file qwasmintegration.cpp.
|
overridevirtual |
Factory function for QPlatformBackingStore. The QWindow parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QPlatformBackingStore for tlw where the widget also requires a backing store.
Implements QPlatformIntegration.
Definition at line 187 of file qwasmintegration.cpp.
|
overridevirtual |
Factory function for QOffscreenSurface. An offscreen surface will typically be implemented with a pixel buffer (pbuffer). If the platform doesn't support offscreen surfaces, an invisible window will be used by QOffscreenSurface instead.
Reimplemented from QPlatformIntegration.
Definition at line 223 of file qwasmintegration.cpp.
|
overridevirtual |
Factory function for QPlatformOpenGLContext. The context parameter is a pointer to the context for which a platform-specific context backend needs to be created. Configuration settings like the format, share context and screen have to be taken from this QOpenGLContext and the resulting platform context is expected to be backed by a native context that fulfills these criteria.
If the context has native handles set, no new native context is expected to be created. Instead, the provided handles have to be used. In this case the ownership of the handle must not be taken and the platform implementation is not allowed to destroy the native context. Configuration parameters like the format are also to be ignored. Instead, the platform implementation is responsible for querying the configuriation from the provided native context.
Returns a pointer to a QPlatformOpenGLContext instance or \nullptr if the context could not be created.
Reimplemented from QPlatformIntegration.
Definition at line 205 of file qwasmintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 263 of file qwasmintegration.cpp.
|
overridevirtual |
Factory function for QPlatformWindow. The window parameter is a pointer to the window which the QPlatformWindow is supposed to be created for.
All windows have to have a QPlatformWindow, and it will be created on-demand when the QWindow is made visible for the first time, or explicitly through calling QWindow::create().
In the constructor, of the QPlatformWindow, the window flags, state, title and geometry of the window should be applied to the underlying window. If the resulting flags or state differs, the resulting values should be set on the window using QWindow::setWindowFlags() or QWindow::setWindowState(), respectively.
Implements QPlatformIntegration.
Definition at line 181 of file qwasmintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 249 of file qwasmintegration.cpp.
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 228 of file qwasmintegration.cpp.
|
inlinestatic |
|
static |
|
inline |
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 167 of file qwasmintegration.cpp.
|
overridevirtual |
Performs initialization steps that depend on having an event dispatcher available. Called after the event dispatcher has been created.
Tasks that require an event dispatcher, for example creating socket notifiers, cannot be performed in the constructor. Instead, they should be performed here. The default implementation does nothing.
Reimplemented from QPlatformIntegration.
Definition at line 211 of file qwasmintegration.cpp.
|
overridevirtual |
Returns the platforms input context.
The default implementation returns \nullptr, implying no input method support.
Reimplemented from QPlatformIntegration.
Definition at line 218 of file qwasmintegration.cpp.
Definition at line 199 of file qwasmintegration.cpp.
void QWasmIntegration::removeScreen | ( | const emscripten::val & | canvas | ) |
void QWasmIntegration::resizeAllScreens | ( | ) |
Definition at line 325 of file qwasmintegration.cpp.
void QWasmIntegration::resizeScreen | ( | const emscripten::val & | canvas | ) |
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 270 of file qwasmintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 241 of file qwasmintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 258 of file qwasmintegration.cpp.
void QWasmIntegration::updateDpi | ( | ) |