phpDocumentor Painter
[ class tree: Painter ] [ index: Painter ] [ all elements ]

Class: Rect

Source Location: /painter.php

Class Rect

Class Overview

Encapsulates a rectangle.

Located in /painter.php [line 87]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
number   $Height   Rectangle height.
number   $Width   Rectangle width.
number   $X   X co-ordinate of upper left corner.
number   $Y   Y co-ordinate of upper left corner.

[ Top ]
Method Summary
Rect   Rect()   Creates a new Rect object.
Rect   Grow()   Expands the Rect by the specified number of pixels.
Rect   Shrink()   Srinks the Rect by the specified number of pixels.

[ Top ]
Properties
number   $Height [line 111]

Rectangle height.


[ Top ]
number   $Width [line 105]

Rectangle width.


[ Top ]
number   $X [line 93]

X co-ordinate of upper left corner.


[ Top ]
number   $Y [line 99]

Y co-ordinate of upper left corner.


[ Top ]
Methods
Constructor Rect  [line 120]

  Rect Rect( number $x, number $y, number $w, number $h  )

Creates a new Rect object.

Parameters:
number   $x:  The upper left corner X co-ordinate.
number   $y:  The upper left corner Y co-ordinate.
number   $w:  The width of the Rect.
number   $h:  The height of the Rect.


[ Top ]
Grow  [line 155]

  Rect Grow( [int $v = 1]  )

Expands the Rect by the specified number of pixels.

Parameters:
int   $v:  The number of pixels to expand the Rect by.


[ Top ]
Shrink  [line 138]

  Rect Shrink( [int $v = 1]  )

Srinks the Rect by the specified number of pixels.

Parameters:
int   $v:  The number of pixels to shrink the Rect by.


[ Top ]

Documentation generated on Mon, 31 Mar 2008 18:35:26 +0100 by phpDocumentor 1.4.1