KWin
|
#include <layershell_v1.h>
Public Types | |
enum | Layer { BackgroundLayer , BottomLayer , TopLayer , OverlayLayer } |
Signals | |
void | aboutToBeDestroyed () |
void | configureAcknowledged (quint32 serial) |
void | acceptsFocusChanged () |
void | layerChanged () |
void | anchorChanged () |
void | desiredSizeChanged () |
void | exclusiveZoneChanged () |
void | marginsChanged () |
Public Member Functions | |
LayerSurfaceV1Interface (LayerShellV1Interface *shell, SurfaceInterface *surface, OutputInterface *output, Layer layer, const QString &scope, wl_resource *resource) | |
~LayerSurfaceV1Interface () override | |
bool | isCommitted () const |
SurfaceInterface * | surface () const |
Qt::Edges | anchor () const |
QSize | desiredSize () const |
Layer | layer () const |
bool | acceptsFocus () const |
QMargins | margins () const |
int | leftMargin () const |
int | rightMargin () const |
int | topMargin () const |
int | bottomMargin () const |
int | exclusiveZone () const |
Qt::Edge | exclusiveEdge () const |
OutputInterface * | output () const |
QString | scope () const |
quint32 | sendConfigure (const QSize &size) |
void | sendClosed () |
Static Public Member Functions | |
static SurfaceRole * | role () |
The LayerSurfaceV1Interface class represents a desktop shell surface, e.g. panel, etc.
The LayerSurfaceV1Interface corresponds to the Wayland interface zwlr_layer_surface_v1
.
Definition at line 58 of file layershell_v1.h.
Enumerator | |
---|---|
BackgroundLayer | |
BottomLayer | |
TopLayer | |
OverlayLayer |
Definition at line 63 of file layershell_v1.h.
KWin::LayerSurfaceV1Interface::LayerSurfaceV1Interface | ( | LayerShellV1Interface * | shell, |
SurfaceInterface * | surface, | ||
OutputInterface * | output, | ||
Layer | layer, | ||
const QString & | scope, | ||
wl_resource * | resource ) |
Definition at line 393 of file layershell_v1.cpp.
|
override |
Definition at line 410 of file layershell_v1.cpp.
|
signal |
bool KWin::LayerSurfaceV1Interface::acceptsFocus | ( | ) | const |
Returns true
if the surface accepts keyboard input; otherwise returns false
.
Definition at line 440 of file layershell_v1.cpp.
|
signal |
Qt::Edges KWin::LayerSurfaceV1Interface::anchor | ( | ) | const |
Returns the anchor point relative to which the surface will be positioned. If no edges have been specified, the center of the screen is assumed to be the anchor point.
Definition at line 430 of file layershell_v1.cpp.
|
signal |
int KWin::LayerSurfaceV1Interface::bottomMargin | ( | ) | const |
Returns the value of the bottom margin. This is equivalent to calling margins().bottom().
Definition at line 470 of file layershell_v1.cpp.
|
signal |
QSize KWin::LayerSurfaceV1Interface::desiredSize | ( | ) | const |
Returns the desired size for this layer shell surface, in the surface-local coordinates.
Definition at line 435 of file layershell_v1.cpp.
|
signal |
Qt::Edge KWin::LayerSurfaceV1Interface::exclusiveEdge | ( | ) | const |
If the exclusive zone is positive, this function returns the corresponding exclusive anchor edge, otherwise returns a Qt::Edge() value.
Definition at line 480 of file layershell_v1.cpp.
int KWin::LayerSurfaceV1Interface::exclusiveZone | ( | ) | const |
Returns the distance from the anchor edge that should not be occluded.
An exlusive zone of 0 means that the layer surface has to be moved to avoid occluding surfaces with a positive exclusion zone. If the exclusive zone is -1, the layer surface indicates that it doesn't want to be moved to accomodate for other surfaces.
Definition at line 475 of file layershell_v1.cpp.
|
signal |
bool KWin::LayerSurfaceV1Interface::isCommitted | ( | ) | const |
Returns true
if the initial commit has been performed; otherwise returns false
.
Definition at line 420 of file layershell_v1.cpp.
LayerSurfaceV1Interface::Layer KWin::LayerSurfaceV1Interface::layer | ( | ) | const |
Returns the stacking order layer where this layer surface has to be rendered.
Definition at line 445 of file layershell_v1.cpp.
|
signal |
int KWin::LayerSurfaceV1Interface::leftMargin | ( | ) | const |
Returns the value of the left margin. This is equivalent to calling margins().left().
Definition at line 455 of file layershell_v1.cpp.
QMargins KWin::LayerSurfaceV1Interface::margins | ( | ) | const |
Returns the margins object that indicates the distance between an anchor edge and the corresponding surface edge.
Definition at line 450 of file layershell_v1.cpp.
|
signal |
OutputInterface * KWin::LayerSurfaceV1Interface::output | ( | ) | const |
Returns the output where the surface wants to be displayed. This function can return null
, in which case the compositor is free to choose the output where the surface has to be placed.
Definition at line 505 of file layershell_v1.cpp.
int KWin::LayerSurfaceV1Interface::rightMargin | ( | ) | const |
Returns the value of the right margin. This is equivalent to calling margins().right().
Definition at line 465 of file layershell_v1.cpp.
|
static |
Definition at line 414 of file layershell_v1.cpp.
QString KWin::LayerSurfaceV1Interface::scope | ( | ) | const |
Returns the scope of this layer surface. The scope defines the purpose of the surface.
Definition at line 510 of file layershell_v1.cpp.
void KWin::LayerSurfaceV1Interface::sendClosed | ( | ) |
Sends a closed event to the client. The client should destroy the surface after receiving this event. Further changes to the surface will be ignored.
Definition at line 531 of file layershell_v1.cpp.
quint32 KWin::LayerSurfaceV1Interface::sendConfigure | ( | const QSize & | size | ) |
Sends a configure event to the client. size contains the desired size in surface-local coordinates. A size of zero means that the client is free to choose its own dimensions.
Definition at line 515 of file layershell_v1.cpp.
SurfaceInterface * KWin::LayerSurfaceV1Interface::surface | ( | ) | const |
Returns the underlying Wayland surface for this layer shell surface.
Definition at line 425 of file layershell_v1.cpp.
int KWin::LayerSurfaceV1Interface::topMargin | ( | ) | const |
Returns the value of the top margin. This is equivalent to calling margins().top().
Definition at line 460 of file layershell_v1.cpp.