KWin
Loading...
Searching...
No Matches
src
lidswitchtracker.h
Go to the documentation of this file.
1
/*
2
KWin - the KDE window manager
3
This file is part of the KDE project.
4
5
SPDX-FileCopyrightText: 2023 Xaver Hugl <xaver.hugl@gmail.com>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#pragma once
10
#include "
input_event_spy.h
"
11
12
#include <QObject>
13
14
namespace
KWin
15
{
16
17
class
LidSwitchTracker
:
public
QObject,
InputEventSpy
18
{
19
Q_OBJECT
20
public
:
21
explicit
LidSwitchTracker
();
22
23
bool
isLidClosed
()
const
;
24
25
Q_SIGNALS:
26
void
lidStateChanged
();
27
28
private
:
29
void
switchEvent(
KWin::SwitchEvent
*event)
override
;
30
31
bool
m_isLidClosed =
false
;
32
};
33
34
}
KWin::InputEventSpy
Definition
input_event_spy.h:39
KWin::LidSwitchTracker
Definition
lidswitchtracker.h:18
KWin::LidSwitchTracker::LidSwitchTracker
LidSwitchTracker()
Definition
lidswitchtracker.cpp:16
KWin::LidSwitchTracker::lidStateChanged
void lidStateChanged()
KWin::LidSwitchTracker::isLidClosed
bool isLidClosed() const
Definition
lidswitchtracker.cpp:21
KWin::SwitchEvent
Definition
input_event.h:162
input_event_spy.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0