コード例 #1
0
 function move($offset_x, $offset_y, $ignore_self = false)
 {
     list($x, $y) = $this->_frame->get_position();
     if (!$ignore_self) {
         $this->_frame->set_position($x + $offset_x, $y + $offset_y);
     }
     foreach ($this->_frame->get_children() as $child) {
         $child->move($offset_x, $offset_y);
     }
 }
コード例 #2
0
 function move(AbstractFrameDecorator $frame, $offset_x, $offset_y, $ignore_self = false)
 {
     list($x, $y) = $frame->get_position();
     if (!$ignore_self) {
         $frame->set_position($x + $offset_x, $y + $offset_y);
     }
     foreach ($frame->get_children() as $child) {
         $child->move($offset_x, $offset_y);
     }
 }