KWin
Loading...
Searching...
No Matches
src
colors
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
14
namespace
KWin
15
{
16
17
class
Output;
18
class
ColorDevicePrivate;
19
23
class
KWIN_EXPORT
ColorDevice
:
public
QObject
24
{
25
Q_OBJECT
26
27
public
:
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
56
public
Q_SLOTS:
57
void
update();
58
void
scheduleUpdate();
59
60
Q_SIGNALS:
64
void
brightnessChanged
();
68
void
temperatureChanged
();
69
70
private
:
71
std::unique_ptr<ColorDevicePrivate> d;
72
};
73
74
}
// namespace KWin
KWin::ColorDevice
Definition
colordevice.h:24
KWin::ColorDevice::brightnessChanged
void brightnessChanged()
KWin::ColorDevice::temperatureChanged
void temperatureChanged()
KWin::Output
Definition
output.h:132
globals.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0