KWin
Loading...
Searching...
No Matches
platformcursor.cpp
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#include "platformcursor.h"
10#include "cursor.h"
11
12namespace KWin
13{
14namespace QPA
15{
16
18 : QPlatformCursor()
19{
20}
21
23
24QPoint PlatformCursor::pos() const
25{
26 return Cursors::self()->mouse()->pos().toPoint();
27}
28
29void PlatformCursor::setPos(const QPoint &pos)
30{
32}
33
34void PlatformCursor::changeCursor(QCursor *windowCursor, QWindow *window)
35{
36 // TODO: implement
37}
38
39}
40}
QPointF pos()
Definition cursor.cpp:204
void setPos(const QPointF &pos)
Definition cursor.cpp:210
static Cursors * self()
Definition cursor.cpp:35
Cursor * mouse() const
Definition cursor.h:266
void setPos(const QPoint &pos) override
QPoint pos() const override
void changeCursor(QCursor *windowCursor, QWindow *window) override