class SFML::Cursor

A mouse cursor — either a built-in system shape, or a custom bitmap. Apply it with window.cursor = cursor.

window.cursor = SFML::Cursor.system(:hand) window.cursor = SFML::Cursor.system(:not_allowed)

pixels = “…” # 32×32 RGBA bytes window.cursor = SFML::Cursor.from_pixels(32, 32, pixels, hotspot: [16, 16])

See SFML::Cursor::TYPES for the full list of system shapes.