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.


Definition at line 44 of file xdgshell.h.

Member Function Documentation

◆ anchorEdge()

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.

◆ anchorOffset()

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

An additional offset that should be applied from the anchor.

Definition at line 471 of file xdgshell.cpp.

◆ anchorRect()

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

The area this popup should be positioned around.

Definition at line 451 of file xdgshell.cpp.

◆ constraints()

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.

◆ gravity()

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.

◆ initialSize()

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-2023 The KDE developers.
Generated on Sun Feb 5 2023 03:56:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.