Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcursor_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QCURSOR_P_H
6#define QCURSOR_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of a number of Qt sources files. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtGui/private/qtguiglobal_p.h>
20#include "QtCore/qatomic.h"
21#include "QtCore/qnamespace.h"
22#include "QtGui/qpixmap.h"
23
24
25QT_BEGIN_NAMESPACE
26
27
28class QBitmap;
30public:
31 QCursorData(Qt::CursorShape s = Qt::ArrowCursor);
32 ~QCursorData();
33
34 static void initialize();
35 static void cleanup();
36
39 QBitmap *bm, *bmm;
41 short hx, hy;
42 static bool initialized;
43 void update();
44 static QCursorData *setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY,
45 qreal devicePixelRatio);
46};
47
48extern QCursorData *qt_cursorTable[Qt::LastCursor + 1]; // qcursor.cpp
49
50QT_END_NAMESPACE
51
52#endif // QCURSOR_P_H
QBitmap * bm
Definition qcursor_p.h:39
static bool initialized
Definition qcursor_p.h:42
QBitmap * bmm
Definition qcursor_p.h:39
QPixmap pixmap
Definition qcursor_p.h:40
QCursorData(Qt::CursorShape s=Qt::ArrowCursor)
Definition qcursor.cpp:663
Qt::CursorShape cshape
Definition qcursor_p.h:38
static QCursorData * setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY, qreal devicePixelRatio)
Definition qcursor.cpp:699
void update()
Definition qcursor.cpp:718
static void initialize()
Definition qcursor.cpp:690
static void cleanup()
Definition qcursor.cpp:675
QAtomicInt ref
Definition qcursor_p.h:37
QCursorData * qt_cursorTable[Qt::LastCursor+1]
Definition qcursor.cpp:660