1<HTML 2><HEAD 3><TITLE 4>SDL_Rect</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="SDL Library Documentation" 11HREF="index.html"><LINK 12REL="UP" 13TITLE="Video" 14HREF="video.html"><LINK 15REL="PREVIOUS" 16TITLE="SDL_GLattr" 17HREF="sdlglattr.html"><LINK 18REL="NEXT" 19TITLE="SDL_Color" 20HREF="sdlcolor.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFF8DC" 24TEXT="#000000" 25LINK="#0000ee" 26VLINK="#551a8b" 27ALINK="#ff0000" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>SDL Library Documentation</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="sdlglattr.html" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="sdlcolor.html" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="SDLRECT" 74></A 75>SDL_Rect</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN3046" 80></A 81><H2 82>Name</H2 83>SDL_Rect -- Defines a rectangular area</DIV 84><DIV 85CLASS="REFSECT1" 86><A 87NAME="AEN3049" 88></A 89><H2 90>Structure Definition</H2 91><PRE 92CLASS="PROGRAMLISTING" 93>typedef struct{ 94 Sint16 x, y; 95 Uint16 w, h; 96} SDL_Rect;</PRE 97></DIV 98><DIV 99CLASS="REFSECT1" 100><A 101NAME="AEN3052" 102></A 103><H2 104>Structure Data</H2 105><DIV 106CLASS="INFORMALTABLE" 107><A 108NAME="AEN3054" 109></A 110><P 111></P 112><TABLE 113BORDER="0" 114CLASS="CALSTABLE" 115><TBODY 116><TR 117><TD 118ALIGN="LEFT" 119VALIGN="TOP" 120><TT 121CLASS="STRUCTFIELD" 122><I 123>x, y</I 124></TT 125></TD 126><TD 127ALIGN="LEFT" 128VALIGN="TOP" 129>Position of the upper-left corner of the rectangle</TD 130></TR 131><TR 132><TD 133ALIGN="LEFT" 134VALIGN="TOP" 135><TT 136CLASS="STRUCTFIELD" 137><I 138>w, h</I 139></TT 140></TD 141><TD 142ALIGN="LEFT" 143VALIGN="TOP" 144>The width and height of the rectangle</TD 145></TR 146></TBODY 147></TABLE 148><P 149></P 150></DIV 151></DIV 152><DIV 153CLASS="REFSECT1" 154><A 155NAME="AEN3065" 156></A 157><H2 158>Description</H2 159><P 160>A <SPAN 161CLASS="STRUCTNAME" 162>SDL_Rect</SPAN 163> defines a rectangular area of pixels. It is used by <A 164HREF="sdlblitsurface.html" 165><TT 166CLASS="FUNCTION" 167>SDL_BlitSurface</TT 168></A 169> to define blitting regions and by several other video functions.</P 170></DIV 171><DIV 172CLASS="REFSECT1" 173><A 174NAME="AEN3071" 175></A 176><H2 177>See Also</H2 178><P 179><A 180HREF="sdlblitsurface.html" 181><TT 182CLASS="FUNCTION" 183>SDL_BlitSurface</TT 184></A 185>, 186<A 187HREF="sdlupdaterect.html" 188><TT 189CLASS="FUNCTION" 190>SDL_UpdateRect</TT 191></A 192></P 193></DIV 194><DIV 195CLASS="NAVFOOTER" 196><HR 197ALIGN="LEFT" 198WIDTH="100%"><TABLE 199SUMMARY="Footer navigation table" 200WIDTH="100%" 201BORDER="0" 202CELLPADDING="0" 203CELLSPACING="0" 204><TR 205><TD 206WIDTH="33%" 207ALIGN="left" 208VALIGN="top" 209><A 210HREF="sdlglattr.html" 211ACCESSKEY="P" 212>Prev</A 213></TD 214><TD 215WIDTH="34%" 216ALIGN="center" 217VALIGN="top" 218><A 219HREF="index.html" 220ACCESSKEY="H" 221>Home</A 222></TD 223><TD 224WIDTH="33%" 225ALIGN="right" 226VALIGN="top" 227><A 228HREF="sdlcolor.html" 229ACCESSKEY="N" 230>Next</A 231></TD 232></TR 233><TR 234><TD 235WIDTH="33%" 236ALIGN="left" 237VALIGN="top" 238>SDL_GLattr</TD 239><TD 240WIDTH="34%" 241ALIGN="center" 242VALIGN="top" 243><A 244HREF="video.html" 245ACCESSKEY="U" 246>Up</A 247></TD 248><TD 249WIDTH="33%" 250ALIGN="right" 251VALIGN="top" 252>SDL_Color</TD 253></TR 254></TABLE 255></DIV 256></BODY 257></HTML 258>