Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.h
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | Copyright 2014 Martin Gräßlin <mgraesslin@kde.org> | 2 | Copyright 2014 Martin Gräßlin <mgraesslin@kde.org> | ||
3 | Copyright 2018 David Edmundson <davidedmundson@kde.org> | ||||
3 | 4 | | |||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public | ||
6 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either | ||
7 | version 2.1 of the License, or (at your option) version 3, or any | 8 | version 2.1 of the License, or (at your option) version 3, or any | ||
8 | later version accepted by the membership of KDE e.V. (or its | 9 | later version accepted by the membership of KDE e.V. (or its | ||
9 | successor approved by the membership of KDE e.V.), which shall | 10 | successor approved by the membership of KDE e.V.), which shall | ||
10 | act as a proxy defined in Section 6 of version 3 of the license. | 11 | act as a proxy defined in Section 6 of version 3 of the license. | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
83 | class PointerGesturesInterface; | 84 | class PointerGesturesInterface; | ||
84 | enum class PointerConstraintsInterfaceVersion; | 85 | enum class PointerConstraintsInterfaceVersion; | ||
85 | class PointerConstraintsInterface; | 86 | class PointerConstraintsInterface; | ||
86 | class XdgForeignInterface; | 87 | class XdgForeignInterface; | ||
87 | class AppMenuManagerInterface; | 88 | class AppMenuManagerInterface; | ||
88 | class ServerSideDecorationPaletteManagerInterface; | 89 | class ServerSideDecorationPaletteManagerInterface; | ||
89 | class PlasmaVirtualDesktopManagementInterface; | 90 | class PlasmaVirtualDesktopManagementInterface; | ||
90 | class XdgOutputManagerInterface; | 91 | class XdgOutputManagerInterface; | ||
92 | class XdgDecorationManagerInterface; | ||||
91 | 93 | | |||
92 | /** | 94 | /** | ||
93 | * @brief Class holding the Wayland server display loop. | 95 | * @brief Class holding the Wayland server display loop. | ||
94 | * | 96 | * | ||
95 | * @todo Improve documentation | 97 | * @todo Improve documentation | ||
96 | **/ | 98 | **/ | ||
97 | class KWAYLANDSERVER_EXPORT Display : public QObject | 99 | class KWAYLANDSERVER_EXPORT Display : public QObject | ||
98 | { | 100 | { | ||
▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Line(s) | 104 | public: | |||
273 | * Creates the PlasmaVirtualDesktopManagementInterface in interface @p version. | 275 | * Creates the PlasmaVirtualDesktopManagementInterface in interface @p version. | ||
274 | * | 276 | * | ||
275 | * @returns The created manager object | 277 | * @returns The created manager object | ||
276 | * @since 5.52 | 278 | * @since 5.52 | ||
277 | **/ | 279 | **/ | ||
278 | PlasmaVirtualDesktopManagementInterface *createPlasmaVirtualDesktopManagement(QObject *parent = nullptr); | 280 | PlasmaVirtualDesktopManagementInterface *createPlasmaVirtualDesktopManagement(QObject *parent = nullptr); | ||
279 | 281 | | |||
280 | /** | 282 | /** | ||
283 | * Creates the XdgDecorationManagerInterface | ||||
284 | * @arg shellInterface A created XdgShellInterface based on XDG_WM_BASE | ||||
285 | * | ||||
286 | * @return the created manager | ||||
287 | * @since 5.XDG_DECO_VERSION | ||||
288 | */ | ||||
289 | XdgDecorationManagerInterface *createXdgDecorationManager(XdgShellInterface *shellInterface, QObject *parent = nullptr); | ||||
290 | | ||||
291 | /** | ||||
281 | * Gets the ClientConnection for the given @p client. | 292 | * Gets the ClientConnection for the given @p client. | ||
282 | * If there is no ClientConnection yet for the given @p client, it will be created. | 293 | * If there is no ClientConnection yet for the given @p client, it will be created. | ||
283 | * @param client The native client for which the ClientConnection is retrieved | 294 | * @param client The native client for which the ClientConnection is retrieved | ||
284 | * @return The ClientConnection for the given native client | 295 | * @return The ClientConnection for the given native client | ||
285 | **/ | 296 | **/ | ||
286 | ClientConnection *getConnection(wl_client *client); | 297 | ClientConnection *getConnection(wl_client *client); | ||
287 | QVector<ClientConnection*> connections() const; | 298 | QVector<ClientConnection*> connections() const; | ||
288 | 299 | | |||
Show All 33 Lines |