al_set_sys...use_cursor(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

✨ 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_DEFAULT
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_ARROW
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_BUSY
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_QUESTION
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_EDIT
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_MOVE
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_N
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_W
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_S
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_E
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NW
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SW
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_SE
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NE
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_PROGRESS
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_PRECISION
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_LINK
  • ALLEGRO_SYSTEM_MOUSE_CURSOR_ALT_SELECT
  • ALLEGRO_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