SDL 3.0
SDL_Rect Struct Reference

#include <SDL_rect.h>

Data Fields

int x
 
int y
 
int w
 
int h
 

Detailed Description

A rectangle, with the origin at the upper left (using integers).

Since
This struct is available since SDL 3.0.0.
See also
SDL_RectEmpty
SDL_RectsEqual
SDL_HasRectIntersection
SDL_GetRectIntersection
SDL_GetRectAndLineIntersection
SDL_GetRectUnion
SDL_GetRectEnclosingPoints

Definition at line 82 of file SDL_rect.h.

Field Documentation

◆ h

int SDL_Rect::h

Definition at line 85 of file SDL_rect.h.

Referenced by SDL_PointInRect(), SDL_RectEmpty(), and SDL_RectsEqual().

◆ w

int SDL_Rect::w

Definition at line 85 of file SDL_rect.h.

Referenced by SDL_PointInRect(), SDL_RectEmpty(), and SDL_RectsEqual().

◆ x

int SDL_Rect::x

Definition at line 84 of file SDL_rect.h.

Referenced by SDL_PointInRect(), and SDL_RectsEqual().

◆ y

int SDL_Rect::y

Definition at line 84 of file SDL_rect.h.

Referenced by SDL_PointInRect(), and SDL_RectsEqual().


The documentation for this struct was generated from the following file: