SDL::Rect - a SDL perl extension
$rect = new SDL::Rect ( -height => 4, -width => 40 );
SDL::Rect::new creates a SDL_Rect structure which is used for specifying regions for filling, blitting, and updating. These objects make it easy to cut and backfill. By default, x, y, h, w are 0.
The four fields of a rectangle can be set simply by passing a value to the applicable method. These are:
SDL::Rect::xsets and fetches the x position.
SDL::Rect::ysets and fetches the y position.
SDL::Rect::widthsets and fetched the width.
SDL::Rect::heightsets and fetched the height.
David J. Goehrig