Class Fox::FXCursor
In: rdoc-sources/FXCursor.rb
Parent: FXId

Cursor class

Stock cursors

CURSOR_ARROW:Default left pointing arrow
CURSOR_RARROW:Right arrow
CURSOR_IBEAM:Text I-Beam
CURSOR_WATCH:Stopwatch or hourglass
CURSOR_CROSS:Crosshair
CURSOR_UPDOWN:Move up, down
CURSOR_LEFTRIGHT:Move left, right
CURSOR_MOVE:Move up, down, left, right

Cursor options

CURSOR_KEEP:Keep pixel data in client
CURSOR_OWNED:Pixel data is owned by cursor

Methods

color?   loadPixels   new   new   new   savePixels  

Attributes

height  [R]  Height of cursor, in pixels (returns zero for stock cursors) [Integer]
hotX  [RW]  Hotspot x-coordinate (returns zero for stock cursors) [Integer]
hotY  [RW]  Hotspot y-coordinate (returns zero for stock cursors) [Integer]
width  [R]  Width of cursor, in pixels (returns zero for stock cursors) [Integer]

Public Class methods

Make cursor from src and msk; cursor size should be 32x32 for portability!

Make cursor from FXColor pixels; cursor size should be 32x32 for portability!

Make stock cursor, where stockCursorId is one of the stock cursors (CURSOR_ARROW, CURSOR_RARROW, etc.)

Public Instance methods

Return true if there is color in the cursor.

Load pixel data only.

Save pixel data only.

[Validate]