final public static function beginFrame($x = 0, $y = 0, $z = 0, $scale = null,
                                            \ManiaLib\Gui\Layouts\AbstractLayout $layout = null)
    {
        $frame = new Elements\Frame();
        $frame->setPosition($x, $y, $z);
        $frame->setScale($scale);
        if ($layout instanceof Layouts\AbstractLayout) {
            $frame->setLayout($layout);
        }
        $frame->buildXML();

        self::$parentFrames[] = $frame;
        self::$parentNodes[] = $frame->getDOMElement();
        self::$parentLayouts[] = $frame->getLayout();
    }
final public static function beginFrame($x = 0, $y = 0, $z = 0, $scale = null,
                                            \ManiaLib\Gui\Layouts\AbstractLayout $layout = null)
    {
        $frame = new Elements\Frame();
        $frame->setPosition($x, $y, $z);
        $frame->setScale($scale);
        if ($layout instanceof Layouts\AbstractLayout) {
            $frame->setLayout($layout);
        }
        $frame->buildXML();

        self::$parentFrames[] = $frame;
        self::$parentNodes[] = $frame->getDOMElement();
        self::$parentLayouts[] = $frame->getLayout();
    }
final public static function beginFrame ( $ x = 0 , $ y = 0 , $ z = 0 , $ scale = null , \ ManiaLib \ Gui \ Layouts \ AbstractLayout $ layout = null ) { $ frame = new Elements \ Frame ( ) ; $ frame -> setPosition ( $ x , $ y , $ z ) ; $ frame -> setScale ( $ scale ) ; if ( $ layout instanceof Layouts \ AbstractLayout ) { $ frame -> setLayout ( $ layout ) ; } $ frame -> buildXML ( ) ; self :: $ parentFrames [ ] = $ frame ; self :: $ parentNodes [ ] = $ frame -> getDOMElement ( ) ; self :: $ parentLayouts [ ] = $ frame -> getLayout ( ) ; }
Creates a new Manialink frame, with an optionnal associated layout

@param float X position
@param float Y position
@param float Z position
@param float Scale (default is null or 1)
@param \ManiaLib\Gui\Layouts\AbstractLayout The optionnal layout associated with the frame. If
you pass a layout object, all the items inside the frame will be
positionned using constraints defined by the layout
Creates a new Manialink frame with an optionnal associated layout