Qt 4.8
|
Public Functions | |
void | addCursor (QScreenCursor *cursor) |
void | hide () |
Hides the cursor from the screen. More... | |
void | move (int x, int y) |
Moves the mouse cursor to the given position, i.e., (x, y). More... | |
QMultiScreenCursor () | |
void | set (const QImage &image, int hotx, int hoty) |
Sets the cursor's image to be the given image. More... | |
void | show () |
Shows the mouse cursor. More... | |
~QMultiScreenCursor () | |
Public Functions inherited from QScreenCursor | |
QRect | boundingRect () const |
Returns the cursor's bounding rectangle. More... | |
QImage | image () const |
Returns the cursor's image. More... | |
bool | isAccelerated () const |
Returns true if the cursor is accelerated; otherwise false. More... | |
bool | isVisible () const |
Returns true if the cursor is visible; otherwise false. More... | |
QScreenCursor () | |
Constructs a screen cursor. More... | |
bool | supportsAlphaCursor () const |
virtual | ~QScreenCursor () |
Destroys the screen cursor. More... | |
Private Functions | |
void | setCurrentCursor (QScreenCursor *newCursor) |
Properties | |
QScreenCursor * | currentCursor |
QList< QScreenCursor * > | cursors |
Additional Inherited Members | |
Static Public Functions inherited from QScreenCursor | |
static bool | enabled () |
static void | initSoftwareCursor () |
Initializes the screen cursor. More... | |
static QScreenCursor * | instance () |
Protected Variables inherited from QScreenCursor | |
QImage | cursor |
uint | enable: 1 |
QPoint | hotspot |
uint | hwaccel: 1 |
QPoint | pos |
QSize | size |
uint | supportsAlpha: 1 |
Definition at line 55 of file qscreenmulti_qws.cpp.
|
inline |
Definition at line 58 of file qscreenmulti_qws.cpp.
|
inline |
Definition at line 59 of file qscreenmulti_qws.cpp.
void QMultiScreenCursor::addCursor | ( | QScreenCursor * | cursor | ) |
Definition at line 135 of file qscreenmulti_qws.cpp.
Referenced by QMultiScreen::initDevice(), and ~QMultiScreenCursor().
|
virtual |
Hides the cursor from the screen.
Reimplemented from QScreenCursor.
Definition at line 129 of file qscreenmulti_qws.cpp.
Referenced by ~QMultiScreenCursor().
|
virtual |
Moves the mouse cursor to the given position, i.e., (x, y).
Note that the given position defines the top-left corner of the cursor's image, i.e., not the cursor's hot spot (the position of the associated mouse events).
Reimplemented from QScreenCursor.
Definition at line 89 of file qscreenmulti_qws.cpp.
Referenced by ~QMultiScreenCursor().
|
virtual |
Sets the cursor's image to be the given image.
The hotx and hoty parameters define the cursor's hot spot, i.e., the point within the cursor's image that will be the position of the associated mouse events.
Reimplemented from QScreenCursor.
Definition at line 75 of file qscreenmulti_qws.cpp.
|
private |
Definition at line 82 of file qscreenmulti_qws.cpp.
Referenced by move(), and ~QMultiScreenCursor().
|
virtual |
Shows the mouse cursor.
Reimplemented from QScreenCursor.
Definition at line 123 of file qscreenmulti_qws.cpp.
Referenced by ~QMultiScreenCursor().
|
private |
Definition at line 71 of file qscreenmulti_qws.cpp.
Referenced by hide(), move(), set(), setCurrentCursor(), and show().
|
private |
Definition at line 72 of file qscreenmulti_qws.cpp.
Referenced by addCursor(), and move().