File indexing completed on 2024-09-08 13:19:52
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2018 Martin Flöser <mgraesslin@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 #pragma once 0010 #include "input_event_spy.h" 0011 0012 namespace KWin 0013 { 0014 0015 class HideCursorSpy : public InputEventSpy 0016 { 0017 public: 0018 void pointerEvent(KWin::MouseEvent *event) override; 0019 void wheelEvent(KWin::WheelEvent *event) override; 0020 void touchDown(qint32 id, const QPointF &pos, std::chrono::microseconds time) override; 0021 void tabletToolEvent(TabletEvent *event) override; 0022 0023 private: 0024 void showCursor(); 0025 void hideCursor(); 0026 0027 bool m_cursorHidden = false; 0028 }; 0029 0030 }