contributions/lib.imagetools/lib/components/imagetoolsrect.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * A simple data structure representing a rectangle 00004 * 00005 * @ingroup ImageTools 00006 */ 00007 class ImageToolsRect { 00008 /** 00009 * Position Left 00010 * 00011 * @var int 00012 */ 00013 public $x; 00014 /** 00015 * Position top 00016 * 00017 * @var int 00018 */ 00019 public $y; 00020 /** 00021 * Width 00022 * 00023 * @var int 00024 */ 00025 public $width; 00026 /** 00027 * Height 00028 * 00029 * @var int 00030 */ 00031 public $height; 00032 00033 /** 00034 * Constructor 00035 * 00036 * @param int $width 00037 * @param int $height 00038 * @param int $x 00039 * @param int $y 00040 */ 00041 public function __construct($width, $height, $x = 0, $y = 0) { 00042 $this->x = $x; 00043 $this->y = $y; 00044 $this->width = $width; 00045 $this->height = $height; 00046 } 00047 }