Debian Codegraph @

src/wayland/colormanagement_v1.h

raw symbols SCIP
1 /*
2 SPDX-FileCopyrightText: 2024 Xaver Hugl <[email protected]>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #pragma once
7 #include "core/colorspace.h"cxx . . $ `<file>/src/core/colorspace.h`/
8
9 #include "wayland/qwayland-server-color-management-v1.h"cxx . . $ `<file>/build/src/wayland/qwayland-server-color-management-v1.h`/
10 #include <QObject>
11 #include <QPointer>
12
13 namespace KWincxx . . $ KWin/
14 {
15
16 class Displaycxx . . $ KWin/Display#;
17 class SurfaceInterfacecxx . . $ KWin/SurfaceInterface#;
18 class Outputcxx . . $ KWin/Output#;
19
20 class ColorManagerV1cxx . . $ KWin/ColorManagerV1# : public QObjectcxx . . $ QObject#, private QtWaylandServercxx . . $ QtWaylandServer/::wp_color_manager_v1cxx . . $ QtWaylandServer/wp_color_manager_v1#
21 {
22 Q_OBJECTcxx . . $ QMetaObject#Call#
23 public:
24 explicit ColorManagerV1cxx . . $ KWin/ColorManagerV1#ColorManagerV1(bd42d34c9ba5f17f).(Displaycxx . . $ KWin/Display# *display, QObjectcxx . . $ QObject# *parent);
25
26 private:
27 void wp_color_manager_v1_bind_resourcecxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_bind_resource(6e801bab58325d84).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource) override;
28 void wp_color_manager_v1_destroycxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_destroy(6e801bab58325d84).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource) override;
29 void wp_color_manager_v1_get_outputcxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_get_output(340553006d351ce4).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# id, struct ::wl_resourcecxx . . $ wl_resource# *output) override;
30 void wp_color_manager_v1_get_surfacecxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_get_surface(340553006d351ce4).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# id, struct ::wl_resourcecxx . . $ wl_resource# *surface) override;
31 void wp_color_manager_v1_get_surface_feedbackcxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_get_surface_feedback(340553006d351ce4).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# id, struct ::wl_resourcecxx . . $ wl_resource# *surface) override;
32 void wp_color_manager_v1_create_icc_creatorcxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_create_icc_creator(681f87993c69879b).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# obj) override;
33 void wp_color_manager_v1_create_parametric_creatorcxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_create_parametric_creator(681f87993c69879b).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# obj) override;
34 void wp_color_manager_v1_create_windows_scrgbcxx . . $ KWin/ColorManagerV1#wp_color_manager_v1_create_windows_scrgb(681f87993c69879b).(Resourcecxx . . $ QtWaylandServer/wp_color_manager_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# image_description) override;
35 };
36
37 class ColorFeedbackSurfaceV1cxx . . $ KWin/ColorFeedbackSurfaceV1# : private QtWaylandServercxx . . $ QtWaylandServer/::wp_color_management_surface_feedback_v1cxx . . $ QtWaylandServer/wp_color_management_surface_feedback_v1#
38 {
39 public:
40 explicit ColorFeedbackSurfaceV1cxx . . $ KWin/ColorFeedbackSurfaceV1#ColorFeedbackSurfaceV1(9d2a9cef75f4f46a).(wl_clientcxx . . $ wl_client# *client, uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# version, SurfaceInterfacecxx . . $ KWin/SurfaceInterface# *surface);
41 ~cxx . . $ KWin/ColorFeedbackSurfaceV1#`~ColorFeedbackSurfaceV1`(49f6e7a06ebc5aa8).ColorFeedbackSurfaceV1cxx . . $ KWin/ColorFeedbackSurfaceV1#() override;
42
43 void setPreferredColorDescriptioncxx . . $ KWin/ColorFeedbackSurfaceV1#setPreferredColorDescription(81ba7b3d71f3f897).(const ColorDescriptioncxx . . $ KWin/ColorDescription# &descr);
44
45 private:
46 void wp_color_management_surface_feedback_v1_destroy_resourcecxx . . $ KWin/ColorFeedbackSurfaceV1#wp_color_management_surface_feedback_v1_destroy_resource(4491952306d36313).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_feedback_v1#Resource# *resource) override;
47 void wp_color_management_surface_feedback_v1_destroycxx . . $ KWin/ColorFeedbackSurfaceV1#wp_color_management_surface_feedback_v1_destroy(4491952306d36313).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_feedback_v1#Resource# *resource) override;
48 void wp_color_management_surface_feedback_v1_get_preferredcxx . . $ KWin/ColorFeedbackSurfaceV1#wp_color_management_surface_feedback_v1_get_preferred(c04f943aa8507c3).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_feedback_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# image_description) override;
49 void wp_color_management_surface_feedback_v1_get_preferred_parametriccxx . . $ KWin/ColorFeedbackSurfaceV1#wp_color_management_surface_feedback_v1_get_preferred_parametric(c04f943aa8507c3).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_feedback_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# image_description) override;
50
51 QPointercxx . . $ QPointer#<SurfaceInterfacecxx . . $ KWin/SurfaceInterface#> m_surfacecxx . . $ KWin/ColorFeedbackSurfaceV1#m_surface.;
52 ColorDescriptioncxx . . $ KWin/ColorDescription# m_preferredcxx . . $ KWin/ColorFeedbackSurfaceV1#m_preferred.;
53 };
54
55 class ColorSurfaceV1cxx . . $ KWin/ColorSurfaceV1# : private QtWaylandServercxx . . $ QtWaylandServer/::wp_color_management_surface_v1cxx . . $ QtWaylandServer/wp_color_management_surface_v1#
56 {
57 public:
58 explicit ColorSurfaceV1cxx . . $ KWin/ColorSurfaceV1#ColorSurfaceV1(9d2a9cef75f4f46a).(wl_clientcxx . . $ wl_client# *client, uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# version, SurfaceInterfacecxx . . $ KWin/SurfaceInterface# *surface);
59 ~cxx . . $ KWin/ColorSurfaceV1#`~ColorSurfaceV1`(49f6e7a06ebc5aa8).ColorSurfaceV1cxx . . $ KWin/ColorSurfaceV1#() override;
60
61 private:
62 void wp_color_management_surface_v1_destroy_resourcecxx . . $ KWin/ColorSurfaceV1#wp_color_management_surface_v1_destroy_resource(c04e40f2f985efcf).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_v1#Resource# *resource) override;
63 void wp_color_management_surface_v1_destroycxx . . $ KWin/ColorSurfaceV1#wp_color_management_surface_v1_destroy(c04e40f2f985efcf).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_v1#Resource# *resource) override;
64 void wp_color_management_surface_v1_set_image_descriptioncxx . . $ KWin/ColorSurfaceV1#wp_color_management_surface_v1_set_image_description(c98fed95b063172d).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_v1#Resource# *resource, struct ::wl_resourcecxx . . $ wl_resource# *image_description, uint32_tcxx . . $ uint32_t# render_intent) override;
65 void wp_color_management_surface_v1_unset_image_descriptioncxx . . $ KWin/ColorSurfaceV1#wp_color_management_surface_v1_unset_image_description(c04e40f2f985efcf).(Resourcecxx . . $ QtWaylandServer/wp_color_management_surface_v1#Resource# *resource) override;
66
67 QPointercxx . . $ QPointer#<SurfaceInterfacecxx . . $ KWin/SurfaceInterface#> m_surfacecxx . . $ KWin/ColorSurfaceV1#m_surface.;
68 };
69
70 class ColorParametricCreatorV1cxx . . $ KWin/ColorParametricCreatorV1# : private QtWaylandServercxx . . $ QtWaylandServer/::wp_image_description_creator_params_v1cxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#
71 {
72 public:
73 explicit ColorParametricCreatorV1cxx . . $ KWin/ColorParametricCreatorV1#ColorParametricCreatorV1(c51229b4771ea640).(wl_clientcxx . . $ wl_client# *client, uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# version);
74
75 private:
76 void wp_image_description_creator_params_v1_destroy_resourcecxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_destroy_resource(7d650528f403be6e).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource) override;
77 void wp_image_description_creator_params_v1_createcxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_create(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# image_description) override;
78 void wp_image_description_creator_params_v1_set_tf_namedcxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_tf_named(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# tf) override;
79 void wp_image_description_creator_params_v1_set_tf_powercxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_tf_power(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# eexp) override;
80 void wp_image_description_creator_params_v1_set_primaries_namedcxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_primaries_named(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# primaries) override;
81 void wp_image_description_creator_params_v1_set_primariescxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_primaries(42a9dd2f73a314cc).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, int32_tcxx . . $ int32_t# r_x, int32_tcxx . . $ int32_t# r_y, int32_tcxx . . $ int32_t# g_x, int32_tcxx . . $ int32_t# g_y, int32_tcxx . . $ int32_t# b_x, int32_tcxx . . $ int32_t# b_y, int32_tcxx . . $ int32_t# w_x, int32_tcxx . . $ int32_t# w_y) override;
82 void wp_image_description_creator_params_v1_set_mastering_display_primariescxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_mastering_display_primaries(42a9dd2f73a314cc).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, int32_tcxx . . $ int32_t# r_x, int32_tcxx . . $ int32_t# r_y, int32_tcxx . . $ int32_t# g_x, int32_tcxx . . $ int32_t# g_y, int32_tcxx . . $ int32_t# b_x, int32_tcxx . . $ int32_t# b_y, int32_tcxx . . $ int32_t# w_x, int32_tcxx . . $ int32_t# w_y) override;
83 void wp_image_description_creator_params_v1_set_mastering_luminancecxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_mastering_luminance(a4e88d7c519611c8).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# min_lum, uint32_tcxx . . $ uint32_t# max_lum) override;
84 void wp_image_description_creator_params_v1_set_max_cllcxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_max_cll(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# max_cll) override;
85 void wp_image_description_creator_params_v1_set_max_fallcxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_max_fall(a5a58329b54d8760).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# max_fall) override;
86 void wp_image_description_creator_params_v1_set_luminancescxx . . $ KWin/ColorParametricCreatorV1#wp_image_description_creator_params_v1_set_luminances(8efae70aed136a87).(Resourcecxx . . $ QtWaylandServer/wp_image_description_creator_params_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# min_lum, uint32_tcxx . . $ uint32_t# max_lum, uint32_tcxx . . $ uint32_t# reference_lum) override;
87
88 stdcxx . . $ std/::optionalcxx . . $ std/optional#<Colorimetrycxx . . $ KWin/Colorimetry#> m_colorimetrycxx . . $ KWin/ColorParametricCreatorV1#m_colorimetry.;
89 stdcxx . . $ std/::optionalcxx . . $ std/optional#<TransferFunctioncxx . . $ KWin/TransferFunction#::Typecxx . . $ KWin/TransferFunction#Type#> m_transferFunctionTypecxx . . $ KWin/ColorParametricCreatorV1#m_transferFunctionType.;
90 struct Luminancescxx . . $ KWin/ColorParametricCreatorV1#Luminances#
91 {
92 double mincxx . . $ KWin/ColorParametricCreatorV1#Luminances#min.;
93 double maxcxx . . $ KWin/ColorParametricCreatorV1#Luminances#max.;
94 double referencecxx . . $ KWin/ColorParametricCreatorV1#Luminances#reference.;
95 };
96 stdcxx . . $ std/::optionalcxx . . $ std/optional#<Luminancescxx . . $ KWin/ColorParametricCreatorV1#Luminances#> m_transferFunctionLuminancescxx . . $ KWin/ColorParametricCreatorV1#m_transferFunctionLuminances.;
97
98 // mastering display information
99 stdcxx . . $ std/::optionalcxx . . $ std/optional#<Colorimetrycxx . . $ KWin/Colorimetry#> m_masteringColorimetrycxx . . $ KWin/ColorParametricCreatorV1#m_masteringColorimetry.;
100 stdcxx . . $ std/::optionalcxx . . $ std/optional#<double> m_minMasteringLuminancecxx . . $ KWin/ColorParametricCreatorV1#m_minMasteringLuminance.;
101 stdcxx . . $ std/::optionalcxx . . $ std/optional#<double> m_maxMasteringLuminancecxx . . $ KWin/ColorParametricCreatorV1#m_maxMasteringLuminance.;
102 stdcxx . . $ std/::optionalcxx . . $ std/optional#<double> m_maxCllcxx . . $ KWin/ColorParametricCreatorV1#m_maxCll.;
103 stdcxx . . $ std/::optionalcxx . . $ std/optional#<double> m_maxFallcxx . . $ KWin/ColorParametricCreatorV1#m_maxFall.;
104 };
105
106 class ImageDescriptionV1cxx . . $ KWin/ImageDescriptionV1# : private QtWaylandServercxx . . $ QtWaylandServer/::wp_image_description_v1cxx . . $ QtWaylandServer/wp_image_description_v1#
107 {
108 public:
109 explicit ImageDescriptionV1cxx . . $ KWin/ImageDescriptionV1#ImageDescriptionV1(29066fbadedb84cf).(wl_clientcxx . . $ wl_client# *client, uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# version, const stdcxx . . $ std/::optionalcxx . . $ std/optional#<ColorDescriptioncxx . . $ KWin/ColorDescription#> &color);
110
111 const stdcxx . . $ std/::optionalcxx . . $ std/optional#<ColorDescriptioncxx . . $ KWin/ColorDescription#> &descriptioncxx . . $ KWin/ImageDescriptionV1#description(eb8187c10a364396).() const;
112
113 static ImageDescriptionV1cxx . . $ KWin/ImageDescriptionV1# *getcxx . . $ KWin/ImageDescriptionV1#get(aec2ef9ce867fca).(wl_resourcecxx . . $ wl_resource# *resource);
114 static uint64_tcxx . . $ uint64_t# s_idCountercxx . . $ KWin/ImageDescriptionV1#s_idCounter.;
115
116 private:
117 void wp_image_description_v1_destroy_resourcecxx . . $ KWin/ImageDescriptionV1#wp_image_description_v1_destroy_resource(1f1baee8fc1428b8).(Resourcecxx . . $ QtWaylandServer/wp_image_description_v1#Resource# *resource) override;
118 void wp_image_description_v1_destroycxx . . $ KWin/ImageDescriptionV1#wp_image_description_v1_destroy(1f1baee8fc1428b8).(Resourcecxx . . $ QtWaylandServer/wp_image_description_v1#Resource# *resource) override;
119 void wp_image_description_v1_get_informationcxx . . $ KWin/ImageDescriptionV1#wp_image_description_v1_get_information(9d00f22f3b3a5e60).(Resourcecxx . . $ QtWaylandServer/wp_image_description_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# information) override;
120
121 const stdcxx . . $ std/::optionalcxx . . $ std/optional#<ColorDescriptioncxx . . $ KWin/ColorDescription#> m_descriptioncxx . . $ KWin/ImageDescriptionV1#m_description.;
122 };
123
124 class ColorManagementOutputV1cxx . . $ KWin/ColorManagementOutputV1# : public QObjectcxx . . $ QObject#, private QtWaylandServercxx . . $ QtWaylandServer/::wp_color_management_output_v1cxx . . $ QtWaylandServer/wp_color_management_output_v1#
125 {
126 Q_OBJECTcxx . . $ KWin/ColorManagementOutputV1#qt_staticMetaObjectContent.
127 public:
128 explicit ColorManagementOutputV1cxx . . $ KWin/ColorManagementOutputV1#ColorManagementOutputV1(405f75b7e61870d6).(wl_clientcxx . . $ wl_client# *client, uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# version, Outputcxx . . $ KWin/Output# *output);
129
130 private:
131 void colorDescriptionChangedcxx . . $ KWin/ColorManagementOutputV1#colorDescriptionChanged(49f6e7a06ebc5aa8).();
132 void wp_color_management_output_v1_destroy_resourcecxx . . $ KWin/ColorManagementOutputV1#wp_color_management_output_v1_destroy_resource(942afcbe0d9483af).(Resourcecxx . . $ QtWaylandServer/wp_color_management_output_v1#Resource# *resource) override;
133 void wp_color_management_output_v1_destroycxx . . $ KWin/ColorManagementOutputV1#wp_color_management_output_v1_destroy(942afcbe0d9483af).(Resourcecxx . . $ QtWaylandServer/wp_color_management_output_v1#Resource# *resource) override;
134 void wp_color_management_output_v1_get_image_descriptioncxx . . $ KWin/ColorManagementOutputV1#wp_color_management_output_v1_get_image_description(d4f37ba7780dbdd4).(Resourcecxx . . $ QtWaylandServer/wp_color_management_output_v1#Resource# *resource, uint32_tcxx . . $ uint32_t# image_description) override;
135
136 Outputcxx . . $ KWin/Output# *const m_outputcxx . . $ KWin/ColorManagementOutputV1#m_output.;
137 ColorDescriptioncxx . . $ KWin/ColorDescription# m_colorDescriptioncxx . . $ KWin/ColorManagementOutputV1#m_colorDescription.;
138 };
139
140 }