al_set_sys...use_cursor(3)
β¨ NAME β¨
okay so this is al_set_system_mouse_cursor β Allegro 5 API, and itβs chillinβ in the Library Functions Manual under the shortened page title al_set_sys...use_cursor(3) (iykyk, the title got abbreviated). Itβs the function for setting the system mouse cursor. π
π±οΈ
π SYNOPSIS π
#include <allegro5/allegro.h>
bool al_set_system_mouse_cursor(ALLEGRO_DISPLAY *display,
ALLEGRO_SYSTEM_MOUSE_CURSOR cursor_id)
π¦ DESCRIPTION π¦
okay so you call this to set the given system mouse cursor as the current mouse cursor for the given display. If the cursor is currently shown (as opposed to hidden), the change is immediately visible β like, instant glow-up, no waiting. β¨
If the cursor doesnβt exist on the current platform, another cursor will be silently substituted. no cap, no error, just a sneaky little swap. π
The cursors are:
ALLEGRO_SYSTEM_MOUSE_CURSOR_DEFAULTALLEGRO_SYSTEM_MOUSE_CURSOR_ARROWALLEGRO_SYSTEM_MOUSE_CURSOR_BUSYALLEGRO_SYSTEM_MOUSE_CURSOR_QUESTIONALLEGRO_SYSTEM_MOUSE_CURSOR_EDITALLEGRO_SYSTEM_MOUSE_CURSOR_MOVEALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_WALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_EALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NWALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SWALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SEALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NEALLEGRO_SYSTEM_MOUSE_CURSOR_PROGRESSALLEGRO_SYSTEM_MOUSE_CURSOR_PRECISIONALLEGRO_SYSTEM_MOUSE_CURSOR_LINKALLEGRO_SYSTEM_MOUSE_CURSOR_ALT_SELECTALLEGRO_SYSTEM_MOUSE_CURSOR_UNAVAILABLE
Returns true on success, false on failure. thatβs the vibe check, bestie. β
π
π₯ SEE ALSO π₯
mwah π xoxo from the Allegro reference manual, page al_set_sys...use_cursor(3) β the footer doesnβt print a date, so thatβs the whole sign-off, bestie. π«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms