KWin
|
Class encapsulating all Wayland data structures needed by the Egl backend. More...
#include <wayland_backend.h>
Signals | |
void | pointerLockChanged (bool locked) |
![]() | |
void | outputsQueried () |
void | outputAdded (Output *output) |
void | outputRemoved (Output *output) |
Public Member Functions | |
WaylandBackend (const WaylandBackendOptions &options, QObject *parent=nullptr) | |
~WaylandBackend () override | |
bool | initialize () override |
std::unique_ptr< InputBackend > | createInputBackend () override |
std::unique_ptr< OpenGLBackend > | createOpenGLBackend () override |
std::unique_ptr< QPainterBackend > | createQPainterBackend () override |
WaylandDisplay * | display () const |
WaylandSeat * | seat () const |
bool | supportsPointerLock () |
void | togglePointerLock () |
QList< CompositingType > | supportedCompositors () const override |
WaylandOutput * | findOutput (KWayland::Client::Surface *nativeSurface) const |
Outputs | outputs () const override |
QList< WaylandOutput * > | waylandOutputs () const |
Output * | createVirtualOutput (const QString &name, const QSize &size, double scale) override |
void | removeVirtualOutput (Output *output) override |
wl_buffer * | importBuffer (GraphicsBuffer *graphicsBuffer) |
gbm_device * | gbmDevice () const |
void | setEglBackend (WaylandEglBackend *eglBackend) |
void | setEglDisplay (std::unique_ptr< EglDisplay > &&display) |
EglDisplay * | sceneEglDisplayObject () const override |
![]() | |
~OutputBackend () override | |
::EGLContext | sceneEglGlobalShareContext () const |
void | setSceneEglGlobalShareContext (::EGLContext context) |
Output * | findOutput (const QString &name) const |
virtual QString | supportInformation () const |
virtual Output * | createVirtualOutput (const QString &name, const QSize &size, qreal scale) |
virtual bool | applyOutputChanges (const OutputConfiguration &config) |
virtual Session * | session () const |
Additional Inherited Members | |
![]() | |
virtual void | sceneInitialized () |
![]() | |
OutputBackend (QObject *parent=nullptr) | |
![]() | |
::EGLContext | m_globalShareContext = EGL_NO_CONTEXT |
Class encapsulating all Wayland data structures needed by the Egl backend.
It creates the connection to the Wayland Compositor, sets up the registry and creates the Wayland output surfaces and its shell mappings.
Definition at line 204 of file wayland_backend.h.
|
explicit |
Definition at line 413 of file wayland_backend.cpp.
|
override |
Definition at line 419 of file wayland_backend.cpp.
|
overridevirtual |
Reimplemented from KWin::OutputBackend.
Definition at line 508 of file wayland_backend.cpp.
|
overridevirtual |
Reimplemented from KWin::OutputBackend.
Definition at line 513 of file wayland_backend.cpp.
|
overridevirtual |
Reimplemented from KWin::OutputBackend.
Definition at line 518 of file wayland_backend.cpp.
|
override |
Definition at line 575 of file wayland_backend.cpp.
|
inline |
Definition at line 217 of file wayland_backend.h.
WaylandOutput * WaylandBackend::findOutput | ( | KWayland::Client::Surface * | nativeSurface | ) | const |
Definition at line 523 of file wayland_backend.cpp.
|
inline |
Definition at line 243 of file wayland_backend.h.
wl_buffer * WaylandBackend::importBuffer | ( | GraphicsBuffer * | graphicsBuffer | ) |
Definition at line 636 of file wayland_backend.cpp.
|
overridevirtual |
Implements KWin::OutputBackend.
Definition at line 435 of file wayland_backend.cpp.
|
overridevirtual |
Implements KWin::OutputBackend.
Definition at line 570 of file wayland_backend.cpp.
|
signal |
|
overridevirtual |
Reimplemented from KWin::OutputBackend.
Definition at line 580 of file wayland_backend.cpp.
|
overridevirtual |
Implements KWin::OutputBackend.
Definition at line 673 of file wayland_backend.cpp.
|
inline |
Definition at line 221 of file wayland_backend.h.
|
inline |
Definition at line 248 of file wayland_backend.h.
void WaylandBackend::setEglDisplay | ( | std::unique_ptr< EglDisplay > && | display | ) |
Definition at line 668 of file wayland_backend.cpp.
|
overridevirtual |
The CompositingTypes supported by the Platform. The first item should be the most preferred one.
Implements KWin::OutputBackend.
Definition at line 560 of file wayland_backend.cpp.
bool WaylandBackend::supportsPointerLock | ( | ) |
Definition at line 533 of file wayland_backend.cpp.
void WaylandBackend::togglePointerLock | ( | ) |
Definition at line 538 of file wayland_backend.cpp.
|
inline |
Definition at line 233 of file wayland_backend.h.