Skip to main content

GUIElement

class GUIElement

Class responsible for modifying the position, scale(X and Y axis) and rotation of GUI elements, whether image(GUIImage) or text(GUIText), the "GUIImage" and "GUIText" classes inherit the "GUIElement" class.


public class GUIElement

— Constructors (3) —

ConstructorDescription
GUIElement()Creates a new GUIElement.
GUIElement(int layer)Creates a new GUIElement with its layer defined to be "layer" argument.
GUIElement(int layer, int x, int y, int width, int height)Creates a new GUIElement with its layer defined to be "layer" argument, X position to be "x" argument, Y position to be "y" argument, width to be "width" argument and height to be "height" argument.

— Methods (16) —

NameDescription
int getLayer()Returns the current layer of the GUIElement.
GUIElement setLayer(int value)Sets the current layer of the GUIElement to be "value" argument.
int getX()Returns the current X position of the GUIElement.
GUIElement setX(int x)Sets the current X position of the GUIElement to be "x" argument.
int getY()Returns the current Y position of the GUIElement.
GUIElement setY(int y)Sets the current Y position of the GUIElement to be "y" argument.
int getWidth()Returns the current width size of the GUIElement.
GUIElement setWidth(int width)Sets the current size of the GUIElement's width to be "width" argument.
int getHeight()Returns the current size of the GUIElement.
GUIElement setHeight(int height)Sets the current size of the GUIElement's height to be "height" argument.
GUIElement set(int x, int y, int w, int h)Sets the GUIElement's current X position to be "x" argument, Y position to be "y" argument, width to be "w" argument, and height to be "h" argument.
Quaternion getRotation()Returns a Quaternion with the current rotation of the GUIElement.
GUIElement setRotation(Quaternion rotation)Sets the current rotation of the GUIElement to be "rotation" argument.
void setRotationX(float v)Sets the current rotation of the GUIElement's X axis to be "v" argument.
void setRotationY(float v)Sets the current rotation of the GUIElement's Y axis to be "v" argument.
void setRotationZ(float v)Sets the current rotation of the GUIElement's Z axis to be "v" argument.