Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QCursorData Class Reference

#include <qcursor_p.h>

+ Collaboration diagram for QCursorData:

Public Member Functions

 QCursorData (Qt::CursorShape s=Qt::ArrowCursor)
 
 ~QCursorData ()
 
void update ()
 

Static Public Member Functions

static void initialize ()
 
static void cleanup ()
 
static QCursorDatasetBitmap (const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY, qreal devicePixelRatio)
 

Public Attributes

QAtomicInt ref
 
Qt::CursorShape cshape
 
QBitmapbm
 
QBitmapbmm
 
QPixmap pixmap
 
short hx
 
short hy
 

Static Public Attributes

static bool initialized = false
 

Detailed Description

Definition at line 28 of file qcursor_p.h.

Constructor & Destructor Documentation

◆ QCursorData()

QCursorData::QCursorData ( Qt::CursorShape  s = Qt::ArrowCursor)

Definition at line 672 of file qcursor.cpp.

◆ ~QCursorData()

QCursorData::~QCursorData ( )

Definition at line 677 of file qcursor.cpp.

References bm, and bmm.

Member Function Documentation

◆ cleanup()

void QCursorData::cleanup ( )
static

Definition at line 684 of file qcursor.cpp.

References initialized, Qt::LastCursor, and qt_cursorTable.

Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate().

+ Here is the caller graph for this function:

◆ initialize()

void QCursorData::initialize ( )
static

Definition at line 699 of file qcursor.cpp.

References initialized, Qt::LastCursor, and qt_cursorTable.

Referenced by QCursor::QCursor(), QCursor::QCursor(), QCursor::QCursor(), QCursor::bitmap(), QCursor::hotSpot(), QCursor::mask(), QCursor::operator=(), QCursor::pixmap(), Q_TRACE_INSTRUMENT(), setBitmap(), QCursor::setShape(), and QCursor::shape().

+ Here is the caller graph for this function:

◆ setBitmap()

QCursorData * QCursorData::setBitmap ( const QBitmap bitmap,
const QBitmap mask,
int  hotX,
int  hotY,
qreal  devicePixelRatio 
)
static

Definition at line 708 of file qcursor.cpp.

References Qt::BitmapCursor, d, initialize(), initialized, qt_cursorTable, qWarning, QBasicAtomicInteger< T >::ref(), and ref.

Referenced by QCursor::QCursor(), and QCursor::QCursor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update()

void QCursorData::update ( )

Definition at line 728 of file qcursor.cpp.

Member Data Documentation

◆ bm

QBitmap* QCursorData::bm

Definition at line 38 of file qcursor_p.h.

Referenced by ~QCursorData(), and QCursor::bitmap().

◆ bmm

QBitmap * QCursorData::bmm

Definition at line 38 of file qcursor_p.h.

Referenced by ~QCursorData(), and QCursor::mask().

◆ cshape

Qt::CursorShape QCursorData::cshape

Definition at line 37 of file qcursor_p.h.

Referenced by QCursor::shape().

◆ hx

short QCursorData::hx

Definition at line 40 of file qcursor_p.h.

Referenced by QCursor::hotSpot().

◆ hy

short QCursorData::hy

Definition at line 40 of file qcursor_p.h.

Referenced by QCursor::hotSpot().

◆ initialized

◆ pixmap

QPixmap QCursorData::pixmap

Definition at line 39 of file qcursor_p.h.

Referenced by QCursor::QCursor(), and QCursor::pixmap().

◆ ref


The documentation for this class was generated from the following files: