| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | #endif |
| | | |
| | | /** |
| | | * \brief The structure that defines a point |
| | | * \brief The structure that defines a point (integer) |
| | | * |
| | | * \sa SDL_EnclosePoints |
| | | * \sa SDL_PointInRect |
| | |
| | | } SDL_Point; |
| | | |
| | | /** |
| | | * \brief A rectangle, with the origin at the upper left. |
| | | * \brief The structure that defines a point (floating point) |
| | | * |
| | | * \sa SDL_EnclosePoints |
| | | * \sa SDL_PointInRect |
| | | */ |
| | | typedef struct SDL_FPoint |
| | | { |
| | | float x; |
| | | float y; |
| | | } SDL_FPoint; |
| | | |
| | | |
| | | /** |
| | | * \brief A rectangle, with the origin at the upper left (integer). |
| | | * |
| | | * \sa SDL_RectEmpty |
| | | * \sa SDL_RectEquals |
| | |
| | | int w, h; |
| | | } SDL_Rect; |
| | | |
| | | |
| | | /** |
| | | * \brief A rectangle, with the origin at the upper left (floating point). |
| | | */ |
| | | typedef struct SDL_FRect |
| | | { |
| | | float x; |
| | | float y; |
| | | float w; |
| | | float h; |
| | | } SDL_FRect; |
| | | |
| | | |
| | | /** |
| | | * \brief Returns true if point resides inside a rectangle. |
| | | */ |