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