45 #include <QtCore/qpoint.h> 46 #include <QtGui/qwindowdefs.h> 65 static void setPos(
int x,
int y);
66 inline static void setPos(
const QPoint &p) { setPos(p.
x(), p.
y()); }
71 #endif // QT_NO_CURSOR 82 #if defined(Q_OS_SYMBIAN) 83 extern void qt_symbian_show_pointer_sprite();
84 extern void qt_symbian_hide_pointer_sprite();
85 extern void qt_symbian_set_pointer_sprite(
const QCursor& cursor);
86 extern void qt_symbian_move_cursor_sprite();
99 #ifdef Q_COMPILER_RVALUE_REFS 101 {
qSwap(
d, other.d);
return *
this; }
114 static void setPos(
int x,
int y);
118 HCURSOR_or_HANDLE handle()
const;
124 #if defined(Q_WS_WIN) 127 #elif defined(Q_WS_X11) 130 static int x11Screen();
131 #elif defined(Q_WS_MAC) 133 #elif defined(Q_WS_QWS) || defined(Q_WS_QPA) 135 #elif defined(Q_OS_SYMBIAN) 142 #if defined(Q_WS_MAC) 147 #if defined(Q_OS_SYMBIAN) 148 friend void qt_symbian_show_pointer_sprite();
149 friend void qt_symbian_hide_pointer_sprite();
150 friend void qt_symbian_set_pointer_sprite(
const QCursor& cursor);
151 friend void qt_symbian_move_cursor_sprite();
158 #define X_CursorShape CursorShape 163 #define CursorShape X_CursorShape 170 #ifndef QT_NO_DATASTREAM 174 #endif // QT_NO_CURSOR The QVariant class acts like a union for the most common Qt data types.
void qt_mac_updateCursorWithWidgetUnderMouse(QWidget *widgetUnderMouse)
The QCursor class provides a mouse cursor with an arbitrary shape.
#define QT_END_NAMESPACE
This macro expands to.
void * qt_mac_nsCursorForQCursor(const QCursor &c)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &outS, const QCursor &cursor)
The QBitmap class provides monochrome (1-bit depth) pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void qSwap(T &value1, T &value2)
The QPoint class defines a point in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
The QPixmap class is an off-screen image representation that can be used as a paint device...
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &inS, QCursor &cursor)
The QDataStream class provides serialization of binary data to a QIODevice.
int x() const
Returns the x coordinate of this point.
static void setPos(const QPoint &p)
Moves the cursor (hot spot) to the global screen position at point p.
void qt_mac_set_cursor(const QCursor *c)