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 speci‐
13       fying regions for filling, blitting, and updating.  These objects make
14       it easy to cut and backfill.  By default, x, y, h, w are 0.
15
16       METHODS
17
18       The four fields of a rectangle can be set simply by passing a value to
19       the applicable method.  These are:
20
21       ·   "SDL::Rect::x" sets and fetches the x position.
22
23       ·   "SDL::Rect::y" sets and fetches the y position.
24
25       ·   "SDL::Rect::width" sets and fetched the width.
26
27       ·   "SDL::Rect::height" sets and fetched the height.
28

AUTHOR

30       David J. Goehrig
31

SEE ALSO

33       perl(1) SDL::Surface(3)
34
35
36
37perl v5.8.8                       2006-08-28                      SDL::Rect(3)
Impressum