Scroll to navigation

SDL_HitTest(3type) SDL3 DATATYPES SDL_HitTest(3type)

NAME

SDL_HitTest - Callback used for hit-testing.

HEADER FILE

Defined in SDL3/SDL_video.h

SYNOPSIS

#include "SDL3/SDL.h"
typedef SDL_HitTestResult (SDLCALL *SDL_HitTest)(SDL_Window *win, const SDL_Point *area, void *data);

FUNCTION PARAMETERS

the SDL_Window
where hit-testing was set on.
an SDL_Point
which should be hit-tested.
what was passed as callback_data to SDL_SetWindowHitTest ().

RETURN VALUE

Returns an SDL_HitTestResult
value.

SEE ALSO

(3), SDL_SetWindowHitTest(3)

SDL 3.1.6 Simple Directmedia Layer