| Sgss_Graphics_Bounds_Integer | An integer wrapper class of the Sgss_Graphics_Bounds |
number |
$x
X coordinate of upper left corner |
number |
$y
Y coordinate of upper left corner |
number |
$width
Width of the bounds |
number |
$height
Height of the bounds |
number |
$x1
X coordinate of upper left corner |
number |
$y1
Y coordinate of upper left corner |
number |
$x2
X coordinate of lower right corner |
number |
$y2
Y coordinate of lower right corner |
|
$_height
Height of the bounds |
|
$_width
Width of the bounds |
|
$_x
X coordinate of upper left corner |
|
$_y
Y coordinate of upper left corner |
|
__construct ([number|array|Sgss_Graphics_Bounds $x = 0], [number $y = 0], [number $width = 0], [number $height = 0])
The constructor |
Sgss_Graphics_Bounds |
add (number|array|Sgss_Graphics_Location $x, [number|null $y = null])
Adds a location in this bounds |
boolean |
drawImagick (Imagick|ImagickDraw $imagick, [number $x = 0], [number $y = 0])
Draws this bounds to the specified ImagickDraw instance |
Sgss_Graphics_Bounds |
getBounds ()
Returns another object representing this bounds |
Sgss_Graphics_Dimension |
getDimension ()
Returns the dimension of this bounds |
number |
getHeight ()
Returns the height of this bounds |
Sgss_Graphics_Location |
getLocation ()
Returns the location of the upper left corner |
number |
getWidth ()
Returns the width of this bounds |
number |
getX ()
Returns the x coordinate of the upper left corner |
number |
getY ()
Returns the y coordinate of the upper left corner |
Sgss_Graphics_Bounds |
grow (number $h, number $v)
Resizes the edges of this bounds by the specified length |
Sgss_Graphics_Bounds_Integer |
integer ()
Returns the integer wrapper object of this bounds |
Sgss_Graphics_Bounds |
intersect (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Intersects this bounds with another |
Sgss_Graphics_Bounds |
intersection (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Returns the intersected bounds with another |
Sgss_Graphics_Bounds |
move (number $x, number $y)
Moves this bounds to the specified location |
Sgss_Graphics_Bounds |
reshape (number $x, number $y, number $width, number $height)
Sets the location and dimension of the bounds |
Sgss_Graphics_Bounds |
resize (number $width, number $height)
Resizes this bounds to the specified dimension |
Sgss_Graphics_Bounds |
scale (number $w, number $h)
Scales this bounds by the specified dimension |
void |
setBounds (Sgss_Graphics_Bounds $b)
Sets this bounds to the specified value |
void |
setDimension (Sgss_Graphics_Dimension $d)
Sets the dimension of this bounds to the specified value |
void |
setHeight (number $height)
Sets the height of this bounds to the specified value |
void |
setLocation (Sgss_Graphics_Location $l)
Sets the location of the upper left corner to the specified value |
void |
setWidth (number $width)
Sets the width of this bounds to the specified value |
void |
setX (number $x)
Sets the x coordinate of the upper left corner to the specified value |
void |
setY (number $y)
Sets the y coordinate of the upper left corner to the specified value |
array |
toArray ()
Converts this bounds to an array |
Sgss_Graphics_Bounds |
transform (Sgss_Graphics_Transform $trans)
Applies the specified transformation to this bounds |
Sgss_Graphics_Bounds |
translate (number $dx, number $dy)
Translates this bounds by the specified distance |
Sgss_Graphics_Bounds |
union (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Returns the united bounds with another |
Sgss_Graphics_Bounds |
unite (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Unites this bounds with another |
mixed |
__get (mixed $name)
|
mixed |
__set (mixed $name, mixed $value)
|
string |
__toString ()
|
Height of the bounds
protected number $_height
Width of the bounds
protected number $_width
X coordinate of upper left corner
protected number $_x
Y coordinate of upper left corner
protected number $_y
The constructor
number|array|Sgss_Graphics_Bounds $x
X coordinate of the upper left corner, or a bounds
number $y
Y coordinate of the upper left corner
number $width
Width of the bounds
number $height
Height of the bounds
public __construct ([number|array|Sgss_Graphics_Bounds $x = 0], [number $y = 0], [number $width = 0], [number $height = 0])
Adds a location in this bounds
number|array|Sgss_Graphics_Location $x
X coordinate of the location, or a location to be added
number|null $y
Y coordinate of the location
public Sgss_Graphics_Bounds add (number|array|Sgss_Graphics_Location $x, [number|null $y = null])
Draws this bounds to the specified ImagickDraw instance
Imagick|ImagickDraw $imagick
ImagickDraw instance
number $x
Offset x
number $y
Offset y
Draws to the specified ImagickDraw instance
public boolean drawImagick (Imagick|ImagickDraw $imagick, [number $x = 0], [number $y = 0])
Returns another object representing this bounds
public Sgss_Graphics_Bounds getBounds ()
Returns the dimension of this bounds
public Sgss_Graphics_Dimension getDimension ()
Returns the height of this bounds
public number getHeight ()
Returns the location of the upper left corner
public Sgss_Graphics_Location getLocation ()
Returns the width of this bounds
public number getWidth ()
Returns the x coordinate of the upper left corner
public number getX ()
Returns the y coordinate of the upper left corner
public number getY ()
Resizes the edges of this bounds by the specified length
number $h
Horizontal length
number $v
Vertical length
public Sgss_Graphics_Bounds grow (number $h, number $v)
Returns the integer wrapper object of this bounds
public Sgss_Graphics_Bounds_Integer integer ()
Intersects this bounds with another
number|array|Sgss_Graphics_Bounds $x
X coordinate of the upper left corner, or a bounds to be intersected with
number|null $y
Y coordinate of the upper left corner
number|null $width
Width of the bounds
number|null $height
Height of the bounds
public Sgss_Graphics_Bounds intersect (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Returns the intersected bounds with another
number|array|Sgss_Graphics_Bounds $x
X coordinate of the upper left corner, or a bounds to be intersected with
number|null $y
Y coordinate of the upper left corner
number|null $width
Width of the bounds
number|null $height
Height of the bounds
public Sgss_Graphics_Bounds intersection (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Moves this bounds to the specified location
number $x
X coordinate of the location
number $y
Y coordinate of the location
public Sgss_Graphics_Bounds move (number $x, number $y)
Sets the location and dimension of the bounds
number $x
X coodinate of the upper left corner
number $y
Y coodinate of the upper left corner
number $width
Width of the bounds
number $height
Height of the bounds
public Sgss_Graphics_Bounds reshape (number $x, number $y, number $width, number $height)
Resizes this bounds to the specified dimension
number $width
Width of the dimension
number $height
Height of the dimension
public Sgss_Graphics_Bounds resize (number $width, number $height)
Scales this bounds by the specified dimension
number $w
Width of the dimension
number $h
Height of the dimension
public Sgss_Graphics_Bounds scale (number $w, number $h)
Sets this bounds to the specified value
Sgss_Graphics_Bounds $b
Bounds to set
public void setBounds (Sgss_Graphics_Bounds $b)
Sets the dimension of this bounds to the specified value
Sgss_Graphics_Dimension $d
Dimension to set
public void setDimension (Sgss_Graphics_Dimension $d)
Sets the height of this bounds to the specified value
number $height
Height of the bounds to set
public void setHeight (number $height)
Sets the location of the upper left corner to the specified value
Sgss_Graphics_Location $l
Location to set
public void setLocation (Sgss_Graphics_Location $l)
Sets the width of this bounds to the specified value
number $width
Width of the bounds to set
public void setWidth (number $width)
Sets the x coordinate of the upper left corner to the specified value
number $x
X coordinate of the upper left corner to set
public void setX (number $x)
Sets the y coordinate of the upper left corner to the specified value
number $y
Y coordinate of the upper left corner to set
public void setY (number $y)
Converts this bounds to an array
Returned array takes the following form:
array($x, $y, $width, $height)public array toArray ()
Applies the specified transformation to this bounds
Sgss_Graphics_Transform $trans
Transformation matrix to apply
public Sgss_Graphics_Bounds transform (Sgss_Graphics_Transform $trans)
Translates this bounds by the specified distance
number $dx
Distance along the x axis
number $dy
Distance along the y axis
public Sgss_Graphics_Bounds translate (number $dx, number $dy)
Returns the united bounds with another
number|array|Sgss_Graphics_Bounds $x
X coordinate of the upper left corner, or a bounds to be united with
number|null $y
Y coordinate of the upper left corner
number|null $width
Width of the bounds
number|null $height
Height of the bounds
public Sgss_Graphics_Bounds union (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
Unites this bounds with another
number|array|Sgss_Graphics_Bounds $x
X coordinate of the upper left corner, or a bounds to be united with
number|null $y
Y coordinate of the upper left corner
number|null $width
Width of the bounds
number|null $height
Height of the bounds
public Sgss_Graphics_Bounds unite (number|array|Sgss_Graphics_Bounds $x, [number|null $y = null], [number|null $width = null], [number|null $height = null])
mixed $name
public mixed __get (mixed $name)
mixed $name
mixed $value
public mixed __set (mixed $name, mixed $value)
public string __toString ()