43 #include <private/qcursor_p.h> 60 : cshape(s), bm(0), bmm(0), hx(0), hy(0), id(s)
92 qWarning(
"QCursor: Cannot create bitmap cursor; invalid bitmap(s)");
102 d->
hx = hotX >= 0 ? hotX : bitmap.
width() / 2;
103 d->
hy = hotY >= 0 ? hotY : bitmap.
height() / 2;
113 #endif //QT_NO_CURSOR 133 if (pos() ==
QPoint(x, y))
HCURSOR_or_HANDLE handle() const
Returns a platform-specific cursor handle.
#define QT_END_NAMESPACE
This macro expands to.
int width() const
Returns the width of the pixmap.
QSize size() const
Returns the size of the pixmap.
void setCursorPosition(int x, int y)
static QWSDisplay * qwsDisplay()
bool ref()
Atomically increments the value of this QAtomicInt.
int depth() const
Returns the depth of the pixmap.
static void setPos(int x, int y)
Moves the cursor (hot spot) to the global screen position (x, y).
static QCursorData * setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY)
The QBitmap class provides monochrome (1-bit depth) pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QCursorData(Qt::CursorShape s=Qt::ArrowCursor)
void destroyCursor(int id)
Q_CORE_EXPORT void qWarning(const char *,...)
QCursorData * qt_cursorTable[Qt::LastCursor+1]
void update()
Creates the cursor.
The QPoint class defines a point in the plane using integer precision.
void defineCursor(int id, const QBitmap &curs, const QBitmap &mask, int hotX, int hotY)
#define QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
int height() const
Returns the height of the pixmap.
static QPoint pos()
Returns the position of the cursor (hot spot) in global screen coordinates.