SDL::Rect
SDL::Rect(t)   User Contributed Perl Documentation   SDL::Rect(t)



NAME
       SDL::Rect - a SDL perl extension

SYNOPSIS
         $rect = new SDL::Rect ( -height => 4, -width => 40 );


DESCRIPTION
               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 = 0, and h, w default to 0. (the default
       scratch sizes);

       Rect fields

               The four fields of a rectangle can be set simply
       by passing a value to the applicable method.  These are:

               $rect->x(x);            # sets x to 4
               $rect->y();             # reads y
               $rect->width(h);       # sets width to 49
               $rect->height();        # reads height


AUTHOR
       David J. Goehrig

SEE ALSO
       perl(l) SDL::Surface(e)



perl v5.6.1                 2002-04-05               SDL::Rect(t)