ManiaLib 1.0b1 API Reference

Source for file LineLayout.class.php

Documentation is available at LineLayout.class.php

  1. <?php
  2. /**
  3.  * @author Maxime Raoust
  4.  * @copyright 2009-2010 NADEO
  5.  * @package ManiaLib
  6.  */
  7.  
  8. /**
  9.  * Line layout
  10.  * Elements are added at the right of their predecessor
  11.  * @package ManiaLib
  12.  * @subpackage GUIToolkit_Layouts
  13.  */
  14. class LineLayout extends AbstractLayout
  15. {
  16.     /**
  17.      * @ignore
  18.      */
  19.     function postFilter(GuiElement $item)
  20.     {
  21.         $this->xIndex += $item->getSizeX($this->marginWidth;
  22.     }
  23. }
  24.  
  25. ?>