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
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
24
QT_BEGIN_NAMESPACE
25
26
27
class
QBitmap;
28
class
QCursorData
{
29
public
:
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
47
extern
QCursorData
*
qt_cursorTable
[Qt::LastCursor + 1];
// qcursor.cpp
48
49
QT_END_NAMESPACE
50
51
#
endif
// QCURSOR_P_H
QCursorData
Definition
qcursor_p.h:28
QCursorData::bm
QBitmap * bm
Definition
qcursor_p.h:38
QCursorData::hx
short hx
Definition
qcursor_p.h:40
QCursorData::initialized
static bool initialized
Definition
qcursor_p.h:41
QCursorData::bmm
QBitmap * bmm
Definition
qcursor_p.h:38
QCursorData::pixmap
QPixmap pixmap
Definition
qcursor_p.h:39
QCursorData::QCursorData
QCursorData(Qt::CursorShape s=Qt::ArrowCursor)
Definition
qcursor.cpp:662
QCursorData::cshape
Qt::CursorShape cshape
Definition
qcursor_p.h:37
QCursorData::setBitmap
static QCursorData * setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY, qreal devicePixelRatio)
Definition
qcursor.cpp:698
QCursorData::update
void update()
Definition
qcursor.cpp:717
QCursorData::hy
short hy
Definition
qcursor_p.h:40
QCursorData::initialize
static void initialize()
Definition
qcursor.cpp:689
QCursorData::cleanup
static void cleanup()
Definition
qcursor.cpp:674
QCursorData::~QCursorData
~QCursorData()
Definition
qcursor.cpp:667
QCursorData::ref
QAtomicInt ref
Definition
qcursor_p.h:36
qt_cursorTable
QCursorData * qt_cursorTable[Qt::LastCursor+1]
Definition
qcursor.cpp:659
qtbase
src
gui
kernel
qcursor_p.h
Generated on
for Qt by
1.14.0