public
|
#
__construct( integereger $width = 0, integereger $height = 0 )
construct new dimension object
construct new dimension object
Parameters
- $width
integereger $width
- $height
integereger $height
|
public
Jaguar\Dimension
|
#
setWidth( integer $width )
Set Width
Parameters
Returns
|
public
Jaguar\Dimension
|
#
setHeight( integer $height )
Set Height
Parameters
Returns
|
public
integer
|
#
getWidth( )
Get Width
Returns
integer
|
public
integer
|
#
getHeight( )
Get Height
Returns
integer
|
public
Jaguar\Dimension
|
#
setSize( Jaguar\Dimension $dimension )
Set size
set new width and height for the current dimension using the width and the
hight of the passed dimension
Parameters
Returns
|
public
Jaguar\Dimension
|
#
getSize( )
Get new Dimension object with same width and height
Get new Dimension object with same width and height
Returns
|
public
Jaguar\Dimension
|
#
resize( integer $width, integer $height )
Rsize the current dimenison
Rsize the current dimenison
set new width and height for the current dimension object
Parameters
- $width
integer $width
- $height
integer $height
Returns
|
public
Jaguar\Dimension
|
#
translate( integer $dx, integer $dy )
Translates this dimension, with size (w,h), by {dx} and {dy} so that it now
represents the dimension {dx+w,dy+h}
Translates this dimension, with size (w,h), by {dx} and {dy} so that it now
represents the dimension {dx+w,dy+h}
Parameters
- $dx
integer $dx
- $dy
integer $dy
Returns
|
public
|
#
equals( mixed $other )
Check that the current object which implements this interfcae is equal to
another object from the same type
Check that the current object which implements this interfcae is equal to
another object from the same type
Parameters
Throws
InvalidArgumentException if the passed param type is invalid
Implementation of
|
public
string
|
#
__toString( )
Returns a string representation for the current dimension object
Returns a string representation for the current dimension object
Returns
string
|