Exemplo n.º 1
0
 function offset($dx, $dy)
 {
     parent::offset($dx, $dy);
     $this->_current_x += $dx;
     $this->_current_y += $dy;
     // Offset contents
     $size = count($this->content);
     for ($i = 0; $i < $size; $i++) {
         $this->content[$i]->offset($dx, $dy);
     }
 }