1SDL::Rect(3)          User Contributed Perl Documentation         SDL::Rect(3)
2
3
4

NAME

6       SDL::Rect - a SDL perl extension
7

SYNOPSIS

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

DESCRIPTION

12       "SDL::Rect::new" creates a SDL_Rect structure which is used for
13       specifying regions for filling, blitting, and updating.  These objects
14       make it easy to cut and backfill.  By default, x, y, h, w are 0.
15
16   METHODS
17       The four fields of a rectangle can be set simply by passing a value to
18       the applicable method.  These are:
19
20       ·   "SDL::Rect::x" sets and fetches the x position.
21
22       ·   "SDL::Rect::y" sets and fetches the y position.
23
24       ·   "SDL::Rect::width" sets and fetched the width.
25
26       ·   "SDL::Rect::height" sets and fetched the height.
27

AUTHOR

29       David J. Goehrig
30

SEE ALSO

32       perl(1) SDL::Surface(3)
33
34
35
36perl v5.12.0                      2010-05-06                      SDL::Rect(3)
Impressum