KWin
Loading...
Searching...
No Matches
src
utils
orientationsensor.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2019 Roman Gilg <subdiff@gmail.com>
3
SPDX-FileCopyrightText: 2023 Xaver Hugl <xaver.hugl@gmail.com>
4
5
SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
#pragma once
8
9
#include <QObject>
10
#include <memory>
11
12
class
QOrientationSensor;
13
class
QOrientationReading;
14
15
namespace
KWin
16
{
17
18
class
OrientationSensor
:
public
QObject
19
{
20
Q_OBJECT
21
public
:
22
explicit
OrientationSensor
();
23
~OrientationSensor
();
24
25
void
setEnabled
(
bool
enable);
26
QOrientationReading *
reading
()
const
;
27
28
Q_SIGNALS:
29
void
orientationChanged
();
30
31
private
:
32
void
update();
33
34
const
std::unique_ptr<QOrientationSensor> m_sensor;
35
const
std::unique_ptr<QOrientationReading> m_reading;
36
};
37
38
}
KWin::OrientationSensor
Definition
orientationsensor.h:19
KWin::OrientationSensor::setEnabled
void setEnabled(bool enable)
Definition
orientationsensor.cpp:23
KWin::OrientationSensor::orientationChanged
void orientationChanged()
KWin::OrientationSensor::reading
QOrientationReading * reading() const
Definition
orientationsensor.cpp:34
KWin::OrientationSensor::~OrientationSensor
~OrientationSensor()
KWin::OrientationSensor::OrientationSensor
OrientationSensor()
Definition
orientationsensor.cpp:14
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0