23static const char* const cminus[] = {
49static const char* const cplus[] = {
83 return TQCursor( TQPixmap( ( const char**) cplus ), -1, -1 );
86 return TQCursor( TQPixmap( ( const char**) cminus ), -1, -1 );
91 default: return TQCursor( TQt::arrowCursor );
100 b = TQPixmap( ( const char**) bitmap );
101 m = TQPixmap( ( const char**) mask );
103 return TQCursor( b, m, hotX, hotY );
108 static unsigned char cross_bits[] = {
109 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00,
110 0x80, 0x00, 0xff, 0x7f, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00,
111 0x80, 0x00, 0x80, 0x00, 0x80, 0x00};
113 TQBitmap b = TQBitmap( 15, 15, cross_bits, true );
114 TQBitmap m = b.createHeuristicMask( false );
116 return TQCursor( b, m, 7, 7 );
121 static unsigned char needle_bits[] = {
122 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x01,
123 0x80, 0x03, 0x80, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3e, 0x00, 0x7e,
124 0x00, 0x7c, 0x00, 0x1c, 0x00, 0x18, 0x00, 0x00};
126 TQBitmap b = TQBitmap( 16, 16, needle_bits, true );
127 TQBitmap m = b.createHeuristicMask( false );
129 return TQCursor( b, m, 2, 0 );
134 static unsigned char needle_move_bits[] = {
135 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x01,
136 0x80, 0x03, 0x80, 0x07, 0x10, 0x0f, 0x38, 0x1f, 0x54, 0x3e, 0xfe, 0x7e,
137 0x54, 0x7c, 0x38, 0x1c, 0x10, 0x18, 0x00, 0x00};
139 TQBitmap b = TQBitmap( 16, 16, needle_move_bits, true );
140 TQBitmap m = b.createHeuristicMask( false );
142 return TQCursor( b, m, 2, 0 );
145TQCursor VCursor::horzMove()
155 #define horzMove_width 15
156 #define horzMove_height 15
157 static unsigned char horzMove_bits[] = {
158 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08,
159 0x0c, 0x18, 0xfe, 0x3f, 0x0c, 0x18, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00,
160 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
162 TQBitmap b = TQBitmap( 15, 15, horzMove_bits, true );
163 TQBitmap m = b.createHeuristicMask( false );
165 return TQCursor( b, m, 7, 7 );
static TQCursor needleMoveArrow() needle arrow with four way arrow
static TQCursor crossHair() crosshair cursor
CursorType Predefined cursor types.
@ ZoomMinus zoom out cursor
@ NeedleArrow needle arrow
@ CrossHair unthemed crosshair cursor
static TQCursor needleArrow() needle arraow cursor
static TQCursor createCursor(CursorType type) Creates a predefined cursor of the specified type.
|