KWin
|
#include <xdgshell.h>
Public Member Functions | |
XdgPositioner () | |
XdgPositioner (const XdgPositioner &other) | |
~XdgPositioner () | |
XdgPositioner & | operator= (const XdgPositioner &other) |
bool | isComplete () const |
QSize | size () const |
bool | isReactive () const |
QRectF | placement (const QRectF &bounds) const |
Static Public Member Functions | |
static XdgPositioner | get (::wl_resource *resource) |
The XdgPositioner class provides a collection of rules for the placement of a popup surface.
XdgPositioner corresponds to the Wayland interface xdg_positioner
.
Definition at line 430 of file xdgshell.h.
XdgPositioner::XdgPositioner | ( | ) |
Constructs an incomplete XdgPositioner object.
Definition at line 1017 of file xdgshell.cpp.
XdgPositioner::XdgPositioner | ( | const XdgPositioner & | other | ) |
Constructs a copy of the XdgPositioner object.
Definition at line 1022 of file xdgshell.cpp.
XdgPositioner::~XdgPositioner | ( | ) |
Destructs the XdgPositioner object.
Definition at line 1027 of file xdgshell.cpp.
|
static |
Returns the current state of the xdg positioner object identified by resource.
Definition at line 1167 of file xdgshell.cpp.
bool XdgPositioner::isComplete | ( | ) | const |
Returns true
if the positioner object is complete; otherwise returns false
.
An xdg positioner considered complete if it has a valid size and a valid anchor rect.
Definition at line 1037 of file xdgshell.cpp.
bool XdgPositioner::isReactive | ( | ) | const |
Returns whether the surface should respond to movements in its parent window.
Definition at line 1047 of file xdgshell.cpp.
XdgPositioner & XdgPositioner::operator= | ( | const XdgPositioner & | other | ) |
Assigns the value of other to this XdgPositioner object.
Definition at line 1031 of file xdgshell.cpp.
QRectF XdgPositioner::placement | ( | const QRectF & | bounds | ) | const |
Returns the unconstrained geometry of the popup. The bounds is in the parent local coordinate space.
Definition at line 1052 of file xdgshell.cpp.
QSize XdgPositioner::size | ( | ) | const |
Returns the window geometry size of the surface that is to be positioned.
Definition at line 1042 of file xdgshell.cpp.