Qt
6.x
The Qt SDK
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
QAtomicInt
\inmodule QtCore
Definition
qatomic.h:112
QBitmap
\inmodule QtGui
Definition
qbitmap.h:16
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::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:708
QCursorData::update
void update()
Definition
qcursor.cpp:728
QCursorData::hy
short hy
Definition
qcursor_p.h:40
QCursorData::initialize
static void initialize()
Definition
qcursor.cpp:699
QCursorData::cleanup
static void cleanup()
Definition
qcursor.cpp:684
QCursorData::~QCursorData
~QCursorData()
Definition
qcursor.cpp:677
QCursorData::ref
QAtomicInt ref
Definition
qcursor_p.h:36
QPixmap
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition
qpixmap.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
Qt::CursorShape
CursorShape
Definition
qnamespace.h:1150
Qt::LastCursor
@ LastCursor
Definition
qnamespace.h:1173
Qt::ArrowCursor
@ ArrowCursor
Definition
qnamespace.h:1151
qt_cursorTable
QCursorData * qt_cursorTable[Qt::LastCursor+1]
Definition
qcursor.cpp:669
mask
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition
qopengles2ext.h:893
bitmap
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
Definition
qopenglext.h:5182
s
GLdouble s
[6]
Definition
qopenglext.h:235
qreal
double qreal
Definition
qtypes.h:92
qtbase
src
gui
kernel
qcursor_p.h
Generated by
1.9.7