pods::SDL::Rect man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

pods::SDL::Rect(3)    User Contributed Perl Documentation   pods::SDL::Rect(3)

NAME
       SDL::Rect - Defines a rectangular area

   CATEGORY
       Core, Video, Structure

SYNOPSIS
	my $rect = SDL::Rect->new(0, 0, 50, 4);
	$rect->x(1);
	$rect->y(2);
	$rect->w(3);
	my $x = $rect->x; # 1
	my $y = $rect->y; # 2
	my $w = $rect->w; # 3
	my $h = $rect->h; # 4

DESCRIPTION
       An "SDL_Rect" defines a rectangular area of pixels.

METHODS
   new
	my $rect = SDL::Rect->new( $x, $y, $w, $h );

       The constructor creates a new rectangle with the specified x, y, width
       and height values.

   x
	my $x = $rect->x;
	$rect->x(128);

       If passed a value, this method sets the x component of the rectangle;
       if not, it returns the x component of the rectangle.

   y
	my $y = $rect->y;
	$rect->y(128);

       If passed a value, this method sets the y component of the rectangle;
       if not, it returns the y component of the rectangle.

   w
	my $w = $rect->w;
	$rect->w(128);

       If passed a value, this method sets the w component of the rectangle;
       if not, it returns the w component of the rectangle.

   h
	my $h = $rect->h;
	$rect->h(128);

       If passed a value, this method sets the h component of the rectangle;
       if not, it returns the h component of the rectangle.

SEE ALSO
       SDL::Surface

AUTHORS
       See "AUTHORS" in SDL.

perl v5.18.1			  2013-09-28		    pods::SDL::Rect(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net