KWin
|
#include <xdgshell.h>
Signals | |
void | toplevelCreated (XdgToplevelInterface *toplevel) |
void | popupCreated (XdgPopupInterface *popup) |
void | pongReceived (quint32 serial) |
void | pingTimeout (quint32 serial) |
void | pingDelayed (quint32 serial) |
Public Member Functions | |
XdgShellInterface (Display *display, QObject *parent=nullptr) | |
~XdgShellInterface () override | |
Display * | display () const |
quint32 | ping (XdgSurfaceInterface *surface) |
std::chrono::milliseconds | pingTimeoutInterval () const |
void | setPingTimeoutInterval (std::chrono::milliseconds pingTimeout) |
Friends | |
class | XdgShellInterfacePrivate |
The XdgShellInterface class represents an extension for destrop-style user interfaces.
The XdgShellInterface class provides a way for a client to extend a regular Wayland surface with functionality required to construct user interface elements, e.g. toplevel windows or menus.
XdgShellInterface corresponds to the WaylandInterface xdg_wm_base
.
Definition at line 44 of file xdgshell.h.
KWin::XdgShellInterface::XdgShellInterface | ( | Display * | display, |
QObject * | parent = nullptr ) |
Constructs an XdgShellInterface object with the given wayland display display.
Definition at line 108 of file xdgshell.cpp.
|
override |
Destructs the XdgShellInterface object.
Definition at line 116 of file xdgshell.cpp.
Display * KWin::XdgShellInterface::display | ( | ) | const |
Returns the wayland display of the XdgShellInterface.
Definition at line 120 of file xdgshell.cpp.
quint32 KWin::XdgShellInterface::ping | ( | XdgSurfaceInterface * | surface | ) |
Sends a ping event to the client with the given xdg-surface surface. If the client replies to the event within a reasonable amount of time, pongReceived signal will be emitted.
Definition at line 125 of file xdgshell.cpp.
|
signal |
This signal is emitted when the client has not responded to a ping event with serial serial within a reasonable amount of time.
|
signal |
This signal is emitted when the client has not responded to a ping event with serial serial within a reasonable amount of time and the compositor gave up on it.
std::chrono::milliseconds KWin::XdgShellInterface::pingTimeoutInterval | ( | ) | const |
Returns the ping timeout.
Definition at line 138 of file xdgshell.cpp.
|
signal |
This signal is emitted when the client has responded to a ping event with serial serial.
|
signal |
This signal is emitted when a new XdgPopupInterface object is created.
void KWin::XdgShellInterface::setPingTimeoutInterval | ( | std::chrono::milliseconds | pingTimeout | ) |
Set the ping timeout.
Definition at line 143 of file xdgshell.cpp.
|
signal |
This signal is emitted when a new XdgToplevelInterface object is created.
|
friend |
Definition at line 112 of file xdgshell.h.