KWayland::Server::Display
#include <display.h>

Public Types | |
enum | StartMode { ConnectToSocket, ConnectClientsOnly } |
Properties | |
bool | automaticSocketNaming |
bool | running |
QString | socketName |
![]() | |
objectName | |
Signals | |
void | aboutToTerminate () |
void | automaticSocketNamingChanged (bool) |
void | clientConnected (KWayland::Server::ClientConnection *) |
void | clientDisconnected (KWayland::Server::ClientConnection *) |
void | runningChanged (bool) |
void | socketNameChanged (const QString &) |
Additional Inherited Members | |
![]() | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
typedef | QObjectList |
![]() | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
Class holding the Wayland server display loop.
- Todo:
- Improve documentation
Member Enumeration Documentation
◆ StartMode
|
strong |
Member Function Documentation
◆ createAppMenuManagerInterface()
AppMenuManagerInterface * KWayland::Server::Display::createAppMenuManagerInterface | ( | QObject * | parent = nullptr | ) |
Creates the AppMenuManagerInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.42
Definition at line 534 of file display.cpp.
◆ createClient()
ClientConnection * KWayland::Server::Display::createClient | ( | int | fd | ) |
Create a client for the given file descriptor.
The client is created as if it connected through the normal server socket. This method can be used to create a connection bypassing the normal socket connection. It's recommended to use together with socketpair and pass the other side of the socket to the client.
- Parameters
-
fd The file descriptor for the socket to the client
- Returns
- The new ClientConnection or
null
on failure.
Definition at line 701 of file display.cpp.
◆ createEglStreamControllerInterface()
EglStreamControllerInterface * KWayland::Server::Display::createEglStreamControllerInterface | ( | QObject * | parent = nullptr | ) |
Creates the EglStreamControllerInterface.
- Returns
- the created EGL Stream controller
- Since
- 5.58
Definition at line 588 of file display.cpp.
◆ createIdleInhibitManager()
IdleInhibitManagerInterface * KWayland::Server::Display::createIdleInhibitManager | ( | const IdleInhibitManagerInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
Creates the IdleInhibitManagerInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.41
Definition at line 520 of file display.cpp.
◆ createKeyStateInterface()
KeyStateInterface * KWayland::Server::Display::createKeyStateInterface | ( | QObject * | parent = nullptr | ) |
- Since
- 5.60
Definition at line 597 of file display.cpp.
◆ createLinuxDmabufInterface()
LinuxDmabufUnstableV1Interface * KWayland::Server::Display::createLinuxDmabufInterface | ( | QObject * | parent = nullptr | ) |
Creates the LinuxDmabufUnstableV1Interface in interface version
.
- Returns
- A pointer to the created interface
Definition at line 552 of file display.cpp.
◆ createPlasmaVirtualDesktopManagement()
PlasmaVirtualDesktopManagementInterface * KWayland::Server::Display::createPlasmaVirtualDesktopManagement | ( | QObject * | parent = nullptr | ) |
Creates the PlasmaVirtualDesktopManagementInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.52
Definition at line 561 of file display.cpp.
◆ createPointerConstraints()
PointerConstraintsInterface * KWayland::Server::Display::createPointerConstraints | ( | const PointerConstraintsInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
Creates the PointerConstraintsInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.29
Definition at line 497 of file display.cpp.
◆ createPointerGestures()
PointerGesturesInterface * KWayland::Server::Display::createPointerGestures | ( | const PointerGesturesInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
Creates the PointerGesturesInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.29
Definition at line 483 of file display.cpp.
◆ createRelativePointerManager()
RelativePointerManagerInterface * KWayland::Server::Display::createRelativePointerManager | ( | const RelativePointerInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
Creates the RelativePointerManagerInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.28
Definition at line 469 of file display.cpp.
◆ createServerSideDecorationManager()
ServerSideDecorationManagerInterface * KWayland::Server::Display::createServerSideDecorationManager | ( | QObject * | parent = nullptr | ) |
- Since
- 5.6
Definition at line 421 of file display.cpp.
◆ createServerSideDecorationPaletteManager()
ServerSideDecorationPaletteManagerInterface * KWayland::Server::Display::createServerSideDecorationPaletteManager | ( | QObject * | parent = nullptr | ) |
Creates the ServerSideDecorationPaletteManagerInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.42
Definition at line 543 of file display.cpp.
◆ createTabletManagerInterface()
TabletManagerInterface * KWayland::Server::Display::createTabletManagerInterface | ( | QObject * | parent = nullptr | ) |
Creates the entry point to support wacom-like tablets and pens.
- Since
- 5.67
Definition at line 606 of file display.cpp.
◆ createTextInputManager()
TextInputManagerInterface * KWayland::Server::Display::createTextInputManager | ( | const TextInputInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
Create the text input manager in interface version
.
- Returns
- The created manager object
- Since
- 5.23
Definition at line 430 of file display.cpp.
◆ createXdgDecorationManager()
XdgDecorationManagerInterface * KWayland::Server::Display::createXdgDecorationManager | ( | XdgShellInterface * | shellInterface, |
QObject * | parent = nullptr |
||
) |
Creates the XdgDecorationManagerInterface.
- shellInterface A created XdgShellInterface based on XDG_WM_BASE
- Returns
- the created manager
- Since
- 5.54
Definition at line 579 of file display.cpp.
◆ createXdgForeignInterface()
XdgForeignInterface * KWayland::Server::Display::createXdgForeignInterface | ( | QObject * | parent = nullptr | ) |
Creates the XdgForeignInterface in interface version
.
- Returns
- The created manager object
- Since
- 5.40
Definition at line 511 of file display.cpp.
◆ createXdgOutputManager()
XdgOutputManagerInterface * KWayland::Server::Display::createXdgOutputManager | ( | QObject * | parent = nullptr | ) |
Creates the XdgOutputManagerInterface.
- Returns
- the created manager
- Since
- 5.47
Definition at line 570 of file display.cpp.
◆ createXdgShell()
XdgShellInterface * KWayland::Server::Display::createXdgShell | ( | const XdgShellInterfaceVersion & | version, |
QObject * | parent = nullptr |
||
) |
◆ dispatchEvents()
void KWayland::Server::Display::dispatchEvents | ( | int | msecTimeout = -1 | ) |
Dispatches pending events in a blocking way.
May only be used if the Display is created and started before the QCoreApplication is created. Once the QCoreApplication is created and the event loop is started this method delegates to the normal dispatch handling.
- See also
- startLoop
Definition at line 207 of file display.cpp.
◆ eglDisplay()
void * KWayland::Server::Display::eglDisplay | ( | ) | const |
- Returns
- the EGLDisplay used for this Wayland display or EGL_NO_DISPLAY if not set.
- See also
- setEglDisplay
- Since
- 5.3
Definition at line 721 of file display.cpp.
◆ getConnection()
ClientConnection * KWayland::Server::Display::getConnection | ( | wl_client * | client | ) |
Gets the ClientConnection for the given client
.
If there is no ClientConnection yet for the given client
, it will be created.
- Parameters
-
client The native client for which the ClientConnection is retrieved
- Returns
- The ClientConnection for the given native client
Definition at line 673 of file display.cpp.
◆ seats()
QVector< SeatInterface * > KWayland::Server::Display::seats | ( | ) | const |
- Returns
- All SeatInterface currently managed on the Display.
- Since
- 5.6
Definition at line 668 of file display.cpp.
◆ setAutomaticSocketNaming()
void KWayland::Server::Display::setAutomaticSocketNaming | ( | bool | automaticSocketNaming | ) |
If automaticSocketNaming is true, the manually set socketName is ignored and it will use wl_display_add_socket_auto on start to get a free socket with a filename "wayland-%d" instead.
The effective socket is written into socketName.
- Since
- 5.55
Definition at line 158 of file display.cpp.
◆ setEglDisplay()
void KWayland::Server::Display::setEglDisplay | ( | void * | display | ) |
Set the EGL display
for this Wayland display.
The EGLDisplay can only be set once and must be alive as long as the Wayland display is alive. The user should have set up the binding between the EGLDisplay and the Wayland display prior to calling this method.
- See also
- eglDisplay
- Since
- 5.3
Definition at line 712 of file display.cpp.
◆ setSocketName()
void KWayland::Server::Display::setSocketName | ( | const QString & | name | ) |
Sets the basename of the socket to name
.
If name
is empty, it will use wl_display_add_socket_auto to get a free socket with a filename "wayland-%d".
Definition at line 144 of file display.cpp.
◆ startLoop()
void KWayland::Server::Display::startLoop | ( | ) |
Starts the event loop for the server socket.
This method should only be used if start() is used before creating the QCoreApplication. In that case start() cannot fully setup the event processing and the loop needs to be started after the QCoreApplication got created.
- See also
- start
- dispatchEvents
Definition at line 200 of file display.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 03:54:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.