KWin
Loading...
Searching...
No Matches
colordevice.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "effect/globals.h"
10
11#include <QObject>
12#include <memory>
13
14namespace KWin
15{
16
17class Output;
18class ColorDevicePrivate;
19
23class KWIN_EXPORT ColorDevice : public QObject
24{
25 Q_OBJECT
26
27public:
28 explicit ColorDevice(Output *output, QObject *parent = nullptr);
29 ~ColorDevice() override;
30
34 Output *output() const;
35
39 uint brightness() const;
40
44 void setBrightness(uint brightness);
45
49 uint temperature() const;
50
54 void setTemperature(uint temperature);
55
56public Q_SLOTS:
57 void update();
58 void scheduleUpdate();
59
60Q_SIGNALS:
69
70private:
71 std::unique_ptr<ColorDevicePrivate> d;
72};
73
74} // namespace KWin
void brightnessChanged()
void temperatureChanged()