Qt 4.8
|
The QPlatformCursorImage class provides a set of graphics intended to be used as cursors. More...
#include <qplatformcursor_qpa.h>
Public Functions | |
QPoint | hotspot () |
Return the cursor's hotspot. More... | |
QImage * | image () |
Return the cursor graphic as a pointer to a QImage. More... | |
QPlatformCursorImage (const uchar *data, const uchar *mask, int width, int height, int hotX, int hotY) | |
Sets the cursor image to the graphic represented by the combination of data and mask, with dimensions given by width and height and a hotspot at the point specified by (hotX, hotY). More... | |
void | set (const uchar *data, const uchar *mask, int width, int height, int hotX, int hotY) |
Sets the cursor image to the graphic represented by the combination of data and mask, with dimensions given by width and height and a hotspot at the point specified by (hx, hy). More... | |
void | set (const QImage &image, int hx, int hy) |
Sets the cursor image to the given image, with the hotspot at the point specified by (hx, hy). More... | |
void | set (Qt::CursorShape) |
Calling this method sets the cursor image to the specified shape. More... | |
Static Private Functions | |
static void | createSystemCursor (int id) |
Properties | |
QImage | cursorImage |
QPoint | hot |
The QPlatformCursorImage class provides a set of graphics intended to be used as cursors.
Definition at line 59 of file qplatformcursor_qpa.h.
|
inline |
Sets the cursor image to the graphic represented by the combination of data and mask, with dimensions given by width and height and a hotspot at the point specified by (hotX, hotY).
Definition at line 61 of file qplatformcursor_qpa.h.
|
staticprivate |
Definition at line 423 of file qplatformcursor_qpa.cpp.
|
inline |
Return the cursor's hotspot.
Definition at line 64 of file qplatformcursor_qpa.h.
Referenced by QDirectFBCursor::changeCursor(), QPlatformSoftwareCursor::getCurrentRect(), and QVNCCursor::sendClientCursor().
|
inline |
Return the cursor graphic as a pointer to a QImage.
Definition at line 63 of file qplatformcursor_qpa.h.
Referenced by QDirectFBCursor::changeCursor(), QPlatformSoftwareCursor::drawCursor(), QPlatformSoftwareCursor::getCurrentRect(), and QVNCCursor::sendClientCursor().
void QPlatformCursorImage::set | ( | const uchar * | data, |
const uchar * | mask, | ||
int | width, | ||
int | height, | ||
int | hx, | ||
int | hy | ||
) |
Sets the cursor image to the graphic represented by the combination of data and mask, with dimensions given by width and height and a hotspot at the point specified by (hx, hy).
The image data specified by data must be supplied in the format described by QImage::Format_Indexed8.
The corresponding mask data specified by mask must be supplied in a character array containing packed 1 bit per pixel format data, with any padding bits at the end of the array. Bits of value 0 represent transparent pixels in the image data.
Definition at line 590 of file qplatformcursor_qpa.cpp.
Referenced by QDirectFBCursor::changeCursor(), and QPlatformSoftwareCursor::setCursor().
void QPlatformCursorImage::set | ( | const QImage & | image, |
int | hx, | ||
int | hy | ||
) |
Sets the cursor image to the given image, with the hotspot at the point specified by (hx, hy).
Definition at line 568 of file qplatformcursor_qpa.cpp.
void QPlatformCursorImage::set | ( | Qt::CursorShape | id | ) |
Calling this method sets the cursor image to the specified shape.
id is one of the defined Qt::CursorShape values.
If id is invalid, Qt::BitmapCursor, or unknown by the implementation, Qt::ArrowCursor is used instead.
Definition at line 545 of file qplatformcursor_qpa.cpp.
|
private |
Definition at line 70 of file qplatformcursor_qpa.h.
Referenced by set().
|
private |
Definition at line 71 of file qplatformcursor_qpa.h.
Referenced by set().