Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWaylandAPIColorManager.cpp
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
8
9#include <QDebug>
10
12 : QWaylandClientExtensionTemplate(1)
13{
14 connect(this, &QWaylandClientExtensionTemplate::activeChanged, this, [this] {
15 if (!isActive()) {
16 m_supportedFeatures.clear();
17 m_supportedIntents.clear();
20 if (m_isReady) {
21 m_isReady = false;
23 }
24 }
25 });
26}
27
29{
30 // the destruction of the member object is automatically handled
31 // be the extension template class (thanks to the second template
32 // parameter)
33}
34
36{
37 m_supportedIntents.insert(static_cast<render_intent>(_render_intent));
38}
40{
41 m_supportedFeatures.insert(static_cast<feature>(_feature));
42}
44{
45 m_supportedTransferFunctionsNamed.insert(static_cast<transfer_function>(tf));
46}
48{
49 m_supportedPrimariesNamed.insert(static_cast<primaries>(_primaries));
50}
52{
53 if (m_isReady) {
54 qWarning() << "WARNING: KisWaylandAPIColorManager::wp_color_manager_v1_done(): done event arrived while ready is true";
55 }
56
57 m_isReady = true;
59}
60
61#include "moc_KisWaylandAPIColorManager.cpp"
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void wp_color_manager_v1_supported_feature(uint32_t _feature) override
QSet< render_intent > m_supportedIntents
void sigReadyChanged(bool value)
void wp_color_manager_v1_supported_primaries_named(uint32_t _primaries) override
void wp_color_manager_v1_supported_tf_named(uint32_t tf) override
QSet< transfer_function > m_supportedTransferFunctionsNamed
void wp_color_manager_v1_supported_intent(uint32_t _render_intent) override