KWin
Loading...
Searching...
No Matches
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
11namespace KWin
12{
13
14class ImageItem;
15class SurfaceInterface;
16class SurfaceItemWayland;
17
18class CursorItem : public Item
19{
20 Q_OBJECT
21
22public:
23 explicit CursorItem(Scene *scene, Item *parent = nullptr);
24 ~CursorItem() override;
25
26private:
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
CursorItem(Scene *scene, Item *parent=nullptr)
~CursorItem() override
Scene * scene() const
Definition item.cpp:32
Resource representing a wl_surface.
Definition surface.h:80