Wayne Keenan > SDL-sdlpl-1.08 > SDL::Rect

Download:
SDL-sdlpl-1.08.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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(4);            # sets x to 4
        $rect->y();             # reads y
        $rect->width(49);       # sets width to 49
        $rect->height();        # reads height

AUTHOR ^

David J. Goehrig

SEE ALSO ^

perl(1) SDL::Surface(3)

syntax highlighting: