Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 663 of file qcursor.cpp.

Referenced by initialize(), and setBitmap().

+ Here is the caller graph for this function:

◆ ~QCursorData()

QCursorData::~QCursorData ( )

Definition at line 668 of file qcursor.cpp.

References bm, and bmm.

Member Function Documentation

◆ cleanup()

void QCursorData::cleanup ( )
static

Definition at line 675 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 690 of file qcursor.cpp.

References QCursorData(), 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 call graph for this function:
+ 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 699 of file qcursor.cpp.

References QCursorData(), Qt::BitmapCursor, bm, d, initialize(), 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 718 of file qcursor.cpp.

Member Data Documentation

◆ bm

QBitmap* QCursorData::bm

Definition at line 38 of file qcursor_p.h.

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

◆ 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

bool QCursorData::initialized = false
static

Definition at line 41 of file qcursor_p.h.

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

◆ 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: