1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QCURSOR_P_H
5#define QCURSOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of a number of Qt sources files. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtCore/qatomic.h"
20#include "QtCore/qnamespace.h"
21#include "QtGui/qpixmap.h"
22
23
24QT_BEGIN_NAMESPACE
25
26
27class QBitmap;
28class QCursorData {
29public:
30 QCursorData(Qt::CursorShape s = Qt::ArrowCursor);
31 ~QCursorData();
32
33 static void initialize();
34 static void cleanup();
35
36 QAtomicInt ref;
37 Qt::CursorShape cshape;
38 QBitmap *bm, *bmm;
39 QPixmap pixmap;
40 short hx, hy;
41 static bool initialized;
42 void update();
43 static QCursorData *setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY,
44 qreal devicePixelRatio);
45};
46
47extern QCursorData *qt_cursorTable[Qt::LastCursor + 1]; // qcursor.cpp
48
49QT_END_NAMESPACE
50
51#endif // QCURSOR_P_H
52

source code of qtbase/src/gui/kernel/qcursor_p.h