ScrollableMenuPanel
Package: Libraries.Interface.Controls · Inherits from: Libraries.Interface.Controls.Control, Libraries.Game.Graphics.Drawable, Libraries.Interface.Controls.Icon, Libraries.Interface.Item, Libraries.Interface.Controls.MenuPanelBlueprint, Libraries.Interface.Item2D, Libraries.Language.Object, Libraries.Interface.Events.TextureLoadListener, Libraries.Game.Graphics.TextureRegion, Libraries.Game.Disposable
The ScrollableMenuPanel class is a menu panel that shows only some of its items at a time. It is useful for a menu with a long list of items, which might otherwise run off the edge of the screen. A scroll bar on the right side of the panel shows which part of the list is in view, and the user can drag it, use the mouse wheel, or move through the items with the keyboard to bring other items into view. The easiest way to get one is to call SetScrollable(true) on a PopupMenu.
Example Code
use Libraries.Game.Game
use Libraries.Interface.Controls.PopupMenu
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
PopupMenu menu
// Use a ScrollableMenuPanel that shows 5 items at a time.
menu:SetScrollable(true)
menu:SetItemsInView(5)
integer counter = 1
repeat while counter <= 20
MenuItem item
item:SetName("Item " + counter)
menu:Add(item)
counter = counter + 1
end
menu:OpenAt(100, 400)
end
end
Actions
DragScrollControlTo(number x, number y)
This action scrolls the panel to follow the mouse while the user drags the scroll bar. It moves the view by how far the mouse has moved up or down since the last drag point, then records the new point. Dragging past the top of the bar shows the start of the list, and dragging past the bottom shows the end. It does nothing unless IsDragging returns true. The panel's mouse behaviors call it, so most users shouldn't need to call it directly.
Parameters
xnumber: The x coordinate of the mouse, in pixels. Only the y coordinate affects the scrolling.ynumber: The y coordinate of the mouse, in pixels.
Draw(Libraries.Game.Graphics.Painter2D painter)
This action draws the panel. It draws the panel's background, then only the items that are in view, then the scroll bar. Items that are scrolled out of view are skipped. This is called automatically by the Game engine each frame, and most users shouldn't need to call it directly.
Parameters
painterLibraries.Game.Graphics.Painter2D: The Painter2D used to draw the panel.
GetItemsInView()
This action returns how many items the panel shows at once.
Returns
number: How many items are shown at once.
GetScrollIndex()
This action returns the index of the first MenuItem visible in the scroll pane. This can return non-integer values to indicate the first item is partially offscreen -- for example, a returned value of 8.4 would indicate that the first visible item in the scroll pane is the 8th indexed item, and it is 40% of the way off of the top of the pane.
Returns
number: The index of the first item visible in the scroll pane, with a decimal component describing how much of it is off the top of the panel (if any).
IsDragging()
This action returns true if the user is currently dragging the scroll bar with the mouse, or false otherwise.
Returns
boolean: Whether or not the scroll bar is being dragged with the mouse.
IsScrollable()
This action tells whether this panel scrolls through its items. A ScrollableMenuPanel always scrolls, so this always returns true.
Returns
boolean: true, because a ScrollableMenuPanel always scrolls.
LoadGraphics(Libraries.Interface.Layouts.LayoutProperties properties)
This action is used to load the graphical components of the panel, including the views for the scroll bar and the part of it that is dragged, and colors them from the panel's foreground and accent colors. This is handled automatically by the Game engine as needed, and most users shouldn't need to use this action directly.
Parameters
propertiesLibraries.Interface.Layouts.LayoutProperties: The layout properties to load the graphics with.
Resize()
This action works out the size and position of the panel and its items. Items outside the current view are hidden and the ones in view are shown, each item is placed from the bottom of the view upward, every item is given the width of the widest one, and the scroll bar is sized to show how much of the list is in view. The panel does this itself instead of using a Layout, so that it only lays out the items in view. It is called automatically as needed, and most users shouldn't need to call it directly.
ScrollToView(Libraries.Interface.Controls.MenuItem item)
This action scrolls the panel just far enough to bring the given item into view. If the item is above the view, it becomes the first item shown. If it is below the view, it becomes the last item shown. If it is already in view, or is not in this panel, nothing changes. A PopupMenu calls this when the selection moves, so the selected item is always visible.
Parameters
itemLibraries.Interface.Controls.MenuItem: The MenuItem to bring into view.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.ScrollableMenuPanel
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
ScrollableMenuPanel panel
panel:SetItemsInView(3)
MenuItem last = undefined
integer counter = 1
repeat while counter <= 8
MenuItem item
item:SetName("Item " + counter)
panel:Add(item)
last = item
counter = counter + 1
end
panel:ScrollToView(last)
end
end
SetDragging(boolean drag)
This action sets whether the user is dragging the scroll bar with the mouse. The panel's mouse behaviors set it to true when the user presses on the panel and to false when they let go, and DragScrollControlTo only scrolls while it is true.
Parameters
dragboolean: true if the scroll bar is being dragged, or false if not.
SetItemsInView(number itemCount)
This action sets how many items the panel shows at once. The panel's height fits this many items, and the rest can be reached by scrolling. If the panel has fewer items than this, it shows all of them and hides its scroll bar. The default is 10.
Parameters
itemCountnumber: How many items to show at once.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.ScrollableMenuPanel
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
ScrollableMenuPanel panel
panel:SetItemsInView(3)
integer counter = 1
repeat while counter <= 8
MenuItem item
item:SetName("Item " + counter)
panel:Add(item)
counter = counter + 1
end
end
end
SetScrollClickPoint(number x, number y)
This action records the point where the user pressed the mouse to start dragging the scroll bar. DragScrollControlTo measures each mouse movement from this point.
Parameters
xnumber: The x coordinate of the point, in pixels.ynumber: The y coordinate of the point, in pixels.
SetScrollIndex(number index)
This action scrolls the panel so the item at the given index is the first one in view, then lays the panel out again. Index 0 is the top of the list. A value with a decimal part, such as 2.5, leaves the first visible item partly scrolled off the top. A value below 0 is treated as 0, and a value too large to fill the panel is pulled back so the last item sits at the bottom.
Parameters
indexnumber: The index of the item to show first.
Example
use Libraries.Game.Game
use Libraries.Interface.Controls.ScrollableMenuPanel
use Libraries.Interface.Controls.MenuItem
class Main is Game
action Main
StartGame()
end
action CreateGame
ScrollableMenuPanel panel
panel:SetItemsInView(3)
integer counter = 1
repeat while counter <= 8
MenuItem item
item:SetName("Item " + counter)
panel:Add(item)
counter = counter + 1
end
// Show Item 5, Item 6 and Item 7.
panel:SetScrollIndex(4)
end
end
Inherited Actions
59 actions from Libraries.Game.Graphics.Drawable
- Dispose()
- FlipX()
- FlipY()
- GetColor()
- GetColorGroup()
- GetDrawableShape()
- GetDrawableType()
- GetGradient()
- GetIndicesCount()
- GetMesh()
- GetMeshIndex()
- GetShaderData()
- GetShaderMapping()
- GetShaderProgram()
- GetTexture()
- IsFlippedX()
- IsFlippedY()
- IsLoaded()
- Load(text filePath)
- Load(Libraries.Compute.Matrix matrix)
- Load(Libraries.Game.Graphics.Texture texture, integer sourceWidth, integer sourceHeight)
- Load(Libraries.System.File file)
- Load(Libraries.Game.Graphics.Texture texture)
- LoadCircle(integer radius, Libraries.Game.Graphics.ColorGroup color)
- LoadCircle(integer radius)
- LoadFilledCircle(integer radius)
- LoadFilledCircle(integer radius, Libraries.Game.Graphics.ColorGroup color)
- LoadFilledRectangle(integer width, integer height)
- LoadFilledRectangle(integer width, integer height, Libraries.Game.Graphics.ColorGroup color)
- LoadFilledTriangle(integer x1, integer y1, integer x2, integer y2, integer x3, integer y3)
- LoadFilledTriangle(integer x1, integer y1, integer x2, integer y2, integer x3, integer y3, Libraries.Game.Graphics.ColorGroup color)
- LoadLine(integer x, integer y)
- LoadLine(integer x, integer y, Libraries.Game.Graphics.ColorGroup color)
- LoadRectangle(integer width, integer height, Libraries.Game.Graphics.ColorGroup color)
- LoadRectangle(integer width, integer height)
- LoadShape(Libraries.Containers.Array<number> points)
- LoadShape(Libraries.Containers.Array<number> points, Libraries.Game.Graphics.ColorGroup color)
- LoadShape(Libraries.Containers.Array<number> points, Libraries.Containers.Array<Libraries.Game.Graphics.Color> colors)
- QueueForDrawing(Libraries.Game.Graphics.Painter2D painter)
- SetAlpha(number alpha)
- SetBottomSide(number bottom)
- SetColor(Libraries.Game.Graphics.ColorGroup tint)
- SetColor(number red, number green, number blue, number alpha)
- SetDrawableShape(Libraries.Game.Graphics.DrawableShape shape)
- SetDrawableType(integer type)
- SetIndicesCount(integer indicesCount)
- SetLeftSide(number left)
- SetMesh(Libraries.Game.Graphics.Mesh mesh)
- SetMeshIndex(integer meshIndex)
- SetRegion(number left, number top, number right, number bottom)
- SetRightSide(number right)
- SetShaderData(Libraries.Language.Object shaderData)
- SetShaderMapping(Libraries.Game.Graphics.Shaders.ShaderMapping shaderMapping)
- SetShaderProgram(Libraries.Game.Graphics.Shaders.Programs.ShaderProgram shaderProgram)
- SetTopSide(number top)
- UseDefaultColor()
- UsingCustomColor()
- UsingCustomGradient()
- UsingCustomTint()
27 actions from Libraries.Game.Graphics.TextureRegion
- AddTextureLoadListener(Libraries.Interface.Events.TextureLoadListener listener)
- CopyTextureRegion(Libraries.Game.Graphics.TextureRegion region, integer x, integer y, integer width, integer height)
- CopyTextureRegion(Libraries.Game.Graphics.TextureRegion region)
- EmptyTextureLoadListeners()
- GetBottomSide()
- GetLeftSide()
- GetRegionHeight()
- GetRegionWidth()
- GetRegionX()
- GetRegionY()
- GetRightSide()
- GetTextureField()
- GetTopSide()
- LoadTextureRegion(Libraries.Game.Graphics.Texture newTexture)
- LoadTextureRegion(Libraries.Game.Graphics.Texture newTexture, integer x, integer y, integer width, integer height)
- LoadTextureRegion(Libraries.Game.Graphics.Texture newTexture, integer width, integer height)
- LoadTextureRegion(Libraries.Game.Graphics.Texture newTexture, number left, number right, number top, number bottom)
- OnTextureLoad(Libraries.Interface.Events.TextureLoadEvent event)
- RemoveTextureLoadListener(Libraries.Interface.Events.TextureLoadListener listener)
- SetRegion(Libraries.Game.Graphics.TextureRegion region)
- SetRegion(integer x, integer y, integer width, integer height)
- SetRegion(Libraries.Game.Graphics.TextureRegion region, integer x, integer y, integer width, integer height)
- SetRegionHeight(integer height)
- SetRegionWidth(integer width)
- SetRegionX(integer x)
- SetRegionY(integer y)
- SetTexture(Libraries.Game.Graphics.Texture newTexture)
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()
- GainedFocus(Libraries.Interface.Events.FocusEvent event)
- 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()
- LostFocus(Libraries.Interface.Events.FocusEvent event)
- LostSelection()
- NeedsLayout()
- NotifyControlActivationListeners(Libraries.Interface.Events.ControlActivationEvent event)
- NotifySelectionListeners(Libraries.Interface.Events.SelectionEvent event)
- ReleasedMouse()
- 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)
3 actions from Libraries.Interface.Controls.Icon
17 actions from Libraries.Interface.Controls.MenuPanelBlueprint
- Add(Libraries.Interface.Controls.MenuItem item)
- Add(integer index, Libraries.Interface.Controls.MenuItem item)
- Get(integer index)
- GetArrowRegionWidth()
- GetFromEnd()
- GetIconRegionWidth()
- GetIterator()
- GetLabelRegionWidth()
- GetShortcutRegionWidth()
- GetSize()
- IsEmpty()
- Remove(Libraries.Interface.Controls.MenuItem item)
- Remove(integer index)
- SetArrowRegionWidth(number width)
- SetIconRegionWidth(number width)
- SetLabelRegionWidth(number width)
- SetShortcutRegionWidth(number width)
60 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()
- 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)
193 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)
- Empty()
- EnablePhysics(boolean flag)
- FastMoving(boolean flag)
- GetAccessibleParent()
- GetAngularDamping()
- GetAngularVelocity()
- GetBoundingBox(integer childIndex)
- GetBoundingRectangle()
- GetCenterX()
- GetCenterY()
- GetChildren()
- GetClipCoordinates(Libraries.Compute.Vector2 xCoords, Libraries.Compute.Vector2 yCoords)
- GetCollisionGroupFlag()
- GetCollisionGroupIndex()
- GetCollisionList()
- GetDensity()
- 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()
- 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)
- RequestVerticesUpdate()
- RequireSimulation(boolean flag)
- ResetMass()
- 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()