UIElement

Fields

ID
generation

Properties

isValid
type
placeNextOffsetX
placeNextOffsetY
transform
isActive
isGloballyActive
inUI
parent
childCount
position
size
topLeftAnchorCoords
bottomRightAnchorCoords
globalTopLeft
globalBottomRight
globalSize
maxExtents
globalArea
globalDepth
root
matrix

Functions

GetData()
GetChild(int index)
AddNext(UIElement next)
AddInline(UIElement next)
Add(UIElement next)
AddNext(UIElement next, UIElement& saveTo)
AddInline(UIElement next, UIElement& saveTo)
Add(UIElement next, UIElement& saveTo)
Destroy(bool destroyChildren)
DestroyChildren()
CenterX()
CenterY()
Origin(float percentX, float percentY)
Offset(float x, float y)
Offset(float x, float y, float z)
WithDepth(float z)
FitParent()
SetXAnchor(float left, float right)
SetYAnchor(float top, float bottom)
WithXAnchor(float left, float right, float leftOffset, float rightOffset)
WithYAnchor(float top, float bottom, float topOffset, float bottomOffset)
SetActive(bool active)
WithSize(float width, float height)
Scale(float factor)
WithHeight(float height)
WithWidth(float width)
For(int count, Action action)
RecalculateBounds()
Update()
Draw(RenderBatch batch)

Static Functions

GetNextID()
New()
DestroyElement(UIElement element)
GetAtPosition(Vector2 position)
GetNearestToPosition(Vector2 position, float maxDistance)
GetAtDirection(UIElement currentElement, Vector2 direction, float directionTolerance)