Class AbstractLayout
Abstract class used for building layouts
- ManiaLib\Gui\Component
- ManiaLib\Gui\Layouts\AbstractLayout
Direct known subclasses
ManiaLib\Gui\Layouts\Column, ManiaLib\Gui\Layouts\Flow, ManiaLib\Gui\Layouts\Line, ManiaLib\Gui\Layouts\Spacer, ManiaLib\Gui\Layouts\VerticalFlow
Abstract
Namespace: ManiaLib\Gui\Layouts
Located at libraries/ManiaLib/Gui/Layouts/AbstractLayout.php
Namespace: ManiaLib\Gui\Layouts
Located at libraries/ManiaLib/Gui/Layouts/AbstractLayout.php
public
|
#
__construct( float $sizeX = 20, float $sizeY = 20 )
Default constructor is used to set the size of the layout, just like \ManiaLib\Gui\Element |
public
|
#
setMarginWidth( float $marginWidth )
Sets the horizontal margin between two elements of the layout |
public
|
#
setMarginHeight( float $marginHeight )
Sets the vertical margin between two elements of the layout |
public
|
|
public
float
|
|
public
float
|
|
public
|
#
setBorderWidth( float $borderWidth )
Sets the width between the layout outer border and its content |
public
|
#
setBorderHeight( float $borderHeight )
Sets the height between the layout outer border and its content |
public
|
|
public
float
|
|
public
float
|
|
final public
|
|
public
|
#
preFilter(
Override this method to perform an action before rendering an item. Typical use: look for overflow |
public
|
#
postFilter(
Override this method to perform an action after rendering an an item. Typical use: update x,y,z indexes for the next item |
public
integer
|
$xIndex | 0 |
|
public
integer
|
$yIndex | 0 |
|
public
integer
|
$zIndex | 0 |
|
protected
mixed
|
$marginWidth |
|
|
protected
mixed
|
$marginHeight |
|
|
protected
mixed
|
$borderWidth |
|
|
protected
mixed
|
$borderHeight |
|
$halign,
$id,
$parentFrame,
$parentLayout,
$parentNode,
$posX,
$posY,
$posZ,
$relativeHalign,
$relativeValign,
$scale,
$scriptEvents,
$sizeX,
$sizeY,
$valign,
$visible
|