A generic interface for a Cursor.

Variables

read onlyclickX:Int

The X position.

read onlyclickY:Int

The Y position.

read onlyheight:Int

The cursor height.

read onlywidth:Int

The cursor width.

Methods

get_clickX ():Int

get_clickY ():Int

get_height ():Int

get_width ():Int

render (g:Graphics, x:Int, y:Int):Void

Render the cursor on screen.

Parameters:

g

The graphics2 instance to render.

x

The X position of the cursor.

y

The Y position of the cursor.

update (x:Int, y:Int):Void

Update the cursor.

Parameters:

x

The X position of the cursor.

y

The Y position of the cursor.