ManiaLib 1.0b1 API Reference

Abstract Class GuiComponent

Description

The GuiComponent is a generic and abstract element that only contains position, size and scale info.

  • abstract:

Located in /gui-toolkit/standard.php (line 21)


	
			
Direct descendents
Class Description
 class PageNavigator Page Navigator
Abstract class AbstractLayout Abstract layout
Abstract class GuiElement Base class for creating GUI elements
Method Summary
 float getPosX ()
 float getPosY ()
 float getPosZ ()
 float getScale ()
 float getSizeX ()
 float getSizeY ()
 void setPosition ([float $posX = 0], [float $posY = 0], [float $posZ = 0])
 void setPositionX (float $posX)
 void setPositionY (float $posY)
 void setPositionZ (float $posZ)
 void setScale (float $scale)
 void setSize (float $sizeX, float $sizeY)
 void setSizeX (float $sizeX)
 void setSizeY (float $sizeY)
Methods
getPosX (line 117)

Returns the X position of the element

float getPosX ()
getPosY (line 126)

Returns the Y position of the element

float getPosY ()
getPosZ (line 135)

Returns the Z position of the element

float getPosZ ()
getScale (line 162)

Returns the scale of the element

float getScale ()
getSizeX (line 144)

Returns the width of the element

float getSizeX ()
getSizeY (line 153)

Returns the height of the element

float getSizeY ()
setPosition (line 67)

Sets the position of the element

void setPosition ([float $posX = 0], [float $posY = 0], [float $posZ = 0])
  • float $posX
  • float $posY
  • float $posZ
setPositionX (line 38)

Sets the X position of the element

void setPositionX (float $posX)
  • float $posX
setPositionY (line 47)

Sets the Y position of the element

void setPositionY (float $posY)
  • float $posY
setPositionZ (line 56)

Sets the Z position of the element

void setPositionZ (float $posZ)
  • float $posZ
setScale (line 108)

Sets the scale factor of the element. 1=original size, 2=double size, 0.5

=half size

void setScale (float $scale)
  • float $scale
setSize (line 97)

Sets the size of the element

void setSize (float $sizeX, float $sizeY)
  • float $sizeX
  • float $sizeY

Redefined in descendants as:
setSizeX (line 78)

Sets the width of the element

void setSizeX (float $sizeX)
  • float $sizeX

Redefined in descendants as:
setSizeY (line 87)

Sets the height of the element

void setSizeY (float $sizeY)
  • float $sizeY