-
-
22 Aug 2000 19:25:17 UTC
- Distribution: SDL-sdlpl
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (0 / 11 / 0)
- Kwalitee
Bus factor: 3- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (175.13KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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)
Module Install Instructions
To install SDL::sdlpl, copy and paste the appropriate command in to your terminal.
cpanm SDL::sdlpl
perl -MCPAN -e shell install SDL::sdlpl
For more information on module installation, please visit the detailed CPAN module installation guide.