This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_PointInRect

Use this function to check if a point resides inside a rectangle.

Syntax

SDL_bool SDL_PointInRect(const SDL_Point* p,
                         const SDL_Rect*  r)

Function Parameters

p

an SDL_Point which is the point

r

an SDL_Rect which is the rectangle

Return Value

Returns SDL_TRUE if point resides inside rectangle or SDL_FALSE if not.

Remarks

Both p and r must not be NULL.

Version

This function is available since SDL 2.0.4.


CategoryAPI, CategoryRect, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.