Warning: This site is under construction, most links will be broken.

LightX API -> lxinputmouse -> setcursor

Last modified on Wed, 9th May 2007 at 11:03 UTC by zipplet

lxinputmouse.setcursor


procedure setcursor(
  graphic: tlxhandle;
  offset_x, offset_y: integer;
  ckey: tlxcolour32
);


Sets the graphic for the mouse cursor and it's hotspot. Note that the mouse class does not provide a default cursor, and because LightX is cross platform the system default cursor cannot be used.

graphic: tlxhandle
A lightX surface handle. This surface contains the graphic to use for the mouse cursor.

offset_x, offset_y: integer
Offset from the topleft of the surface to the hotspot. The pointer is drawn by adding these offsets to the real pixel position, so a negative offset will move the hotspot toward the middle of the image.

ckey: tlxcolour32
Colour key for masking. This colour is treated as transparent.

Class: lxinputmouse