karbon
VCursor Class Reference
#include <vcursor.h>
Detailed Description
A helper class for easily creating cursors from XPMs.One can create a predefined unthemed cursor or create a cursor from two given XMPs, the cursor bitmap and the cursor mask.
Definition at line 32 of file vcursor.h.
Public Types | |
CrossHair = 0 | |
ZoomPlus = 1 | |
ZoomMinus = 2 | |
NeedleArrow = 3 | |
enum | CursorType { CrossHair = 0, ZoomPlus = 1, ZoomMinus = 2, NeedleArrow = 3 } |
Static Public Member Functions | |
static QCursor | createCursor (CursorType type) |
static QCursor | createCursor (const char *bitmap[], const char *mask[], int hotX=-1, int hotY=-1) |
static QCursor | crossHair () |
static QCursor | needleArrow () |
static QCursor | needleMoveArrow () |
static QCursor | horzMove () |
Member Enumeration Documentation
enum VCursor::CursorType |
Member Function Documentation
QCursor VCursor::createCursor | ( | const char * | bitmap[], | |
const char * | mask[], | |||
int | hotX = -1 , |
|||
int | hotY = -1 | |||
) | [static] |
Creates a cursor from two specified XPM images.
This is only a wrapper function for a QCursor ctor.
Definition at line 95 of file vcursor.cc.
QCursor VCursor::createCursor | ( | CursorType | type | ) | [static] |
Creates a predefined cursor of the specified type.
- Parameters:
-
type the requested cursor id
- Returns:
- the predefined cursor
Definition at line 75 of file vcursor.cc.
QCursor VCursor::crossHair | ( | ) | [static] |
QCursor VCursor::needleArrow | ( | ) | [static] |
QCursor VCursor::needleMoveArrow | ( | ) | [static] |
The documentation for this class was generated from the following files: