KWin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
KWin::XdgPositioner Class Reference

#include <xdgshell.h>

Public Member Functions

 XdgPositioner ()
 
 XdgPositioner (const XdgPositioner &other)
 
 ~XdgPositioner ()
 
XdgPositioneroperator= (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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XdgPositioner() [1/2]

XdgPositioner::XdgPositioner ( )

Constructs an incomplete XdgPositioner object.

Definition at line 1017 of file xdgshell.cpp.

◆ XdgPositioner() [2/2]

XdgPositioner::XdgPositioner ( const XdgPositioner & other)

Constructs a copy of the XdgPositioner object.

Definition at line 1022 of file xdgshell.cpp.

◆ ~XdgPositioner()

XdgPositioner::~XdgPositioner ( )

Destructs the XdgPositioner object.

Definition at line 1027 of file xdgshell.cpp.

Member Function Documentation

◆ get()

XdgPositioner XdgPositioner::get ( ::wl_resource * resource)
static

Returns the current state of the xdg positioner object identified by resource.

Definition at line 1167 of file xdgshell.cpp.

◆ isComplete()

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.

◆ isReactive()

bool XdgPositioner::isReactive ( ) const

Returns whether the surface should respond to movements in its parent window.

Definition at line 1047 of file xdgshell.cpp.

◆ operator=()

XdgPositioner & XdgPositioner::operator= ( const XdgPositioner & other)

Assigns the value of other to this XdgPositioner object.

Definition at line 1031 of file xdgshell.cpp.

◆ placement()

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.

◆ size()

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.


The documentation for this class was generated from the following files: