MenuRoot
Package: Libraries.Interface.Controls · Inherits from: Libraries.Interface.Item, Libraries.Interface.Controls.Control, Libraries.Interface.Item2D, Libraries.Language.Object
The MenuRoot class is a blueprint that represents the top-most level of a menu. It's used for classes like the MenuBar. Most users will never need to use this class directly.
Example Code
use Libraries.Game.Game
use Libraries.Interface.Controls.MenuRoot
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuBar bar
MenuItem file
file:SetName("File")
MenuItem exit
exit:SetName("Exit")
file:Add(exit)
bar:Add(file)
Add(bar)
// A MenuBar is one kind of MenuRoot.
MenuRoot root = bar
output "Menus on the bar: " + root:GetSize()
end
end
Actions
ActivateSelection()
This action acts on the selected item, as the Enter key does. If the selected item has a submenu, the submenu opens. Otherwise the item is activated and its behavior runs. Nothing happens if the menu is not being used or nothing is selected.
Add(Libraries.Containers.Array<Libraries.Interface.Controls.MenuItem> menuHeaders)
This action adds each MenuItem in the array to the top level of the menu, in order. Each kind of MenuRoot decides where the items go: a MenuBar puts them along the bar, and a PopupMenu lists them in its panel.
Parameters
menuHeadersLibraries.Containers.Array<Libraries.Interface.Controls.MenuItem>: The MenuItems to add to the top level of the menu.
Example
use Libraries.Game.Game
use Libraries.Containers.Array
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuItem file
file:SetName("File")
MenuItem edit
edit:SetName("Edit")
Array<MenuItem> menus
menus:Add(file)
menus:Add(edit)
MenuBar bar
bar:Add(menus)
Add(bar)
end
end
Add(Libraries.Interface.Controls.MenuItem item)
This action adds a MenuItem to the top level of the menu, after the items already there. The item, and any items inside it, are connected to this MenuRoot so their selections and events go through it.
Parameters
itemLibraries.Interface.Controls.MenuItem: The MenuItem to add to the top level of the menu.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuItem file
file:SetName("File")
MenuItem quit
quit:SetName("Quit")
file:Add(quit)
MenuBar bar
bar:Add(file)
Add(bar)
end
end
AddMenuChangeListener(Libraries.Interface.Events.MenuChangeListener listener)
This action adds a listener that is told whenever a menu in this MenuRoot opens or closes. The listener's OpenedMenu action is called when a menu opens, and its ClosedMenu action is called when one closes.
Parameters
listenerLibraries.Interface.Events.MenuChangeListener: The MenuChangeListener to add.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
use Libraries.Interface.Events.MenuChangeListener
use Libraries.Interface.Events.MenuChangeEvent
class Main is Game, MenuChangeListener
action Main
StartGame()
end
action CreateGame
MenuBar bar
MenuItem file
file:SetName("File")
MenuItem exit
exit:SetName("Exit")
file:Add(exit)
bar:Add(file)
bar:AddMenuChangeListener(me)
Add(bar)
end
action OpenedMenu(MenuChangeEvent event)
output "Opened " + event:GetMenuItem():GetName()
end
action ClosedMenu(MenuChangeEvent event)
output "Closed " + event:GetMenuItem():GetName()
end
end
Close()
This action closes every open menu and submenu in this MenuRoot. A MenuBar stays on the screen with its menus closed, while a PopupMenu hides itself.
Deselect()
This action clears the menu's selection, so no item is selected. Every item on the old selection path loses its selection.
GainedFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the menu gains the focus. It remembers which item had the focus before, so RestoreLastFocus can give the focus back to it when the user is done with the menu.
Parameters
eventLibraries.Interface.Events.FocusEvent: The FocusEvent that describes the change of focus.
GetIterator()
This action returns an Iterator that goes through the MenuItems on the top level of this menu, in order.
Returns
Libraries.Containers.Iterator<Libraries.Interface.Controls.MenuItem>: An Iterator over the top level MenuItems.
Example
use Libraries.Game.Game
use Libraries.Containers.Iterator
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuBar bar
MenuItem file
file:SetName("File")
MenuItem edit
edit:SetName("Edit")
bar:Add(file)
bar:Add(edit)
Add(bar)
Iterator<MenuItem> iterator = bar:GetIterator()
repeat while iterator:HasNext()
MenuItem menu = iterator:Next()
output menu:GetName()
end
end
end
GetLastFocus()
The GetLastFocus action returns the Item that had the focus before the Menu was focused, or undefined if no Item had focus before the Menu.
Returns
GetMultipleSelection()
This action would return a group of selections, for controls that can select more than one thing at a time. A menu only ever selects one item, so this always returns undefined. Use GetSelection instead.
Returns
Libraries.Containers.Array<Libraries.Interface.Selections.MenuSelection>: undefined, because a menu has only one selection.
GetSelection()
This action returns the menu's selection. The selection holds the path from the top level of the menu down to the selected item, such as File and then Exit when Exit in the File menu is selected.
Returns
Libraries.Interface.Selections.MenuSelection: The MenuSelection of this menu.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
use Libraries.Interface.Selections.MenuSelection
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuBar bar
MenuItem file
file:SetName("File")
MenuItem exit
exit:SetName("Exit")
file:Add(exit)
bar:Add(file)
Add(bar)
exit:Select()
MenuSelection selection = bar:GetSelection()
output "Items in the selected path: " + selection:GetPathLength()
end
end
GetSize()
This action returns how many MenuItems are on the top level of this menu. It does not count the items inside submenus.
Returns
integer: The number of MenuItems on the top level of the menu.
HasBar()
The HasBar action is used to specify if this MenuRoot uses a special layout for the first menu items (i.e., the first set of the menu items is placed in a menu bar, unlike submenus which use menu panels).
Returns
boolean
HasMultipleSelection()
This action tells whether this control can select more than one thing at a time. A menu only ever selects one item, so this always returns false.
Returns
boolean: false, because a menu has only one selection.
IsEmpty()
This action tells whether the top level of this menu has no MenuItems in it.
Returns
boolean: true if the menu has no items, or false if it has at least one.
IsSelecting()
This action tells whether the menu is being used, meaning the user has selected something in it and is moving through it. While a menu is in this state, moving the mouse over the items opens and selects them, and clicking an item activates it.
Returns
boolean: true if the menu is being used, or false if not.
LostFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the menu loses the focus. It clears the selection and closes every open menu, so a menu doesn't stay open after the user moves on to something else.
Parameters
eventLibraries.Interface.Events.FocusEvent: The FocusEvent that describes the change of focus.
MoveSelectionDown()
This action moves the selection down to the item below the selected one, as the down arrow key does. In a MenuBar, if a menu on the bar is selected, its menu opens and its first item is selected. The menu's keyboard behaviors call this, so most users shouldn't need to.
MoveSelectionLeft()
This action moves the selection one step to the left, as the left arrow key does. In a MenuBar this moves to the menu before the selected one, or out of a submenu to its parent. In a PopupMenu it moves out of a submenu to its parent. The menu's keyboard behaviors call this, so most users shouldn't need to.
MoveSelectionRight()
This action moves the selection one step to the right, as the right arrow key does. If the selected item opens a submenu, the submenu opens and its first item is selected. In a MenuBar, if the selected item has no submenu, the selection moves on to the next menu along the bar. The menu's keyboard behaviors call this, so most users shouldn't need to.
MoveSelectionUp()
This action moves the selection up to the item above the selected one, as the up arrow key does. The menu's keyboard behaviors call this, so most users shouldn't need to.
NotifyMenuChangeListeners(Libraries.Interface.Events.MenuChangeEvent event)
This action tells every MenuChangeListener on this MenuRoot that a menu opened or closed, depending on the event's type, and then passes the event on to the game's input system. MenuItems call this when they open and close, so most users shouldn't need to call it directly.
Parameters
eventLibraries.Interface.Events.MenuChangeEvent: The event that describes which menu opened or closed.
RemoveMenuChangeListener(Libraries.Interface.Events.MenuChangeListener listener)
This action removes a listener added with AddMenuChangeListener, so it is no longer told when menus open or close.
Parameters
listenerLibraries.Interface.Events.MenuChangeListener: The MenuChangeListener to remove.
RestoreLastFocus()
The RestoreLastFocus action is used internally by the Menu system to restore focus to the last Item that had it before the Menu was focused. This action is called automatically as needed by the system, and users should not have to call it manually.
Select(Libraries.Containers.Array<Libraries.Interface.Controls.MenuItem> path)
This action selects the item at the end of the given path. The path lists the MenuItems from the top level of the menu down to the item to select, such as File and then Exit. Items that were on the old path but not the new one lose their selection, items on the new path gain it, and the selection is updated, which tells any selection listeners. An empty path clears the selection. Calling Select on a MenuItem does the same thing for that item.
Parameters
pathLibraries.Containers.Array<Libraries.Interface.Controls.MenuItem>: The MenuItems from the top level down to the item to select.
Example
use Libraries.Game.Game
use Libraries.Containers.Array
use Libraries.Interface.Controls.MenuBar
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
MenuBar bar
MenuItem file
file:SetName("File")
MenuItem exit
exit:SetName("Exit")
file:Add(exit)
bar:Add(file)
Add(bar)
file:Open()
Array<MenuItem> path
path:Add(file)
path:Add(exit)
bar:Select(path)
end
end
SetSelectingState(boolean selecting)
This action sets whether the menu is being used. Selecting a MenuItem sets this to true. Setting it to false also clears the menu's selection, which is what happens when an item is activated and the menu is done.
Parameters
selectingboolean: true if the menu is being used, or false to stop using it.
Inherited Actions
262 actions from Libraries.Interface.Controls.Control
- Activate(Libraries.Interface.Events.BehaviorEvent event)
- Activate()
- Add(integer index, Libraries.Interface.Item2D newItem)
- Add(Libraries.Interface.Item2D newItem)
- AddControlActivationListener(Libraries.Interface.Events.ControlActivationListener listener)
- AddLayoutProperties(Libraries.Interface.Layouts.LayoutProperties properties)
- AddSelectionListener(Libraries.Interface.Events.SelectionListener listener)
- BeginMouseOver()
- ClickedMouse()
- CopyAndActivateInputTable(text name)
- CreateTooltipContent()
- EmptySelectionListeners()
- EndMouseOver()
- GainedSelection()
- GetAccentColor()
- GetActivationBehavior()
- GetBackgroundColor()
- GetBorderColor()
- GetBorderStyle()
- GetBorderThickness()
- GetBottomLeftPixelRounding()
- GetBottomLeftRounding()
- GetBottomMargin()
- GetBottomPadding()
- GetBottomRightPixelRounding()
- GetBottomRightRounding()
- GetColorProperty(text property)
- GetContainerGridHeight()
- GetContainerGridWidth()
- GetCurrentLayoutProperties()
- GetDefaultFont()
- GetDefaultFontName()
- GetDefaultFontSize()
- GetDefaultLayoutProperties()
- GetDefaultMonospaceFontName()
- GetDefaultProportionalFontName()
- GetFocusBorderColor()
- GetFocusBorderThickness()
- GetFocusColor()
- GetFocusFontColor()
- GetFont()
- GetFontColor()
- GetFontOutlineColor()
- GetFontOutlineThickness()
- GetFontSize()
- GetForegroundColor()
- GetForegroundSelectionColor()
- GetGlowColor()
- GetGridHeight()
- GetGridWidth()
- GetGridX()
- GetGridY()
- GetHorizontalLayoutMode()
- GetIcon()
- GetIconColor()
- GetInterfaceOptionsKey()
- GetInterfaceScale()
- GetLabelText()
- GetLayout()
- GetLayoutProperties(number containerWidth, number containerHeight)
- GetLayoutProperties()
- GetLayoutRows()
- GetLeftMargin()
- GetLeftPadding()
- GetMouseDownColor()
- GetMouseDownFontColor()
- GetMouseDownGlowColor()
- GetMouseOverBorderColor()
- GetMouseOverBorderThickness()
- GetMouseOverColor()
- GetMouseOverFontColor()
- GetMouseOverGlowColor()
- GetNumberProperty(text property)
- GetPercentageHeight()
- GetPercentageOriginX()
- GetPercentageOriginY()
- GetPercentageWidth()
- GetPercentageX()
- GetPercentageY()
- GetPixelHeight()
- GetPixelWidth()
- GetPixelX()
- GetPixelY()
- GetPopupMenu()
- GetRightMargin()
- GetRightPadding()
- GetSelectionBorderColor()
- GetSelectionBorderThickness()
- GetSelectionColor()
- GetSelectionFontColor()
- GetSelectionListeners()
- GetShadowColor()
- GetShadowEdgeFade()
- GetShadowHeight()
- GetShadowWidth()
- GetShadowX()
- GetShadowY()
- GetTooltipArea()
- GetTooltipPlacement()
- GetTooltipShowDelay()
- GetTooltipText()
- GetTooltipTitle()
- GetTooltipWords()
- GetTopLeftPixelRounding()
- GetTopLeftRounding()
- GetTopMargin()
- GetTopPadding()
- GetTopRightPixelRounding()
- GetTopRightRounding()
- GetUnfocusedSelectionBorderColor()
- GetUnfocusedSelectionColor()
- GetUnfocusedSelectionFontColor()
- GetVerticalLayoutMode()
- HasBorderThickness()
- HasBottomBorder()
- HasBottomLeftPixelRounding()
- HasBottomLeftRounding()
- HasBottomRightPixelRounding()
- HasBottomRightRounding()
- HasColorPropertyOverride(text property)
- HasFocusBorderThickness()
- HasFontOutlineThickness()
- HasLeftBorder()
- HasMouseOverBorderThickness()
- HasNumberPropertyOverride(text property)
- HasRightBorder()
- HasSelectionBorderThickness()
- HasShadowEdgeFade()
- HasShadowHeight()
- HasShadowWidth()
- HasShadowX()
- HasShadowY()
- HasTooltipContent()
- HasTopBorder()
- HasTopLeftPixelRounding()
- HasTopLeftRounding()
- HasTopRightPixelRounding()
- HasTopRightRounding()
- HideTooltip()
- IsRenderingFocus()
- IsRenderingMouseDown()
- IsRenderingMouseOver()
- IsRenderingSelection()
- IsTooltipEnabled()
- IsTooltipInteractive()
- IsTooltipShowing()
- IsTooltipShownOnHover()
- IsTooltipTargetChanged()
- LoadGraphics(Libraries.Interface.Layouts.LayoutProperties properties)
- LostSelection()
- NeedsLayout()
- NotifyControlActivationListeners(Libraries.Interface.Events.ControlActivationEvent event)
- NotifySelectionListeners(Libraries.Interface.Events.SelectionEvent event)
- ReleasedMouse()
- Remove(integer index)
- Remove(Libraries.Interface.Item2D item)
- RemoveControlActivationListener(Libraries.Interface.Events.ControlActivationListener listener)
- RemoveLayoutProperties(Libraries.Interface.Layouts.LayoutProperties properties)
- RemoveSelectionListener(Libraries.Interface.Events.SelectionListener listener)
- RequestLayout()
- RequestReloadGraphics()
- ResetLayoutFlag()
- SelectByFirstLetters(text firstLetter)
- SetAccentColor(Libraries.Game.Graphics.ColorGroup value)
- SetBackgroundColor(Libraries.Game.Graphics.ColorGroup value)
- SetBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetBorderStyle(integer style)
- SetBorderThickness(number value)
- SetBottomLeftPixelRounding(number value)
- SetBottomLeftRounding(number value)
- SetBottomMargin(number padding)
- SetBottomPadding(number padding)
- SetBottomRightPixelRounding(number value)
- SetBottomRightRounding(number value)
- SetColorProperty(text property, Libraries.Game.Graphics.ColorGroup value)
- SetContainerGridHeight(integer containerGridHeight)
- SetContainerGridWidth(integer containerGridWidth)
- SetCornerPixelRounding(number bottomLeft, number bottomRight, number topLeft, number topRight)
- SetCornerRounding(number bottomLeft, number bottomRight, number topLeft, number topRight)
- SetFocusBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetFocusBorderThickness(number value)
- SetFocusColor(Libraries.Game.Graphics.ColorGroup value)
- SetFocusFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetFont(Libraries.Game.Graphics.Font font)
- SetFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetFontOutlineColor(Libraries.Game.Graphics.ColorGroup value)
- SetFontOutlineThickness(number value)
- SetFontSize(integer size)
- SetForegroundColor(Libraries.Game.Graphics.ColorGroup value)
- SetForegroundSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetGridHeight(integer gridHeight)
- SetGridPosition(integer gridX, integer gridY)
- SetGridSize(integer gridWidth, integer gridHeight)
- SetGridWidth(integer gridWidth)
- SetGridX(integer gridX)
- SetGridY(integer gridY)
- SetHorizontalLayoutMode(integer mode)
- SetIcon(Libraries.Game.Graphics.TextureRegion icon)
- SetIconColor(Libraries.Game.Graphics.ColorGroup value)
- SetInterfaceOptionsKey(text key)
- SetInterfaceScale(number scale)
- SetLabelText(text labelText)
- SetLayout(Libraries.Interface.Layouts.Layout layout)
- SetLayoutRows(number layoutRows)
- SetLeftMargin(number padding)
- SetLeftPadding(number padding)
- SetMouseDownColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseDownFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseDownGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverBorderThickness(number value)
- SetMouseOverColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetNumberProperty(text property, number value)
- SetPercentageHeight(number height)
- SetPercentageOriginX(number x)
- SetPercentageOriginY(number y)
- SetPercentageWidth(number width)
- SetPercentageX(number x)
- SetPercentageY(number y)
- SetPixelHeight(number height)
- SetPixelWidth(number width)
- SetPixelX(number x)
- SetPixelY(number y)
- SetPopupMenu(Libraries.Interface.Controls.PopupMenu menu)
- SetRightMargin(number padding)
- SetRightPadding(number padding)
- SetSelectionBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetSelectionBorderThickness(number value)
- SetSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetSelectionFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetShadowColor(Libraries.Game.Graphics.ColorGroup value)
- SetShadowEdgeFade(number value)
- SetShadowHeight(number value)
- SetShadowWidth(number value)
- SetShadowX(number value)
- SetShadowY(number value)
- SetToDefaultFontSize()
- SetToHugeFont()
- SetToLargeFont()
- SetToMediumFont()
- SetToSmallFont()
- SetToTinyFont()
- SetTooltipEnabled(boolean enabled)
- SetTooltipText(text value)
- SetTooltipTitle(text value)
- SetTopLeftPixelRounding(number value)
- SetTopLeftRounding(number value)
- SetTopMargin(number padding)
- SetTopPadding(number padding)
- SetTopRightPixelRounding(number value)
- SetTopRightRounding(number value)
- SetUnfocusedSelectionBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetUnfocusedSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetUnfocusedSelectionFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetVerticalLayoutMode(integer mode)
- ShowTooltip()
- TooltipHidden()
- TooltipShown()
- UpdateAll(number seconds)
61 actions from Libraries.Interface.Item
- AddBehavior(Libraries.Interface.Behaviors.Behavior behavior)
- AddFocusListener(Libraries.Interface.Events.FocusListener listener)
- AddGestureListener(Libraries.Interface.Events.GestureListener listener)
- AddMouseListener(Libraries.Interface.Events.MouseListener listener)
- AddMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- AddMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- AddTouchListener(Libraries.Interface.Events.TouchListener listener)
- BeginCollision(Libraries.Interface.Item item)
- CancelBehaviors()
- Dispose()
- DisposeAll()
- DisposeChildren()
- EmptyAll()
- EmptyChildren()
- FinishCollision(Libraries.Interface.Item item)
- Focus()
- GetAccessibilityCode()
- GetAccessibilityRoleDescription()
- GetAccessibilityType()
- GetActiveDescendant()
- GetDescription()
- GetFocusListeners()
- GetGestureListeners()
- GetInputGroup()
- GetInputTable()
- GetMouseListeners()
- GetMouseMovementListeners()
- GetMouseWheelListeners()
- GetName()
- GetNextFocus()
- GetPreviousFocus()
- GetPropertiesSize()
- GetProperty(text key)
- GetPropertyKeyIterator()
- GetTouchListeners()
- HasProperties()
- HasProperty(text key)
- Hide()
- IsAcceptingMouseInput()
- IsAccessibleParent()
- IsFocusable()
- IsFocused()
- IsShowing()
- RemoveFocusListener(Libraries.Interface.Events.FocusListener listener)
- RemoveGestureListener(Libraries.Interface.Events.GestureListener listener)
- RemoveMouseListener(Libraries.Interface.Events.MouseListener listener)
- RemoveMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- RemoveMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- RemoveTouchListener(Libraries.Interface.Events.TouchListener listener)
- SetAcceptsMouseInput(boolean accepts)
- SetAccessibilityCode(integer newAccessibilityCode)
- SetAccessibilityRoleDescription(text newRoleDescription)
- SetDescription(text newDescription)
- SetFocusable(boolean focus)
- SetInputGroup(text group)
- SetName(text newName)
- SetNextFocus(Libraries.Interface.Item next)
- SetPreviousFocus(Libraries.Interface.Item previous)
- SetProperty(text key, Libraries.Data.Formats.JavaScriptObjectNotation value)
- Show()
- Update(number secondsSinceUpdate)
201 actions from Libraries.Interface.Item2D
- Advance(number time)
- ApplyAngularImpulse(number impulse)
- ApplyForce(Libraries.Compute.Vector2 force, Libraries.Compute.Vector2 point)
- ApplyForceToCenter(Libraries.Compute.Vector2 force)
- ApplyLinearImpulse(Libraries.Compute.Vector2 impulse, Libraries.Compute.Vector2 point)
- ApplyTorque(number torque)
- AreChildrenProcessingMouseEvents()
- CanRotate(boolean flag)
- CollideWithChildren()
- ComputeDistance(Libraries.Compute.Vector2 point, integer childIndex, Libraries.Compute.Vector2 normalOut)
- Contains(number containsX, number containsY)
- CreateNodes(Libraries.Game.Collision.BroadphaseCollision2D broadphase, Libraries.Game.Collision.PhysicsPosition2D transform)
- DestroyNodes(Libraries.Game.Collision.BroadphaseCollision2D broadphase)
- Draw(Libraries.Game.Graphics.Painter2D painter)
- Empty()
- EnablePhysics(boolean flag)
- FastMoving(boolean flag)
- FlipX()
- FlipY()
- GetAccessibleParent()
- GetAngularDamping()
- GetAngularVelocity()
- GetBoundingBox(integer childIndex)
- GetBoundingRectangle()
- GetCenterX()
- GetCenterY()
- GetChildren()
- GetClipCoordinates(Libraries.Compute.Vector2 xCoords, Libraries.Compute.Vector2 yCoords)
- GetCollisionGroupFlag()
- GetCollisionGroupIndex()
- GetCollisionList()
- GetDensity()
- GetDrawableShape()
- GetForce()
- GetFriction()
- GetGlobalX()
- GetGlobalY()
- GetGlobalZ()
- GetHeight()
- GetInertia()
- GetInverseInertia()
- GetInverseMass()
- GetItem(integer index)
- GetItemAt(number x, number y)
- GetItemCount()
- GetItems()
- GetJointList()
- GetLayer()
- GetLinearDamping()
- GetLinearVelocity()
- GetLinearVelocityFromLocalPoint(Libraries.Compute.Vector2 localPoint)
- GetLinearVelocityFromWorldPoint(Libraries.Compute.Vector2 worldPoint)
- GetLocalCenter()
- GetLocalPoint(Libraries.Compute.Vector2 worldPoint)
- GetLocalVector(Libraries.Compute.Vector2 worldVector)
- GetMass(Libraries.Game.Physics.Mass2D mass)
- GetMass()
- GetNodeCount()
- GetNodes()
- GetOffsetX()
- GetOffsetY()
- GetOffsetZ()
- GetOriginX()
- GetOriginY()
- GetParent()
- GetPhysicsProperties()
- GetRawInertia()
- GetResponsiveness()
- GetRestitution()
- GetRotation()
- GetRotationInRadians()
- GetScaleX()
- GetScaleY()
- GetScreenX()
- GetScreenY()
- GetShape()
- GetShapeType()
- GetSleepTime()
- GetSweep()
- GetTorque()
- GetTransform()
- GetTransform0()
- GetView2D()
- GetVisibleItemAt(number x, number y)
- GetWidth()
- GetWorldCenter()
- GetWorldPoint(Libraries.Compute.Vector2 localPoint)
- GetWorldVector(Libraries.Compute.Vector2 localVector)
- GetX()
- GetY()
- GetZ()
- HasMoved()
- IsClipping()
- IsCollidable()
- IsCustomDrawing()
- IsFastMoving()
- IsFlippedX()
- IsFlippedY()
- IsNonResponsive()
- IsOnLayer()
- IsPhysicsEnabled()
- IsResponsive()
- IsRotationAllowed()
- IsSimulated()
- IsSimulationRequired()
- IsUnmovable()
- Move(Libraries.Compute.Vector2 movement)
- Move(number xAmount, number yAmount)
- MoveX(number xAmount)
- MoveY(number yAmount)
- MoveZ(number zAmount)
- PrepareVertices()
- ProcessGestureEvent(Libraries.Interface.Events.GestureEvent event)
- ProcessMouseEvent(Libraries.Interface.Events.MouseEvent event)
- ProcessTouchEvent(Libraries.Interface.Events.TouchEvent event)
- QueueForDrawing(Libraries.Game.Graphics.Painter2D painter)
- RequestVerticesUpdate()
- RequireSimulation(boolean flag)
- ResetMass()
- Resize()
- Rotate(number degrees)
- Scale(number amount)
- Scale(number xAmount, number yAmount)
- ScaleFromCenter(number amount)
- ScaleFromCenter(number xAmount, number yAmount)
- SetAngularDamping(number angularDamping)
- SetAngularVelocity(number angularVelocity)
- SetBoundingBox(number newX, number newY, number newWidth, number newHeight)
- SetCenter(number setX, number setY)
- SetCenterX(number setX)
- SetCenterY(number setY)
- SetChildrenProcessingMouseEvents(boolean shouldProcess)
- SetClipCoordinates(Libraries.Game.Graphics.Painter2D painter)
- SetClipping(boolean clip)
- SetCollidable(boolean flag)
- SetCollideWithChildren(boolean flag)
- SetCollisionGroupFlag(boolean flag)
- SetCollisionGroupIndex(integer index)
- SetCollisionList(Libraries.Game.Collision.CollisionEdge2D edge)
- SetCustomDrawing(boolean isCustom)
- SetDensity(number density)
- SetFlipX(boolean flip)
- SetFlipY(boolean flip)
- SetForce(Libraries.Compute.Vector2 force)
- SetFriction(number friction)
- SetHasMoved(boolean flag)
- SetHeight(number newHeight)
- SetItem(integer index, Libraries.Interface.Item2D newItem)
- SetJointList(Libraries.Game.Physics.Joints.JointEdge2D edge)
- SetLayer(Libraries.Game.Layer2D parentLayer)
- SetLinearDamping(number linearDamping)
- SetLinearVelocity(Libraries.Compute.Vector2 linearVelocity)
- SetLinearVelocityX(number linearVelocityX)
- SetLinearVelocityY(number linearVelocityY)
- SetMass(number mass)
- SetMass(Libraries.Game.Physics.Mass2D mass)
- SetNonResponsive()
- SetOffset(number xAmount, number yAmount, number zAmount)
- SetOffset(number xAmount, number yAmount)
- SetOffsetX(number xAmount)
- SetOffsetY(number yAmount)
- SetOffsetZ(number zAmount)
- SetOrigin(number setX, number setY)
- SetOriginCenter()
- SetParent(Libraries.Interface.Item2D newItem)
- SetPhysicsProperties(Libraries.Game.Physics.PhysicsProperties2D properties)
- SetPosition(number setX, number setY)
- SetPosition(number setX, number setY, number setZ)
- SetResponsive()
- SetResponsiveness(integer type)
- SetRestitution(number restitution)
- SetRotation(number degrees)
- SetScale(number scale)
- SetScale(number newX, number newY)
- SetScaleFromCenter(number scale)
- SetScaleFromCenter(number newX, number newY)
- SetScaleX(number scaleX)
- SetScaleY(number scaleY)
- SetScreenPositionFromPhysicsPosition()
- SetShape(Libraries.Game.Collision.Shapes.CollisionShape2D shape)
- SetSize(number newWidth, number newHeight)
- SetSleepTime(number time)
- SetTorque(number torque)
- SetTransform(Libraries.Compute.Vector2 position, number angle)
- SetTransform(Libraries.Game.Collision.PhysicsPosition2D transform)
- SetTransform0(Libraries.Game.Collision.PhysicsPosition2D transform)
- SetUnmovable()
- SetUpdateTransform(boolean flag)
- SetView2D(Libraries.Interface.Views.View2D content)
- SetWidth(number newWidth)
- SetX(number setX)
- SetY(number setY)
- SetZ(number setZ)
- ShouldCollide(Libraries.Interface.Item2D otherItem)
- Simulate(boolean flag)
- SynchronizeNodes()
- SynchronizeTransform()
- TestPoint(Libraries.Compute.Vector2 point)
- UpdateTransformAngle()
- UpdateTransformX()
- UpdateTransformY()