Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-09-27 06:17:41
Size: 1514
Editor: SheenaSmith
Comment: create page, add content (9/25 changeset 4895)
Revision 2 as of 2010-09-27 06:23:47
Size: 1656
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

<<Color2(green,Is this one of those macros that should be labeled as a macro? ie: the above would read "Use this macro to..." instead.)>>

DRAFT

SDL_RectEmpty

Use this function to report if a rectangle has no area.

green

Syntax

SDL_RectEmpty(X)

green

SDL_bool SDL_RectEmpty(SDL_Rect* rect)

Function Parameters

X

(((X)->w <= 0)

((X)->h <= 0))

green

rect

the SDL_Rect to query for size; see Remarks for details

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.


CategoryAPI, CategoryRect

None: SDL_RectEmpty (last edited 2013-08-11 12:23:59 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit