File indexing completed on 2024-11-10 04:57:06

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #include "platformcursor.h"
0010 #include "cursor.h"
0011 
0012 namespace KWin
0013 {
0014 namespace QPA
0015 {
0016 
0017 PlatformCursor::PlatformCursor()
0018     : QPlatformCursor()
0019 {
0020 }
0021 
0022 PlatformCursor::~PlatformCursor() = default;
0023 
0024 QPoint PlatformCursor::pos() const
0025 {
0026     return Cursors::self()->mouse()->pos().toPoint();
0027 }
0028 
0029 void PlatformCursor::setPos(const QPoint &pos)
0030 {
0031     Cursors::self()->mouse()->setPos(pos);
0032 }
0033 
0034 void PlatformCursor::changeCursor(QCursor *windowCursor, QWindow *window)
0035 {
0036     // TODO: implement
0037 }
0038 
0039 }
0040 }