KWayland::Client::XdgPositioner

Search for usage in LXR

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.

Since
5.39

Definition at line 44 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 461 of file xdgshell.cpp.

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

An additional offset that should be applied from the anchor.

Definition at line 471 of file xdgshell.cpp.

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

The area this popup should be positioned around.

Definition at line 451 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 491 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 481 of file xdgshell.cpp.

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

The size of the surface that is to be positioned.

Definition at line 441 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 Mon Oct 25 2021 22:52:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.