ComboBox
Package: Libraries.Interface.Controls · Inherits from: Libraries.Interface.Events.FocusListener, Libraries.Interface.Events.TextChangeListener, Libraries.Interface.Controls.Control, Libraries.Interface.Events.MouseMovementListener, Libraries.Interface.Item, Libraries.Interface.Item2D, Libraries.Interface.Events.SelectionListener, Libraries.Language.Object, Libraries.Interface.Events.MouseListener, Libraries.Interface.Controls.TextField
The ComboBox class is a text field with a list of choices. A chevron at the field's right edge opens the list below the field, or above it when there is no room below. The user can pick a choice from the list or type in the field. Typing narrows the list to the choices that start with the typed text, ignoring case; when no choice matches, the list shows no choices. Moving through the list with the arrow keys writes each choice into the field, so the focus never leaves the field, and Enter chooses it. Escape closes the list, and a second Escape puts back the text the field had when the list opened. Programs add choices with Add, choose one with Select, and hear the user's choices with a ComboBoxListener. Its colors come from the interface options under the key "ComboBox": the field's background and border, and the foreground color for the chevron.
Example Code
use Libraries.Interface.Forms.Form
use Libraries.Interface.Forms.Page
use Libraries.Interface.Controls.ComboBox
Form form
Page page = form:GetMainPage()
ComboBox sizes
sizes:SetName("Size")
sizes:Add("Small")
sizes:Add("Medium")
sizes:Add("Large")
sizes:SetPlaceholder("Choose a size")
page:Add(sizes)
form:Display()
Actions
Add(integer index, text item)
This action adds a choice at the given place in the list. Index 0 is the top of the list, and the choices at or after it move down by one.
Parameters
indexinteger: The index the new choice will have.itemtext: The choice's text.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Large")
sizes:Add(0, "Small")
Add(text item)
This action adds a choice to the end of the list.
Parameters
itemtext: The choice's text.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
AddComboBoxListener(Libraries.Interface.Events.ComboBoxListener listener)
This action adds a listener that is told each time the user chooses a different choice.
Parameters
listenerLibraries.Interface.Events.ComboBoxListener: The listener to add.
Example
use Libraries.Interface.Controls.ComboBox
use Libraries.Interface.Events.ComboBoxListener
use Libraries.Interface.Events.ComboBoxChangedEvent
class Main is ComboBoxListener
integer chosen = -1
action Main
ComboBox sizes
sizes:Add("Small")
sizes:AddComboBoxListener(me)
end
action ComboBoxChanged(ComboBoxChangedEvent event)
chosen = event:GetNewIndex()
end
end
Cancel()
This action does what Escape does in the combo box. With the list open, it closes the list. Pressed again right after, it puts back the text the field had when the list opened. It returns false when it did neither, so Escape can do what it does elsewhere, such as close a tooltip.
Returns
boolean: true if Escape was used by the combo box.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Open()
boolean used = sizes:Cancel()
ChooseHighlighted()
This action chooses the highlighted choice as the user does: its text is put in the field, combo box listeners are told if the choice changed, and the list closes. With nothing highlighted, the field's text is kept, the choice whose text is the same is chosen (or none), and the list closes.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
sizes:ChooseHighlighted()
ClickedMouse(Libraries.Interface.Events.MouseEvent event)
This action is called for a click on the field, and for a click outside the open list. A click on the field, the chevron included, opens the list, or closes it if it is open; a click anywhere but the list and the field closes it. The input system calls this, so most users won't need to call it directly.
Parameters
eventLibraries.Interface.Events.MouseEvent: The mouse event for the click.
Close()
This action closes the list, if it is open. The field keeps its text.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:Close()
Empty()
This action empties the combo box: it removes every choice, chooses nothing and clears the field's text.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Empty()
GainedFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the field gets the focus. It does what a text field does. (A text field gets this action from two parents, so a subclass has to name the one it means.)
Parameters
eventLibraries.Interface.Events.FocusEvent: The focus event.
GetActiveDescendant()
This action returns the highlighted row of the open list, which is also the list's selection, or undefined when the list is closed or no row is highlighted. The focus stays in the field, but screen readers are pointed at this row, so they read the choice the arrow keys just moved to.
Returns
Libraries.Interface.Item: The highlighted row, or undefined.
Example
use Libraries.Interface.Controls.ComboBox
use Libraries.Interface.Item
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
Item active = sizes:GetActiveDescendant()
GetChoice(integer index)
This action returns the text of the choice at the given index.
Parameters
indexinteger: The index of the choice.
Returns
text: The choice's text.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
text first = sizes:GetChoice(0)
GetChoiceCount()
This action returns how many choices the combo box has. The text field's own GetSize returns the number of characters in the field.
Returns
integer: The number of choices.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
integer count = sizes:GetChoiceCount()
GetChoiceList()
This action returns the list that opens below the field, which shows the choices matching the field's text. Accessibility tools use it to tie the field to its list; most programs don't need it.
Returns
Libraries.Interface.Controls.List: The combo box's list.
Example
use Libraries.Interface.Controls.ComboBox
use Libraries.Interface.Controls.List
ComboBox sizes
List shown = sizes:GetChoiceList()
GetHighlightedIndex()
This action returns the highlighted row of the list, counted among the choices the list shows (GetMatchingItems), or -1 when no row is highlighted.
Returns
integer: The highlighted row, or -1.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
integer row = sizes:GetHighlightedIndex()
GetMatchingItems()
This action returns the choices the list shows: those that start with the text the user last typed, ignoring case, or every choice when the list was opened without typing. Moving the highlight writes a choice into the field without changing these.
Returns
Libraries.Containers.Array<text>: The texts of the choices in the list, in order.
Example
use Libraries.Interface.Controls.ComboBox
use Libraries.Containers.Array
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
sizes:Open()
Array<text> shown = sizes:GetMatchingItems()
GetPlaceholder()
This action returns the words shown in the field while it is empty, or an empty text when there are none.
Returns
text: The placeholder's words.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:SetPlaceholder("Choose a size")
text words = sizes:GetPlaceholder()
GetSelectedIndex()
This action returns the index of the chosen choice, or -1 when nothing is chosen.
Returns
integer: The index of the chosen choice, or -1.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Select(0)
integer index = sizes:GetSelectedIndex()
GetSelectedItem()
This action returns the text of the chosen choice, or undefined when nothing is chosen.
Returns
text: The chosen choice's text, or undefined.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Select(0)
text chosen = sizes:GetSelectedItem()
IsOpen()
This action returns whether the list is open on the screen.
Returns
boolean: true if the list is showing.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
boolean open = sizes:IsOpen()
LoadGraphics(Libraries.Interface.Layouts.LayoutProperties properties)
This action loads the graphics for the combo box. It lets TextField load the field, then colors the chevron in the "ComboBox" foreground color and the placeholder in a lighter shade of the text color. The game engine calls this as needed, so most users won't need to call it directly.
Parameters
propertiesLibraries.Interface.Layouts.LayoutProperties: The LayoutProperties used to draw the combo box.
LostFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the field loses the focus. It closes the list, keeping the field's text, and chooses the choice whose text is the field's text, or none, telling combo box listeners if the choice changed.
Parameters
eventLibraries.Interface.Events.FocusEvent: The focus event.
MoveHighlight(integer step)
This action moves the highlight in the list by the given number of rows, stopping at the first and last rows, as the arrow keys do. The field's text stays as it is until a choice is chosen (see ChooseHighlighted), so screen readers name the highlighted choice rather than a change to the text. With nothing highlighted, a step of 1 highlights the first row and a step of -1 the last. A step as large as the list goes to the first or last row.
Parameters
stepinteger: How many rows to move: positive moves down, negative moves up.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
sizes:Open()
sizes:MoveHighlight(1)
MovedMouse(Libraries.Interface.Events.MouseEvent event)
This action is called when the mouse moves over the field, over the open list, or anywhere the list's layer has nothing. Over a row of the list, that row is tinted with the "ComboBoxChoice" mouse-over color; anywhere else, no row is. The row the keyboard highlights keeps the selection color. The input system calls this, so most users won't need to call it directly.
Parameters
eventLibraries.Interface.Events.MouseEvent: The mouse event for the movement.
Open()
This action opens the list below the field, or above it when there is no room below, showing every choice with the chosen one highlighted. If the list is open, nothing happens.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
sizes:Open()
RemoveAt(integer index)
This action removes the choice at the given index. The choices after it move up by one. If it was the chosen one, nothing is chosen, and the field keeps its text.
Parameters
indexinteger: The index of the choice to remove.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
sizes:RemoveAt(0)
RemoveComboBoxListener(Libraries.Interface.Events.ComboBoxListener listener)
This action removes a listener, so it is no longer told of the user's choices.
Parameters
listenerLibraries.Interface.Events.ComboBoxListener: The listener to remove.
Example
use Libraries.Interface.Controls.ComboBox
use Libraries.Interface.Events.ComboBoxListener
use Libraries.Interface.Events.ComboBoxChangedEvent
class Main is ComboBoxListener
action Main
ComboBox sizes
sizes:AddComboBoxListener(me)
sizes:RemoveComboBoxListener(me)
end
action ComboBoxChanged(ComboBoxChangedEvent event)
end
end
Select(integer index)
This action chooses the choice at the given index, as a program does: its text is put in the field, and combo box listeners aren't told. With -1, nothing is chosen and the field is emptied, so the placeholder shows.
Parameters
indexinteger: The index of the choice, or -1 for none.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:Add("Small")
sizes:Add("Large")
sizes:Select(1)
SelectionChanged(Libraries.Interface.Events.SelectionEvent event)
This action is called when the list's selection changes. When the user clicked a choice in the list, it chooses that choice and closes the list. The list calls this, so most users won't need to call it directly.
Parameters
eventLibraries.Interface.Events.SelectionEvent: The change to the list's selection.
SetPlaceholder(text value)
This action sets the words shown in the field while it is empty, such as "Choose a size". An empty text shows nothing.
Parameters
valuetext: The placeholder's words.
Example
use Libraries.Interface.Controls.ComboBox
ComboBox sizes
sizes:SetPlaceholder("Choose a size")
TextChanged(Libraries.Interface.Events.TextChangeEvent event)
This action is called when the field's text changes. It shows or hides the placeholder. When the user changed the text while the field has the focus, it narrows the list to the choices that start with the text and opens it. Text the combo box writes itself, such as a highlighted choice, doesn't narrow the list. The text field calls this, so most users won't need to call it directly.
Parameters
eventLibraries.Interface.Events.TextChangeEvent: The change to the text.
Inherited Actions
258 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)
- ClickedMouse()
- CopyAndActivateInputTable(text name)
- CreateTooltipContent()
- EmptySelectionListeners()
- 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()
- 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)
- 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)
71 actions from Libraries.Interface.Controls.TextField
- AddTextChangeListener(Libraries.Interface.Events.TextChangeListener listener)
- AddTextStyle(text name, Libraries.Interface.Controls.TextStyles.TextStyle style)
- AppendToText(text value)
- BeginMouseOver()
- Delete(integer startIndex, integer endIndex)
- DeleteBackward()
- DeleteForward()
- DeleteSelection()
- DraggedMouse(Libraries.Interface.Events.MouseEvent event)
- EmptyTextStyles()
- EndMouseOver()
- FitViewToCharacter(integer index)
- GetAutomaticViewMovement()
- GetCaretGlobalX()
- GetCaretGlobalY()
- GetCaretIdleTime()
- GetCaretMoveDelay()
- GetCaretMoveTime()
- GetCaretPosition()
- GetCaretX()
- GetCaretY()
- GetCharacterWidths()
- GetCharacterXPositions()
- GetCurrentEditState()
- GetLeftCharacterPadding()
- GetNextTokenStartIndex(integer searchIndex)
- GetNextTokenStartIndex()
- GetPreviousCaretPosition()
- GetSelection()
- GetSize()
- GetText(integer startIndex, integer endIndex)
- GetText()
- GetTextChangeListeners()
- GetTextFieldEditManager()
- GetTextStyle(text name)
- GetTextStylesAtIndex(integer index)
- GetTokenEndIndex(integer searchIndex)
- GetTokenEndIndex()
- GetTokenStartIndex()
- GetTokenStartIndex(integer searchIndex)
- HasTextStyle(text name)
- HideCaret()
- Insert(integer index, text value)
- Insert(text value)
- IsPassword()
- MoveCaretLeft(boolean selecting)
- MoveCaretRight(boolean selecting)
- ReleasedMouse(Libraries.Interface.Events.MouseEvent event)
- RemoveSelection()
- RemoveTextChangeListener(Libraries.Interface.Events.TextChangeListener listener)
- RemoveTextStyle(Libraries.Interface.Controls.TextStyles.TextStyle style)
- RemoveTextStyle(text name)
- Select(integer startIndex, integer endIndex)
- Select(integer startIndex, integer endIndex, boolean caretAtEnd)
- SetAutomaticViewMovement(boolean auto)
- SetCaretIdleTime(number time)
- SetCaretMoveDelay(number time)
- SetCaretMoveTime(number time)
- SetCaretPosition(integer index)
- SetDoubleClickIndices(integer startIndex, integer endIndex)
- SetFromEditState(Libraries.Interface.Undo.TextFieldEditState state)
- SetInterfaceOptionsKey(text key)
- SetLeftCharacterPadding(integer padding)
- SetPassword(boolean value)
- SetPreviousCaretPosition(integer previous)
- SetText(text value)
- ShowCaret()
- TouchBegan(Libraries.Interface.Events.TouchEvent event)
- TouchEnded(Libraries.Interface.Events.TouchEvent event)
- TouchMoved(Libraries.Interface.Events.TouchEvent event)
- Update(number seconds)
59 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()
- 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()
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)
- 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()
- IsEmpty()
- 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()