KWin
Loading...
Searching...
No Matches
tileseditoreffect.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2022 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
10
11#include <QAction>
12
13namespace KWin
14{
15
17{
18 Q_OBJECT
20
21public:
23 ~TilesEditorEffect() override;
24
25 void reconfigure(ReconfigureFlags) override;
26
27 int animationDuration() const;
28 void setAnimationDuration(int duration);
29
30 int requestedEffectChainPosition() const override;
31 void grabbedKeyboardEvent(QKeyEvent *keyEvent) override;
32
33public Q_SLOTS:
34 void toggle();
35 void activate();
36 void deactivate(int timeout);
37
38Q_SIGNALS:
40
41protected:
42 QVariantMap initialProperties(Output *screen) override;
43
44private:
45 void realDeactivate();
46
47 std::unique_ptr<QTimer> m_shutdownTimer;
48 std::unique_ptr<QAction> m_toggleAction;
49 QList<QKeySequence> m_toggleShortcut;
50 int m_animationDuration = 200;
51};
52
53} // namespace KWin
void grabbedKeyboardEvent(QKeyEvent *keyEvent) override
void reconfigure(ReconfigureFlags) override
QVariantMap initialProperties(Output *screen) override
int requestedEffectChainPosition() const override
void setAnimationDuration(int duration)