#pragma section-numbers off #pragma camelcase off || DRAFT|| ##*^*^*^*^*See http://wiki.libsdl.org/moin.cgi/SGFunctions for details on editing this page*^*^*^*^* = SDL_PointInRect = Use this function to check if a point resides inside a rectangle. <> == Syntax == {{{#!highlight cpp 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. == Code Examples == {{{#!highlight cpp You can add your code example here }}} ##Leave this section as-is unless you have a code example to put in. In that case, replace You can add your code example here with your code example following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Remarks == Both '''p''' and '''r''' must not be NULL. == Version == This function is available since SDL 2.0.4. ---- [[CategoryAPI]], [[CategoryRect]] ##See the Style Guide for instructions on editing the footer.