SDL_GetWindowMouseRect(3)
π SDL_GetWindowMouseRect(3) β the SDL3 FUNCTIONS era π
okay bestie, listen. this is the manual page for SDL_GetWindowMouseRect, and it's giving "short but iconic." it does one (1) thing and it does it flawlessly. no notes. π
β¨ NAME β¨
SDL_GetWindowMouseRect β grab the mouse confinement rectangle of a window. that's it, that's the whole job, and she eats every time. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_video.h>
const SDL_Rect * SDL_GetWindowMouseRect(SDL_Window *window);
look at her. one include, one function call, zero drama. π
β¨ FUNCTION PARAMETERS β¨
windowβ the window you wanna interrogate, bestie. this is the one you're asking "hey girl, where's your mouse confinement rectangle at?" π
β¨ RETURN VALUE β¨
*)β returns a pointer to the mouse confinement rectangle of a window, orNULLif there isn't one. so likeβ¦ if she comes back withNULL, that window simply doesn't have a confinement rectangle. no rectangle, no problem, we move on. π¦
bestie PLEASE check for that NULL. it's not a vibe to dereference it. π
β¨ THREAD SAFETY β¨
this one is main thread only, no cap. do not be calling this from some random worker thread, i am begging you. main thread. main character energy only. π
β¨ AVAILABILITY β¨
she's been around since SDL 3.2.0. a modern queen. πΈ
β¨ SEE ALSO β¨
- SDL_SetWindowMouseRect(3) β the setter to this getter. the other half of the duo. π«Ά
- SDL_GetWindowMouseGrab(3) β grab, but getting. β¨
- SDL_SetWindowMouseGrab(3) β grab, but setting. β¨
and that's the whole page, bestie!! literally obsessed with how short this one is. fr fr. π
this little love letter to you came from the fine folks at Simple Directmedia Layer, and this is the SDL 3.4.18 version of the page. mwah. ππβ¨
π¦ 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