public
|
|
public
Jaguar\Box
|
#
setCoordinate( Jaguar\Coordinate $coordinate )
Set Box Coordinate
The coordinate represent the (Top Left) position of the box
Parameters
Returns
|
public
Jaguar\Coordinate
|
#
getCoordinate( )
Get Box Coordinate
Returns
|
public
Jaguar\Box
|
|
public
Jaguar\Dimension
|
#
getDimension( )
Get Box Dimension
Returns
|
public
Jaguar\Box
|
#
scale( number $ratio )
Scale the box by the given ratio
Scale the box by the given ratio
Parameters
Returns
|
public
integer
|
#
getX( )
Returns
integer
See
CodeCoverageIgnore
|
public
integer
|
#
getY( )
Returns
integer
See
CodeCoverageIgnore
|
public
integer
|
#
getWidth( )
Returns
integer
See
CodeCoverageIgnore
|
public
integer
|
#
getHeight( )
Returns
integer
See
CodeCoverageIgnore
|
public
Jaguar\Box
|
#
resize( integer $width, integer $height )
Resize the box
Parameters
- $width
integer $width
- $height
integer $height
Returns
See
CodeCoverageIgnore
|
public
Jaguar\Box
|
#
translateDimension( integer $dx, integer $dy )
Translate the box dimension
Translate the box dimension
Parameters
- $dx
integer $dx
- $dy
integer $dy
Returns
See
CodeCoverageIgnore
|
public
Jaguar\Box
|
#
move( integer $x, integer $y )
Move box's coordinate
Parameters
- $x
integer $x
- $y
integer $y
Returns
See
CodeCoverageIgnore
|
public
Jaguar\Box
|
#
translateCoordinate( integer $dx, integer $dy )
Translate the box's coordinate
Translate the box's coordinate
Parameters
- $dx
integer $dx
- $dy
integer $dy
Returns
See
CodeCoverageIgnore
|
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 box object
Returns a string representation for the box object
Returns
string
|
public
|
|