KWin
Loading...
Searching...
No Matches
src
utils
xcursortheme.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#pragma once
8
9
#include <kwin_export.h>
10
11
#include <QImage>
12
#include <QList>
13
#include <QSharedDataPointer>
14
15
#include <chrono>
16
17
namespace
KWin
18
{
19
20
class
KXcursorSpritePrivate;
21
class
KXcursorThemePrivate;
22
26
class
KWIN_EXPORT
KXcursorSprite
27
{
28
public
:
32
KXcursorSprite
();
33
37
KXcursorSprite
(
const
KXcursorSprite
&other);
38
42
KXcursorSprite
(
const
QImage &data,
const
QPoint &hotspot,
43
const
std::chrono::milliseconds &delay);
44
48
~KXcursorSprite
();
49
53
KXcursorSprite
&operator=(
const
KXcursorSprite
&other);
54
58
QImage data()
const
;
59
65
QPoint hotspot()
const
;
66
70
std::chrono::milliseconds delay()
const
;
71
72
private
:
73
QSharedDataPointer<KXcursorSpritePrivate> d;
74
};
75
79
class
KWIN_EXPORT
KXcursorTheme
80
{
81
public
:
85
KXcursorTheme
();
86
92
KXcursorTheme
(
const
QString &theme,
int
size, qreal devicePixelRatio);
93
97
KXcursorTheme
(
const
KXcursorTheme
&other);
98
102
~KXcursorTheme
();
103
107
KXcursorTheme
&operator=(
const
KXcursorTheme
&other);
108
109
bool
operator==
(
const
KXcursorTheme
&other);
110
bool
operator!=(
const
KXcursorTheme
&other);
111
115
bool
isEmpty()
const
;
116
120
QList<KXcursorSprite> shape(
const
QByteArray &name)
const
;
121
122
private
:
123
QSharedDataPointer<KXcursorThemePrivate> d;
124
};
125
126
}
// namespace KWin
KWin::KXcursorSprite
Definition
xcursortheme.h:27
KWin::KXcursorTheme
Definition
xcursortheme.h:80
KWin
Definition
activation_test.cpp:20
KWin::operator==
bool operator==(const LinuxDmaBufV1Feedback::Tranche &t1, const LinuxDmaBufV1Feedback::Tranche &t2)
Definition
linuxdmabufv1clientbuffer.cpp:301
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0