karbon

VCursor Class Reference

#include <vcursor.h>

List of all members.


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

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

Predefined cursor types.

Enumerator:
CrossHair  unthemed crosshair cursor
ZoomPlus  zoom in cursor
ZoomMinus  zoom out cursor
NeedleArrow  needle arrow

Definition at line 36 of file vcursor.h.


Member Function Documentation

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::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::crossHair (  )  [static]

crosshair cursor

Definition at line 106 of file vcursor.cc.

QCursor VCursor::needleArrow (  )  [static]

needle arraow cursor

Definition at line 119 of file vcursor.cc.

QCursor VCursor::needleMoveArrow (  )  [static]

needle arrow with four way arrow

Definition at line 132 of file vcursor.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys