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

Wrapper for the org_kde_plasma_virtual_desktop_management interface. More...

#include <plasmavirtualdesktop.h>

Inheritance diagram for KWin::PlasmaVirtualDesktopManagementInterface:

Signals

void desktopActivated (const QString &id)
 
void desktopRemoveRequested (const QString &id)
 
void desktopCreateRequested (const QString &name, quint32 position)
 

Public Member Functions

 PlasmaVirtualDesktopManagementInterface (Display *display, QObject *parent=nullptr)
 
 ~PlasmaVirtualDesktopManagementInterface () override
 
void setRows (quint32 rows)
 
PlasmaVirtualDesktopInterfacedesktop (const QString &id)
 
PlasmaVirtualDesktopInterfacecreateDesktop (const QString &id, quint32 position=std::numeric_limits< uint32_t >::max())
 
void removeDesktop (const QString &id)
 
QList< PlasmaVirtualDesktopInterface * > desktops () const
 
void sendDone ()
 

Detailed Description

Wrapper for the org_kde_plasma_virtual_desktop_management interface.

This class provides a convenient wrapper for the org_kde_plasma_virtual_desktop_management interface.

Definition at line 25 of file plasmavirtualdesktop.h.

Constructor & Destructor Documentation

◆ PlasmaVirtualDesktopManagementInterface()

KWin::PlasmaVirtualDesktopManagementInterface::PlasmaVirtualDesktopManagementInterface ( Display * display,
QObject * parent = nullptr )
explicit

Definition at line 115 of file plasmavirtualdesktop.cpp.

◆ ~PlasmaVirtualDesktopManagementInterface()

KWin::PlasmaVirtualDesktopManagementInterface::~PlasmaVirtualDesktopManagementInterface ( )
override

Definition at line 121 of file plasmavirtualdesktop.cpp.

Member Function Documentation

◆ createDesktop()

PlasmaVirtualDesktopInterface * KWin::PlasmaVirtualDesktopManagementInterface::createDesktop ( const QString & id,
quint32 position = std::numeric_limits<uint32_t>::max() )
Returns
A desktop identified uniquely by this id, if not found a new desktop will be created for this id at a given position.
Parameters
idthe id for the desktop
positionthe position the desktop will be in, if not provided, it will be appended at the end. If the desktop was already existing, position is ignored.

Definition at line 155 of file plasmavirtualdesktop.cpp.

◆ desktop()

PlasmaVirtualDesktopInterface * KWin::PlasmaVirtualDesktopManagementInterface::desktop ( const QString & id)
Returns
A desktop identified uniquely by this id. If not found, nullptr will be returned.
See also
createDesktop

Definition at line 146 of file plasmavirtualdesktop.cpp.

◆ desktopActivated

void KWin::PlasmaVirtualDesktopManagementInterface::desktopActivated ( const QString & id)
signal

A desktop has been activated

◆ desktopCreateRequested

void KWin::PlasmaVirtualDesktopManagementInterface::desktopCreateRequested ( const QString & name,
quint32 position )
signal

The client asked to create a desktop, It's responsibility of the server deciding whether to create it or not.

Parameters
nameThe desired user readable name
positionThe desired position. Normalized, guaranteed to be in the range 0-count

◆ desktopRemoveRequested

void KWin::PlasmaVirtualDesktopManagementInterface::desktopRemoveRequested ( const QString & id)
signal

The client asked to remove a desktop, It's responsibility of the server deciding whether to remove it or not.

◆ desktops()

QList< PlasmaVirtualDesktopInterface * > KWin::PlasmaVirtualDesktopManagementInterface::desktops ( ) const
Returns
All tghe desktops present.

Definition at line 204 of file plasmavirtualdesktop.cpp.

◆ removeDesktop()

void KWin::PlasmaVirtualDesktopManagementInterface::removeDesktop ( const QString & id)

Removed and destroys the desktop identified by id, if present

Definition at line 187 of file plasmavirtualdesktop.cpp.

◆ sendDone()

void KWin::PlasmaVirtualDesktopManagementInterface::sendDone ( )

Inform the clients that all the properties have been sent, and their client-side representation is complete.

Definition at line 209 of file plasmavirtualdesktop.cpp.

◆ setRows()

void KWin::PlasmaVirtualDesktopManagementInterface::setRows ( quint32 rows)

Sets how many rows the virtual desktops should be laid into

Definition at line 129 of file plasmavirtualdesktop.cpp.


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