Espresso::Cursor
Inherits Espresso::ErrorHandling / Struct / Value / Object
Custom or standard cursor to display the mouse's location in a window.
Constructors
new(image, x = 0, y = 0)
Creates a new custom cursor from an image.
Specify the cursor's appearance with the image argument. The x and y arguments specify the cursor's hot-spot.
standard(type) : self
Creates a cursor from one of the standard shapes.
See CursorShape for available options.
Instance methods
destroy!
Destroys the cursor and releases any resources it used.
If the cursor is current for any window,
that window will revert to the default cursor.
This does not affect the cursor mode.
All remaining cursors are destroyed when Espresso#terminate is called.
Do not attempt to use the cursor after destroying it.