You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
731 B
42 lines
731 B
/* |
|
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 |
|
} |
|
|
|
} |
|
}
|
|
|