Class SDL.Rect

Description

Used in SDL to define a rectangular area. It is sometimes also used to specify only points or sizes (i.e only one of the position and dimension is used).


Variable w
Variable h

int(16bit) SDL.Rect.w
int(16bit) SDL.Rect.h

Description

The width and height of the rectangle. Internally these are 16 bit unsigned integers. A runtime error will be generated when integer values are used that are too big.


Variable x
Variable y

int(-32768..32767) SDL.Rect.x
int(-32768..32767) SDL.Rect.y

Description

Position of the upper-left corner of the rectangle. Internally these are 16 bit signed integers. A runtime error will be generated when integer values are used that are too big.


Method create

SDL.Rect SDL.Rect()
SDL.Rect SDL.Rect(int(-32768..32767) x, int(-32768..32767) y)
SDL.Rect SDL.Rect(int(-32768..32767) x, int(-32768..32767) y, int(16bit) w, int(16bit) h)

Description

Create a new Rect.

Parameter x
Parameter y

Optional initial values for Rect()->x and Rect()->y.

Parameter w
Parameter h

Optional initial values for Rect()->w and Rect()->h.