<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#METHODS">METHODS</a>
-<ul><li><a href="#new_x_y_w_h">new ( $x, $y, $w, $h )</a></li>
+<ul><li><a href="#new">new</a></li>
<li><a href="#x">x</a></li>
<li><a href="#y">y</a></li>
<li><a href="#w">w</a></li>
</div>
<h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="SYNOPSIS_CONTENT">
-<pre> my $rect = SDL::Rect->new( 0, 0, 0, 0 );
- $rect->x(1);
- $rect->y(2);
- $rect->w(3);
- $rect->h(4);
- my $x = $rect->x; # 1
- my $y = $rect->y; # 2
- my $w = $rect->w; # 3
- my $h = $rect->h; # 4
+<pre> 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
</pre>
<div id="METHODS_CONTENT">
</div>
-<h2 id="new_x_y_w_h">new ( $x, $y, $w, $h )</h2>
-<div id="new_x_y_w_h_CONTENT">
-<p>The constructor creates a new rectangle with the specified x, y, w, h
-values:</p>
-<pre> my $rect = SDL::Rect->new( 0, 0, 0, 0 );
+<h2 id="new">new</h2>
+<div id="new_CONTENT">
+<pre> my $rect = SDL::Rect->new( $x, $y, $w, $h );
</pre>
+<p>The constructor creates a new rectangle with the specified x, y, width and height values.</p>
</div>
<h2 id="x">x</h2>
<div id="x_CONTENT">
-<p>If passed a value, this method sets the x component of the rectangle;
-if not, it returns the x component of the rectangle:</p>
-<pre> my $x = $rect->x; # 255
- $rect->x(128);
+<pre> my $x = $rect->x;
+ $rect->x(128);
</pre>
+<p>If passed a value, this method sets the x component of the rectangle;
+if not, it returns the x component of the rectangle.</p>
</div>
<h2 id="y">y</h2>
<div id="y_CONTENT">
-<p>If passed a value, this method sets the y component of the rectangle;
-if not, it returns the y component of the rectangle:</p>
-<pre> my $y = $rect->y; # 255
- $rect->y(128);
+<pre> my $y = $rect->y;
+ $rect->y(128);
</pre>
+<p>If passed a value, this method sets the y component of the rectangle;
+if not, it returns the y component of the rectangle.</p>
</div>
<h2 id="w">w</h2>
<div id="w_CONTENT">
-<p>If passed a value, this method sets the w component of the rectangle;
-if not, it returns the w component of the rectangle:</p>
-<pre> my $w = $rect->w; # 255
- $rect->w(128);
+<pre> my $w = $rect->w;
+ $rect->w(128);
</pre>
+<p>If passed a value, this method sets the w component of the rectangle;
+if not, it returns the w component of the rectangle.</p>
</div>
<h2 id="h">h</h2>
<div id="h_CONTENT">
-<p>If passed a value, this method sets the h component of the rectangle;
-if not, it returns the h component of the rectangle:</p>
-<pre> my $h = $rect->h; # 255
- $rect->h(128);
+<pre> my $h = $rect->h;
+ $rect->h(128);
</pre>
+<p>If passed a value, this method sets the h component of the rectangle;
+if not, it returns the h component of the rectangle.</p>
</div>
<h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="SEE_ALSO_CONTENT">
-<p><a href="/SDL-Surface.html">SDL::Surface</a></p>
+<p><a href="SDL-Surface.html">SDL::Surface</a></p>
</div>
</div>
\ No newline at end of file