Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWaylandRegistry.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Luna Lovecraft <ciubix8514@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef _KIS_WAYLAND_REGISTRY_
8#define _KIS_WAYLAND_REGISTRY_
9#include "qwayland-wayland.h"
10#include <qscopedpointer.h>
11
13class KisWaylandRegistry : QtWayland::wl_registry
14{
15public:
17 bool globalExists(const QString &interface);
20
21protected:
22 void registry_global(uint32_t name, const QString &interface, uint32_t version) override;
23 void registry_global_remove(uint32_t name) override;
24
25private:
26 struct Private;
27 QScopedPointer<Private> d;
28};
29
30#endif
Wayland registry for tracking wayland globals.
QScopedPointer< Private > d
static KisWaylandRegistry * getOrCreate()
void registry_global_remove(uint32_t name) override
bool globalExists(const QString &interface)
void registry_global(uint32_t name, const QString &interface, uint32_t version) override