Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWaylandAPISurface.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISWAYLANDAPISURFACE_H
7#define KISWAYLANDAPISURFACE_H
8
9#include <QObject>
10#include <qwayland-color-management-v1.h>
11
13
14class KisWaylandAPISurfaceFeedback : public QObject, public QtWayland::wp_color_management_surface_feedback_v1
15{
16 Q_OBJECT
17public:
18 explicit KisWaylandAPISurfaceFeedback(::wp_color_management_surface_feedback_v1 *obj);
19
21
22 Q_SIGNAL void preferredChanged();
23 void wp_color_management_surface_feedback_v1_preferred_changed(uint32_t identity) override;
24
25 std::unique_ptr<KisWaylandAPIImageDescription> m_preferred;
26
27private:
29};
30
31class KisWaylandAPISurface : public QObject, public QtWayland::wp_color_management_surface_v1
32{
33 Q_OBJECT
34public:
35 explicit KisWaylandAPISurface(::wp_color_management_surface_v1 *obj, std::unique_ptr<KisWaylandAPISurfaceFeedback> &&feedback);
37
38 std::unique_ptr<KisWaylandAPISurfaceFeedback> m_feedback;
39};
40
41#endif /* KISWAYLANDAPISURFACE_H */
Q_SIGNAL void preferredChanged()
KisWaylandAPISurfaceFeedback(::wp_color_management_surface_feedback_v1 *obj)
void wp_color_management_surface_feedback_v1_preferred_changed(uint32_t identity) override
std::unique_ptr< KisWaylandAPIImageDescription > m_preferred
std::unique_ptr< KisWaylandAPISurfaceFeedback > m_feedback
KisWaylandAPISurface(::wp_color_management_surface_v1 *obj, std::unique_ptr< KisWaylandAPISurfaceFeedback > &&feedback)