KWayland::Client::XdgPositioner Class Reference

#include <xdgshell.h>

Public Types

enum  Constraint {
  SlideX = 1 << 0, SlideY = 1 << 1, FlipX = 1 << 2, FlipY = 1 << 3,
  ResizeX = 1 << 4, ResizeY = 1 << 5
typedef QFlags< Constraint > Constraints

Public Member Functions

 XdgPositioner (const QSize &initialSize=QSize(), const QRect &anchor=QRect())
 XdgPositioner (const XdgPositioner &other)
Qt::Edges anchorEdge () const
QPoint anchorOffset () const
QRect anchorRect () const
Constraints constraints () const
Qt::Edges gravity () const
QSize initialSize () const
void setAnchorEdge (Qt::Edges edge)
void setAnchorOffset (const QPoint &offset)
void setAnchorRect (const QRect &anchor)
void setConstraints (Constraints constraints)
void setGravity (Qt::Edges edge)
void setInitialSize (const QSize &size)

Detailed Description

Builder class describing how a popup should be positioned when created.


Definition at line 45 of file xdgshell.h.

Member Function Documentation

Qt::Edges KWayland::Client::XdgPositioner::anchorEdge ( ) const

Which edge of the anchor should the popup be positioned around.

Definition at line 444 of file xdgshell.cpp.

QPoint KWayland::Client::XdgPositioner::anchorOffset ( ) const

An additional offset that should be applied from the anchor.

Definition at line 454 of file xdgshell.cpp.

QRect KWayland::Client::XdgPositioner::anchorRect ( ) const

The area this popup should be positioned around.

Definition at line 434 of file xdgshell.cpp.

XdgPositioner::Constraints KWayland::Client::XdgPositioner::constraints ( ) const

Specifies how the compositor should position the popup if it does not fit in the requested position.

Definition at line 474 of file xdgshell.cpp.

Qt::Edges KWayland::Client::XdgPositioner::gravity ( ) const

Specifies in what direction the popup should be positioned around the anchor i.e if the gravity is "bottom", then then the top of top of the popup will be at the anchor edge if the gravity is top, then the bottom of the popup will be at the anchor edge.

Definition at line 464 of file xdgshell.cpp.

QSize KWayland::Client::XdgPositioner::initialSize ( ) const

The size of the surface that is to be positioned.

Definition at line 424 of file xdgshell.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 22:52:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.