QCursor Class Reference
This class provides a mouse cursor with arbitrary shape and color.
(details)
(complete member list)
#include <qcursor.h>
Public Members
- QCursor ()
- QCursor (int shape)
- QCursor (const QBitmap& bitmap, const QBitmap& mask, int hotX=-1, int hotY=-1)
- QCursor (const QCursor&)
- ~QCursor ()
- QCursor& operator= (const QCursor&)
- QCursor copy () const
- int shape () const
- bool setShape (int)
Static Public Members
- QPoint pos ()
- void setPos (int x, int y)
- void setPos (const QPoint&)
- void initialize ()
- void cleanup ()
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QCursor &c)
- QDataStream & operator>> (QDataStream &s, QCursor &c)
This class provides a mouse cursor with arbitrary shape and color.
The QCursor class represents the window system's mouse curor. There
are a number of predefined cursor shapes:
- arrowCursor
- standard arrow cursor
- upArrowCursor
- upwards arrow
- crossCursor
- crosshair
- hourGlassCursor
- hourglass/watch
- ibeamCursor
- ibeam/text entry
- sizeVerCursor
- vertical resize
- sizeHorCursor
- horizontal resize
- sizeBDiagCursor
- diagonal resize (/)
- sizeFDiagCursor
- diagonal resize (\)
- sizeAllCursor
- all directions resize
It is also possible to define custom shapes.
Members are provided to change shape,
get the cursor position and so on.
Member Function Documentation
Constructs a custom bitmap cursor.
Arguments:
- bitmap and
- mask make up the bitmap
- hotX and
- hotY define the hot spot of this cursor
Constructs a copy of the cursor c.
Dereferences the cursor and destroys the cursor data if it was the last
reference.
Returns a deep copy of the cursor.
To do:
Warning: System dependent! Do not use this unless you have to.
This function returns the window system's handle to the current cursor.
Rather than use it, you should tell
us what the portable functions lack.
The return type for each window system is specified in qcursor.h.
Assigns c to this cursor and returns a reference to the cursor.
Related Functions
Writes the cursor to the stream.
Reads the cursor from the stream.
This file is part of the Qt toolkit,
copyright 1995
Troll Tech, all rights reserved.
It was generated from the following files:
- qcursor.h: 1995/05/02
- qcur_x11.cpp: 1995/05/16
Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech