kwin/plugins/qpa/platformcursor.cpp

43 lines
731 B
C++
Raw Normal View History

2020-08-02 22:22:19 +00:00
/*
KWin - the KDE window manager
This file is part of the KDE project.
2020-08-02 22:22:19 +00:00
SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
2020-08-02 22:22:19 +00:00
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
}
}
}