libraries/ManiaLib/Gui/Component.php
function setHalign($halign)
    {
        $old = $this->halign;
        $this->halign = $halign;
        $this->onAlign($old, $this->valign);
    }
function setHalign($halign)
    {
        $old = $this->halign;
        $this->halign = $halign;
        $this->onAlign($old, $this->valign);
    }
Sets the horizontal alignment of the element
@param string Horizontal alignement can be eithe "left", "center" or
"right"