KWin
Loading...
Searching...
No Matches
src
plugins
qpa
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
12
namespace
KWin
13
{
14
namespace
QPA
15
{
16
17
PlatformCursor::PlatformCursor
()
18
: QPlatformCursor()
19
{
20
}
21
22
PlatformCursor::~PlatformCursor
() =
default
;
23
24
QPoint
PlatformCursor::pos
()
const
25
{
26
return
Cursors::self
()->
mouse
()->
pos
().toPoint();
27
}
28
29
void
PlatformCursor::setPos
(
const
QPoint &pos)
30
{
31
Cursors::self
()->
mouse
()->
setPos
(
pos
);
32
}
33
34
void
PlatformCursor::changeCursor
(QCursor *windowCursor, QWindow *window)
35
{
36
// TODO: implement
37
}
38
39
}
40
}
KWin::Cursor::pos
QPointF pos()
Definition
cursor.cpp:204
KWin::Cursor::setPos
void setPos(const QPointF &pos)
Definition
cursor.cpp:210
KWin::Cursors::self
static Cursors * self()
Definition
cursor.cpp:35
KWin::Cursors::mouse
Cursor * mouse() const
Definition
cursor.h:266
KWin::QPA::PlatformCursor::setPos
void setPos(const QPoint &pos) override
Definition
platformcursor.cpp:29
KWin::QPA::PlatformCursor::pos
QPoint pos() const override
Definition
platformcursor.cpp:24
KWin::QPA::PlatformCursor::changeCursor
void changeCursor(QCursor *windowCursor, QWindow *window) override
Definition
platformcursor.cpp:34
KWin::QPA::PlatformCursor::~PlatformCursor
~PlatformCursor() override
KWin::QPA::PlatformCursor::PlatformCursor
PlatformCursor()
Definition
platformcursor.cpp:17
cursor.h
KWin
Definition
activation_test.cpp:20
platformcursor.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0