2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2016-02-17 11:42:12 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
|
2016-02-17 11:42:12 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2016-02-17 11:42:12 +00:00
|
|
|
#include "platformcursor.h"
|
|
|
|
#include "../../cursor.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
namespace QPA
|
|
|
|
{
|
|
|
|
|
|
|
|
PlatformCursor::PlatformCursor()
|
|
|
|
: QPlatformCursor()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
PlatformCursor::~PlatformCursor() = default;
|
|
|
|
|
|
|
|
QPoint PlatformCursor::pos() const
|
|
|
|
{
|
2020-04-02 16:18:01 +00:00
|
|
|
return Cursors::self()->mouse()->pos();
|
2016-02-17 11:42:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void PlatformCursor::setPos(const QPoint &pos)
|
|
|
|
{
|
2020-04-02 16:18:01 +00:00
|
|
|
Cursors::self()->mouse()->setPos(pos);
|
2016-02-17 11:42:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void PlatformCursor::changeCursor(QCursor *windowCursor, QWindow *window)
|
|
|
|
{
|
|
|
|
Q_UNUSED(windowCursor)
|
|
|
|
Q_UNUSED(window)
|
|
|
|
// TODO: implement
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|