示例#1
0
 function postFilter(\ManiaLib\Gui\Component $item)
 {
     $this->yIndex -= $item->getRealSizeY() + $this->marginHeight;
     if (!$this->maxWidth || $item->getRealSizeX() > $this->maxWidth) {
         $this->maxWidth = $item->getRealSizeX();
     }
     $this->currentColumnElementCount++;
 }
示例#2
0
 function postFilter(\ManiaLib\Gui\Component $item)
 {
     $this->xIndex += $item->getRealSizeX() + $this->marginWidth;
     if (!$this->maxHeight || $item->getRealSizeY() > $this->maxHeight) {
         $this->maxHeight = $item->getRealSizeY();
     }
     $this->currentLineElementCount++;
 }
示例#3
0
 function postFilter(\ManiaLib\Gui\Component $item)
 {
     if ($this->direction == self::DIRECTION_DOWN) {
         $this->yIndex -= $item->getRealSizeY() + $this->marginHeight;
     }
 }
示例#4
0
 final function updateComponent(\ManiaLib\Gui\Component $item)
 {
     $item->incPosX($this->xIndex);
     $item->incPosY($this->yIndex);
     $item->incPosZ($this->zIndex);
 }
示例#5
0
 function postFilter(\ManiaLib\Gui\Component $item)
 {
     $this->xIndex += $item->getRealSizeX() + $this->marginWidth;
 }