karbon

#include <vcursor.h>

Public Types

enum  CursorType { CrossHair = 0 , ZoomPlus = 1 , ZoomMinus = 2 , NeedleArrow = 3 }
 

Static Public Member Functions

static TQCursor createCursor (CursorType type)
 
static TQCursor createCursor (const char *bitmap[], const char *mask[], int hotX=-1, int hotY=-1)
 
static TQCursor crossHair ()
 
static TQCursor needleArrow ()
 
static TQCursor needleMoveArrow ()
 
static TQCursor horzMove ()
 

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.

Member Enumeration Documentation

◆ CursorType

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

◆ createCursor() [1/2]

TQCursor 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 TQCursor ctor.

Definition at line 95 of file vcursor.cpp.

◆ createCursor() [2/2]

TQCursor VCursor::createCursor ( CursorType  type)
static

Creates a predefined cursor of the specified type.

Parameters
typethe requested cursor id
Returns
the predefined cursor

Definition at line 75 of file vcursor.cpp.

◆ crossHair()

TQCursor VCursor::crossHair ( )
static

crosshair cursor

Definition at line 106 of file vcursor.cpp.

◆ horzMove()

TQCursor VCursor::horzMove ( )
static

Definition at line 145 of file vcursor.cpp.

◆ needleArrow()

TQCursor VCursor::needleArrow ( )
static

needle arraow cursor

Definition at line 119 of file vcursor.cpp.

◆ needleMoveArrow()

TQCursor VCursor::needleMoveArrow ( )
static

needle arrow with four way arrow

Definition at line 132 of file vcursor.cpp.


The documentation for this class was generated from the following files: