GuiTools
Description
Method Summary
Methods
static getAlignedPos (line 111)
Returns the position of an element in relation to another element and according to their respective alignments
- GuiElement $object: Parent element
- string $newHalign: Horizontal alignement of the element you want to place
- string $newValign: Vertical alignement of the element you want to place
static getAlignedPosX (line 26)
Returns the X position of an element in relation to another element and according to their respective alignments
int
getAlignedPosX
(int $posX, int $sizeX, string $halign, string $newAlign)
- int $posX: X position of the parent element
- int $sizeX: Width of the parent element
- string $halign: Horizontal alignement of the parent element
- string $newAlign: Horizontal alignement of the element you want to place
static getAlignedPosY (line 75)
Returns the Y position of an element in relation to another element and according to their respective alignments
int
getAlignedPosY
(int $posY, int $sizeY, string $valign, string $newAlign)
- int $posY: Y position of the parent element
- int $sizeY: Height of the parent element
- string $valign: Vertical alignement of the parent element
- string $newAlign: Vertical alignement of the element you want to place