#include <QtCore/qpoint.h>
#include <QtGui/qwindowdefs.h>
Go to the source code of this file.
◆ operator<<()
Definition at line 255 of file qcursor.cpp.
259 bool isPixmap =
false;
260 if (s.version() >= 7) {
261 isPixmap = !
c.pixmap().isNull();
267 s << *
c.bitmap() << *
c.mask();
◆ operator>>()
Definition at line 285 of file qcursor.cpp.
290 bool isPixmap =
false;
291 if (s.version() >= 7)
301 s >> bm >> bmm >> hot;
302 c =
QCursor(bm, bmm, hot.x(), hot.y());
The QCursor class provides a mouse cursor with an arbitrary shape.
The QBitmap class provides monochrome (1-bit depth) pixmaps.
The QPoint class defines a point in the plane using integer precision.
The QPixmap class is an off-screen image representation that can be used as a paint device...
◆ qt_mac_set_cursor()
void qt_mac_set_cursor |
( |
const QCursor * |
c | ) |
|
Definition at line 108 of file qcursor_mac.mm.
Referenced by qt_mac_updateCursorWithWidgetUnderMouse().
110 #ifdef QT_MAC_USE_COCOA 123 if(c->
d->type == QCursorData::TYPE_ImageCursor) {
124 [
static_cast<NSCursor *
>(c->
d->curs.cp.nscursor)
set];
125 }
else if(c->
d->type == QCursorData::TYPE_ThemeCursor) {
126 if(SetAnimatedThemeCursor(c->
d->curs.tc.curs, 0) == themeBadCursorIndexErr) {
127 SetThemeCursor(c->
d->curs.tc.curs);
129 if(!c->
d->curs.tc.anim)
131 c->
d->curs.tc.anim->start(c->
d->curs.tc.curs);
HCURSOR_or_HANDLE handle() const
Returns a platform-specific cursor handle.
void * qt_mac_nsCursorForQCursor(const QCursor &c)
static QCursorData * currentCursor