KWin
Loading...
Searching...
No Matches
src
scene
cursoritem.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#pragma once
8
9
#include "
scene/item.h
"
10
11
namespace
KWin
12
{
13
14
class
ImageItem;
15
class
SurfaceInterface;
16
class
SurfaceItemWayland;
17
18
class
CursorItem
:
public
Item
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
CursorItem
(
Scene
*
scene
,
Item
*parent =
nullptr
);
24
~CursorItem
()
override
;
25
26
private
:
27
void
refresh();
28
void
setSurface(
SurfaceInterface
*surface);
29
void
setImage(
const
QImage &image);
30
31
std::unique_ptr<ImageItem> m_imageItem;
32
std::unique_ptr<SurfaceItemWayland> m_surfaceItem;
33
};
34
35
}
// namespace KWin
KWin::CursorItem
Definition
cursoritem.h:19
KWin::CursorItem::CursorItem
CursorItem(Scene *scene, Item *parent=nullptr)
Definition
cursoritem.cpp:19
KWin::CursorItem::~CursorItem
~CursorItem() override
Definition
cursoritem.cpp:26
KWin::Item
Definition
item.h:30
KWin::Item::scene
Scene * scene() const
Definition
item.cpp:32
KWin::Scene
Definition
scene.h:44
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
item.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0