KWin
|
#include <xdgshell.h>
Signals | |
void | aboutToBeDestroyed () |
void | initializeRequested () |
void | grabRequested (SeatInterface *seat, quint32 serial) |
void | repositionRequested (quint32 token) |
Public Member Functions | |
XdgPopupInterface (XdgSurfaceInterface *surface, SurfaceInterface *parentSurface, const XdgPositioner &positioner, ::wl_resource *resource) | |
~XdgPopupInterface () override | |
XdgShellInterface * | shell () const |
SurfaceInterface * | parentSurface () const |
XdgSurfaceInterface * | xdgSurface () const |
SurfaceInterface * | surface () const |
XdgPositioner | positioner () const |
bool | isConfigured () const |
quint32 | sendConfigure (const QRect &rect) |
void | sendPopupDone () |
void | sendRepositioned (quint32 token) |
Static Public Member Functions | |
static SurfaceRole * | role () |
static XdgPopupInterface * | get (::wl_resource *resource) |
Friends | |
class | XdgPopupInterfacePrivate |
The XdgPopupInterface class represents a surface that can be used to implement context menus, popovers and other similar short-lived user interface elements.
XdgPopupInterface corresponds to the Wayland interface xdg_popup
.
Definition at line 490 of file xdgshell.h.
KWin::XdgPopupInterface::XdgPopupInterface | ( | XdgSurfaceInterface * | surface, |
SurfaceInterface * | parentSurface, | ||
const XdgPositioner & | positioner, | ||
::wl_resource * | resource ) |
Definition at line 759 of file xdgshell.cpp.
|
override |
Destructs the XdgPopupInterface object.
Definition at line 771 of file xdgshell.cpp.
|
signal |
This signal is emitted when the xdg-popup is about to be destroyed.
|
static |
Returns the XdgPopupInterface for the specified wayland resource object resource.
Definition at line 835 of file xdgshell.cpp.
|
signal |
|
signal |
This signal is emitted when the xdg-popup has commited the initial state and wants to be configured. After initializing the popup, you must send a configure event.
bool KWin::XdgPopupInterface::isConfigured | ( | ) | const |
Returns true
if the popup has been configured; otherwise returns false
.
Definition at line 801 of file xdgshell.cpp.
SurfaceInterface * KWin::XdgPopupInterface::parentSurface | ( | ) | const |
Returns the parent surface for this popup surface. If the initial state hasn't been committed yet, this function may return null
.
Definition at line 786 of file xdgshell.cpp.
XdgPositioner KWin::XdgPopupInterface::positioner | ( | ) | const |
Returns the XdgPositioner assigned to this XdgPopupInterface.
Definition at line 806 of file xdgshell.cpp.
|
signal |
|
static |
Definition at line 780 of file xdgshell.cpp.
quint32 KWin::XdgPopupInterface::sendConfigure | ( | const QRect & | rect | ) |
Sends a configure event to the client and returns the serial number of the event.
Definition at line 811 of file xdgshell.cpp.
void KWin::XdgPopupInterface::sendPopupDone | ( | ) |
Sends a popup done event to the client.
Definition at line 824 of file xdgshell.cpp.
void KWin::XdgPopupInterface::sendRepositioned | ( | quint32 | token | ) |
Sends a popup repositioned event to the client.
Definition at line 829 of file xdgshell.cpp.
XdgShellInterface * KWin::XdgPopupInterface::shell | ( | ) | const |
SurfaceInterface * KWin::XdgPopupInterface::surface | ( | ) | const |
Returns the SurfaceInterface associated with the XdgPopupInterface.
Definition at line 796 of file xdgshell.cpp.
XdgSurfaceInterface * KWin::XdgPopupInterface::xdgSurface | ( | ) | const |
Returns the XdgSurfaceInterface associated with the XdgPopupInterface.
Definition at line 791 of file xdgshell.cpp.
|
friend |
Definition at line 567 of file xdgshell.h.