SDL_HitTest(3type)

πŸ’– SDL_HitTest(3type) πŸ’–

okay so this is the SDL3 DATATYPES manual, and we're talking about SDL_HitTest β€” literally the callback used for hit-testing. no cap, that's the whole name vibe. πŸ’…

✨ NAME ✨

SDL_HitTest β€” callback used for hit-testing. periodt. πŸŽ€

🌈 SYNOPSIS 🌈

#include <SDL3/SDL_video.h>

typedef SDL_HitTestResult (SDLCALL *SDL_HitTest)(SDL_Window *win, const SDL_Point *area, void *data);

🫢 FUNCTION PARAMETERS 🫢

  • win β€” the SDL_Window where hit-testing was set on. like, the window that's getting the vibe check. πŸͺŸ
  • area β€” an SDL_Point which should be hit-tested. bestie, this is the point being tested. πŸ“
  • data β€” what was passed as callback_data to SDL_SetWindowHitTest(). it's your lil payload, iykyk. 🎁

πŸ’« RETURN VALUE πŸ’«

Returns an SDL_HitTestResult value. that's the tea. 🍡

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie! this icon came from Simple Directmedia Layer, SDL 3.4.18, and it's SDL_HitTest(3type). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from