| 1 | <?php |
||
| 8 | abstract class abstractUiElement extends ScriptFeature implements Renderable |
||
| 9 | { |
||
| 10 | protected $posX = 0; |
||
| 11 | protected $posY = 0; |
||
| 12 | protected $posZ = 0; |
||
| 13 | |||
| 14 | protected $width; |
||
| 15 | protected $height; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $posX |
||
| 19 | * @param int $posY |
||
| 20 | * @param int $posZ |
||
| 21 | */ |
||
| 22 | public function setPosition($posX = 0, $posY = 0, $posZ = 0) |
||
| 31 | |||
| 32 | public function setX($X) |
||
| 38 | |||
| 39 | public function setY($Y) |
||
| 45 | |||
| 46 | public function setZ($Z) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Render the XML element |
||
| 55 | * |
||
| 56 | * @param \DOMDocument $domDocument DOMDocument for which the XML element should be rendered |
||
| 57 | * @return \DOMElement |
||
| 58 | */ |
||
| 59 | abstract public function render(\DOMDocument $domDocument); |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return int |
||
| 63 | */ |
||
| 64 | public function getX() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return int |
||
| 71 | */ |
||
| 72 | public function getY() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return int |
||
| 79 | */ |
||
| 80 | public function getZ() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return mixed |
||
| 87 | */ |
||
| 88 | public function getWidth() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param mixed $width |
||
| 95 | */ |
||
| 96 | public function setWidth($width) |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @param mixed $height |
||
| 105 | * @return abstractUiElement |
||
| 106 | */ |
||
| 107 | public function setHeight($height) |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return mixed |
||
| 116 | */ |
||
| 117 | public function getHeight() |
||
| 121 | |||
| 122 | public function setSize($x, $y) |
||
| 127 | |||
| 128 | |||
| 129 | } |
||
| 130 |