SDL_GetDefaultCursor(3)
π SDL_GetDefaultCursor(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's a lil baby function and it's literally so easy, come sit with me π«Ά
β¨ NAME β¨
SDL_GetDefaultCursor β get the default cursor, that's it, that's the whole job π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_mouse.h>
SDL_Cursor * SDL_GetDefaultCursor(void);
β¨ DESCRIPTION β¨
so like, this hands you back the default cursor. no arguments, no drama, no nothing. πΈ
and here's the tea: you do not have to call SDL_DestroyCursor() on the return value. not required, bestie. but if you do feel like calling it, that's totally fine too β it's safe. so you're covered either way, no wrong answers, we love a low-stakes queen π
β¨ RETURN VALUE β¨
on success you get the default cursor. on failure you get NULL π and then you go call SDL_GetError() for more info, because it always knows what went wrong, iykyk.
β¨ THREAD SAFETY β¨
β οΈ main thread only, bestie!! do NOT be calling this from some random thread, it is simply not that girl. main thread. periodt. π
β¨ AVAILABILITY β¨
this one's been around since SDL 3.2.0 β¨ so if you're on anything older, she's not there yet, sorry angel π
and that's the whole page, you ate it, no crumbs π go forth and have a cute lil default cursor. this has been your girl from Simple Directmedia Layer, running SDL 3.4.18 β mwah, love u, 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