43 #include <private/qcursor_p.h> 60 : cshape(s), bm(0), bmm(0), hx(0), hy(0), id(s)
89 qWarning(
"QCursor: Cannot create bitmap cursor; invalid bitmap(s)");
99 d->
hx = hotX >= 0 ? hotX : bitmap.
width() / 2;
100 d->
hy = hotY >= 0 ? hotY : bitmap.
height() / 2;
109 #endif //QT_NO_CURSOR 116 int cursorCount = cursors.
count();
117 for (
int i = 0; i < cursorCount; ++i) {
120 return cursor.
data()->pos();
137 int cursorCount = cursors.
count();
138 for (
int i = 0; i < cursorCount; ++i) {
141 cursor.
data()->setPos(target);
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.
int count(const T &t) const
Returns the number of occurrences of value in the list.
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)
const T & at(int i) const
Returns the item at index position i in the list.
Q_CORE_EXPORT void qWarning(const char *,...)
void update()
Creates the cursor.
The QPoint class defines a point in the plane using integer precision.
#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.
QCursorData * qt_cursorTable[Qt::LastCursor+1]
static QPoint pos()
Returns the position of the cursor (hot spot) in global screen coordinates.
The QWeakPointer class holds a weak reference to a shared pointer.
The QList class is a template class that provides lists.