struct

Espresso::Cursor

Inherits Espresso::ErrorHandling / Struct / Value / Object

Custom or standard cursor to display the mouse's location in a window.

Constructors

arrow

Creates a standard Arrow cursor shape.

Source
crosshair

Creates a standard Crosshair cursor shape.

Source
h_resize

Creates a standard HResize cursor shape.

Source
hand

Creates a standard Hand cursor shape.

Source
i_beam

Creates a standard IBeam cursor shape.

Source
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.

Source
standard(type) : self

Creates a cursor from one of the standard shapes. See CursorShape for available options.

Source
v_resize

Creates a standard VResize cursor shape.

Source

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.

Source
to_unsafe

Returns the underlying GLFW cursor pointer.

Source