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
25
QT_BEGIN_NAMESPACE
26
27
28
class
QBitmap;
29
class
QCursorData
{
30
public
:
31
QCursorData
(Qt::CursorShape s =
Qt
::
ArrowCursor
);
32
~
QCursorData
();
33
34
static
void
initialize
();
35
static
void
cleanup
();
36
37
QAtomicInt
ref
;
38
Qt
::
CursorShape
cshape
;
39
QBitmap *
bm
, *
bmm
;
40
QPixmap
pixmap
;
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
48
extern
QCursorData
*
qt_cursorTable
[Qt::LastCursor + 1];
// qcursor.cpp
49
50
QT_END_NAMESPACE
51
52
#
endif
// QCURSOR_P_H
QCursorData
Definition
qcursor_p.h:29
QCursorData::bm
QBitmap * bm
Definition
qcursor_p.h:39
QCursorData::hx
short hx
Definition
qcursor_p.h:41
QCursorData::initialized
static bool initialized
Definition
qcursor_p.h:42
QCursorData::bmm
QBitmap * bmm
Definition
qcursor_p.h:39
QCursorData::pixmap
QPixmap pixmap
Definition
qcursor_p.h:40
QCursorData::QCursorData
QCursorData(Qt::CursorShape s=Qt::ArrowCursor)
Definition
qcursor.cpp:663
QCursorData::cshape
Qt::CursorShape cshape
Definition
qcursor_p.h:38
QCursorData::setBitmap
static QCursorData * setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY, qreal devicePixelRatio)
Definition
qcursor.cpp:699
QCursorData::update
void update()
Definition
qcursor.cpp:718
QCursorData::hy
short hy
Definition
qcursor_p.h:41
QCursorData::initialize
static void initialize()
Definition
qcursor.cpp:690
QCursorData::cleanup
static void cleanup()
Definition
qcursor.cpp:675
QCursorData::~QCursorData
~QCursorData()
Definition
qcursor.cpp:668
QCursorData::ref
QAtomicInt ref
Definition
qcursor_p.h:37
qt_cursorTable
QCursorData * qt_cursorTable[Qt::LastCursor+1]
Definition
qcursor.cpp:660
qtbase
src
gui
kernel
qcursor_p.h
Generated on
for Qt by
1.16.1