SDL_CreateSystemCursor(3)
π SDL_CreateSystemCursor π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and lemme tell you, today's main character is SDL_CreateSystemCursor β she makes you a system cursor. that's it, that's the vibe. π±οΈβ¨
β¨ NAME β¨
SDL_CreateSystemCursor β Create a system cursor. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_mouse.h>
SDL_Cursor * SDL_CreateSystemCursor(SDL_SystemCursor id);
like. look at her. one include, one function call, no drama. π
π¦ FUNCTION PARAMETERS π¦
idβ anSDL_SystemCursorenum value. that's the whole personality of this argument, she just wants to know which system cursor you want, okay? π
π«Ά RETURN VALUE π«Ά
Returns a cursor on success, or NULL on failure β and if you get the NULL, don't panic, just call SDL_GetError() for more information. she'll tell you what went wrong, fr fr. π
π₯ THREAD SAFETY π₯
bestie. main thread only. this function should only be called on the main thread. no side-quest threads for this one, she's loyal. π«π§΅
π AVAILABILITY π
This function is available since SDL 3.2.0. vintage-ish but iconic. π
β SEE ALSO β
SDL_DestroyCursor(3)β because everything you create, you eventually gotta let go of. π
Simple Directmedia Layer π SDL 3.4.18 π SDL_CreateSystemCursor(3)
and that's the whole page bestie!! tysm for reading, go forth and make cursors, ily, bye ππ¦β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms