DRAFT |
SDL_RectEmpty
Use this function to report if a rectangle has no area.
Contents
Syntax
SDL_RectEmpty(X)
green
SDL_bool SDL_RectEmpty(SDL_Rect* rect)
Function Parameters
X |
(((X)->w <= 0) |
((X)->h <= 0)) |
green
Return Value
Returns SDL_TRUE if the rectangle has no area or SDL_FALSE if it does; see [[#Remarks|Remarks]] for details.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
green
If the rectangle defined/described by rect has an x or y value <=0 it has no area and this function returns SDL_TRUE. If both values are >0 the rectangle has area and this function returns SDL_FALSE.
