![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwaylandintegration_p.h>
Public Member Functions | |
QWaylandIntegration (const QString &platformName) | |
~QWaylandIntegration () override | |
bool | init () |
bool | hasCapability (QPlatformIntegration::Capability cap) const override |
QPlatformWindow * | createPlatformWindow (QWindow *window) const override |
Factory function for QPlatformWindow. | |
QPlatformBackingStore * | createPlatformBackingStore (QWindow *window) const override |
Factory function for QPlatformBackingStore. | |
QAbstractEventDispatcher * | createEventDispatcher () const override |
Factory function for the GUI event dispatcher. | |
void | initialize () override |
Performs initialization steps that depend on having an event dispatcher available. | |
QPlatformFontDatabase * | fontDatabase () const override |
Accessor for the platform integration's fontdatabase. | |
QPlatformNativeInterface * | nativeInterface () const override |
QPlatformInputContext * | inputContext () const override |
Returns the platforms input context. | |
QVariant | styleHint (StyleHint hint) const override |
QPlatformServices * | services () const override |
QWaylandDisplay * | display () const |
Qt::KeyboardModifiers | queryKeyboardModifiers () const override |
QList< int > | possibleKeys (const QKeyEvent *event) const override |
Should be used to obtain a list of possible shortcuts for the given key event. | |
QStringList | themeNames () const override |
QPlatformTheme * | createPlatformTheme (const QString &name) const override |
void | setApplicationBadge (qint64 number) override |
void | beep () const override |
virtual QWaylandInputDevice * | createInputDevice (QWaylandDisplay *display, int version, uint32_t id) const |
virtual QWaylandScreen * | createPlatformScreen (QWaylandDisplay *waylandDisplay, int version, uint32_t id) const |
virtual QWaylandCursor * | createPlatformCursor (QWaylandDisplay *display) const |
virtual QWaylandClientBufferIntegration * | clientBufferIntegration () const |
virtual QWaylandServerBufferIntegration * | serverBufferIntegration () const |
virtual QWaylandShellIntegration * | shellIntegration () const |
void | reconfigureInputContext () |
Public Member Functions inherited from QPlatformIntegration | |
virtual | ~QPlatformIntegration () |
virtual QPlatformPixmap * | createPlatformPixmap (QPlatformPixmap::PixelType type) const |
Factory function for QPlatformPixmap. | |
virtual QPlatformWindow * | createForeignWindow (QWindow *, WId) const |
virtual QPlatformOpenGLContext * | createPlatformOpenGLContext (QOpenGLContext *context) const |
Factory function for QPlatformOpenGLContext. | |
virtual QPlatformSharedGraphicsCache * | createPlatformSharedGraphicsCache (const char *cacheId) const |
Factory function for QPlatformSharedGraphicsCache. | |
virtual QPaintEngine * | createImagePaintEngine (QPaintDevice *paintDevice) const |
Factory function for QPaintEngine. | |
virtual void | destroy () |
Called before the platform integration is deleted. | |
virtual QPlatformClipboard * | clipboard () const |
Accessor for the platform integration's clipboard. | |
virtual Qt::WindowState | defaultWindowState (Qt::WindowFlags) const |
virtual QPlatformKeyMapper * | keyMapper () const |
Accessor for the platform integration's key mapper. | |
virtual QPlatformOffscreenSurface * | createPlatformOffscreenSurface (QOffscreenSurface *surface) const |
Factory function for QOffscreenSurface. | |
virtual void | sync () |
virtual QOpenGLContext::OpenGLModuleType | openGLModuleType () |
Platform integration function for querying the OpenGL implementation type. | |
virtual void | setApplicationIcon (const QIcon &icon) const |
virtual void | quit () const |
template<auto func, typename... Args> | |
auto | call (Args... args) |
Static Public Member Functions | |
static QWaylandIntegration * | instance () |
Protected Member Functions | |
void | reset () |
virtual QPlatformNativeInterface * | createPlatformNativeInterface () |
Protected Member Functions inherited from QPlatformIntegration | |
QPlatformIntegration ()=default |
Private Member Functions | |
QPlatformSessionManager * | createPlatformSessionManager (const QString &id, const QString &key) const override |
Friends | |
class | QWaylandDisplay |
Definition at line 41 of file qwaylandintegration_p.h.
QtWaylandClient::QWaylandIntegration::QWaylandIntegration | ( | const QString & | platformName | ) |
Definition at line 84 of file qwaylandintegration.cpp.
|
override |
Definition at line 104 of file qwaylandintegration.cpp.
|
overridevirtual |
Should sound a bell, using the default volume and sound.
Reimplemented from QPlatformIntegration.
Definition at line 564 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 321 of file qwaylandintegration.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 180 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 454 of file qwaylandintegration.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 175 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 308 of file qwaylandintegration.cpp.
|
protectedvirtual |
Definition at line 185 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 303 of file qwaylandintegration.cpp.
|
overrideprivatevirtual |
Factory function for QPlatformSessionManager. The default QPlatformSessionManager provides the same functionality as the QSessionManager.
Reimplemented from QPlatformIntegration.
Definition at line 541 of file qwaylandintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 298 of file qwaylandintegration.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 140 of file qwaylandintegration.cpp.
QWaylandDisplay * QtWaylandClient::QWaylandIntegration::display | ( | ) | const |
Definition at line 273 of file qwaylandintegration.cpp.
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 220 of file qwaylandintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 119 of file qwaylandintegration.cpp.
bool QtWaylandClient::QWaylandIntegration::init | ( | ) |
Definition at line 109 of file qwaylandintegration.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 207 of file qwaylandintegration.cpp.
|
overridevirtual |
Returns the platforms input context.
The default implementation returns \nullptr, implying no input method support.
Reimplemented from QPlatformIntegration.
Definition at line 239 of file qwaylandintegration.cpp.
|
inlinestatic |
Definition at line 50 of file qwaylandintegration_p.h.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 114 of file qwaylandintegration.cpp.
|
overridevirtual |
Should be used to obtain a list of possible shortcuts for the given key event.
Shortcuts should be encoded as int(Qt::Key + Qt::KeyboardModifiers).
One example for more than one possibility is the key combination of Shift+5. That one might trigger a shortcut which is set as "Shift+5" as well as one using %. These combinations depend on the currently set keyboard layout.
Reimplemented from QPlatformIntegration.
Definition at line 286 of file qwaylandintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 278 of file qwaylandintegration.cpp.
void QtWaylandClient::QWaylandIntegration::reconfigureInputContext | ( | ) |
Definition at line 480 of file qwaylandintegration.cpp.
|
protected |
Definition at line 548 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 331 of file qwaylandintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 268 of file qwaylandintegration.cpp.
Should set the application's badge to number.
If the number is 0 the badge should be cleared.
Reimplemented from QPlatformIntegration.
Definition at line 559 of file qwaylandintegration.cpp.
|
virtual |
Definition at line 339 of file qwaylandintegration.cpp.
Reimplemented from QPlatformIntegration.
Definition at line 244 of file qwaylandintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 293 of file qwaylandintegration.cpp.
|
friend |
Definition at line 160 of file qwaylandintegration_p.h.
|
protected |
Definition at line 122 of file qwaylandintegration_p.h.
|
protected |
Definition at line 116 of file qwaylandintegration_p.h.
|
protected |
Definition at line 127 of file qwaylandintegration_p.h.
|
protected |
Definition at line 125 of file qwaylandintegration_p.h.
|
protected |
Definition at line 123 of file qwaylandintegration_p.h.
|
protected |
Definition at line 124 of file qwaylandintegration_p.h.