DateField
Package: Libraries.Interface.Controls · Inherits from: Libraries.Interface.Events.FocusListener, Libraries.Interface.Events.CalendarListener, Libraries.Interface.Controls.Control, Libraries.Interface.Events.MouseMovementListener, Libraries.Interface.Item, Libraries.Interface.Item2D, Libraries.Language.Object, Libraries.Interface.Events.MouseListener, Libraries.Interface.Controls.TextField
A DateField is a text field for a date, with a button at its right edge that opens a Calendar below it. The date is shown in the field's format, "November 12, 2026" unless set otherwise with SetDateFormat, and typed dates are read in that format when the field loses the focus. Text that isn't a date in the format is left as typed, and the field says so to screen readers ("Not a date") until it is fixed. The calendar opens with the "Choose date" button, or with Alt and Down from the field, which also moves the focus into it. Choosing a day writes it in the field and closes the calendar; Escape, Alt and Up, or a click outside closes it without choosing. When the focus was in the calendar, it goes back to the field. Listeners (AddCalendarListener) are told when the user chooses a date, in the calendar or by typing. Screen readers hear the date in words as the field's description, such as "Thursday, November 12, 2026", whatever the format.
Example Code
use Libraries.Interface.Forms.Form
use Libraries.Interface.Forms.Page
use Libraries.Interface.Controls.DateField
use Libraries.System.CalendarDate
Form form
Page page = form:GetMainPage()
page:AddLabel("Due date")
DateField due
due:SetName("Due date")
CalendarDate date
date:SetDate(2026, 11, 20)
due:SetDate(date)
page:Add(due)
form:Display()
Actions
AddCalendarListener(Libraries.Interface.Events.CalendarListener listener)
This action adds a listener, told when the user chooses a date: in the calendar, or by typing one and leaving the field. When the user empties the field, the event's new date is undefined.
Parameters
listenerLibraries.Interface.Events.CalendarListener: The listener.
Example
use Libraries.Interface.Controls.DateField
use Libraries.Interface.Events.CalendarListener
DateField field
CalendarListener listener
field:AddCalendarListener(listener)
CalendarChanged(Libraries.Interface.Events.CalendarChangedEvent event)
This action is called when the user chooses a day in the field's calendar: the date is written in the field, the calendar closes, and the field's listeners are told.
Parameters
eventLibraries.Interface.Events.CalendarChangedEvent: The calendar, and the old and new dates.
ClickedMouse(Libraries.Interface.Events.MouseEvent event)
This action is called for a click on the field. It does what a text field does, placing the caret, and also opens the calendar, or closes it if it is open. A click on the calendar button is the button's own, which does the same.
Parameters
eventLibraries.Interface.Events.MouseEvent: The mouse event for the click.
CloseCalendar()
This action closes the calendar without choosing a day, as Escape does. If the focus was in the calendar, it goes back to the field.
Example
use Libraries.Interface.Controls.DateField
DateField field
field:OpenCalendar()
field:CloseCalendar()
CloseCalendarForClick(number x, number y)
This action closes the calendar because of a click outside it, and remembers where the click was, so that if the same click reaches the field or its button next, it doesn't open the calendar again. The calendar's click listener calls it, so most users won't need to.
Parameters
xnumber: The click's x position.ynumber: The click's y position.
Example
use Libraries.Interface.Controls.DateField
DateField field
field:CloseCalendarForClick(10, 10)
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.
GetCalendar()
This action returns the calendar the field opens, so a program can set its range or first day of the week.
Returns
Libraries.Interface.Controls.Calendar: The calendar.
Example
use Libraries.Interface.Controls.DateField
use Libraries.Interface.Controls.Calendar
use Libraries.System.CalendarDate
DateField field
CalendarDate today
today:SetToToday()
Calendar calendar = field:GetCalendar()
calendar:SetMinimumDate(today)
GetCalendarButton()
This action returns the "Choose date" button at the field's right edge.
Returns
Libraries.Interface.Controls.Button: The button.
Example
use Libraries.Interface.Controls.DateField
use Libraries.Interface.Controls.Button
DateField field
Button button = field:GetCalendarButton()
GetDate()
This action returns the date in the field, read from its text in the field's format, or undefined while the text is empty or isn't a date in the format.
Returns
Libraries.System.CalendarDate: The date, or undefined.
Example
use Libraries.Interface.Controls.DateField
use Libraries.System.CalendarDate
DateField field
CalendarDate date = field:GetDate()
GetDateFormat()
This action returns the format the date is shown and read in.
Returns
Libraries.System.DateFormat: The format.
Example
use Libraries.Interface.Controls.DateField
use Libraries.System.DateFormat
DateField field
DateFormat format = field:GetDateFormat()
IsCalendarOpen()
This action returns whether the calendar is open.
Returns
boolean: True if the calendar is showing.
Example
use Libraries.Interface.Controls.DateField
DateField field
boolean open = field:IsCalendarOpen()
IsClosingClick(number x, number y)
This action returns whether a click is the one that just closed the calendar from outside it, and forgets that click, so it is only recognized once.
Parameters
xnumber: The click's x position.ynumber: The click's y position.
Returns
boolean: true if this click closed the calendar.
Example
use Libraries.Interface.Controls.DateField
DateField field
boolean closing = field:IsClosingClick(10, 10)
IsDateValid()
This action returns whether the field's text is a date in its format, or empty. It is false after the user typed text that isn't a date and left the field.
Returns
boolean: True unless the text isn't a date.
Example
use Libraries.Interface.Controls.DateField
DateField field
boolean valid = field:IsDateValid()
IsOnScreenPoint(number x, number y)
This action returns whether a point on the screen is on the field, such as a click on its button.
Parameters
xnumber: The point's place across the screen.ynumber: The point's place up the screen.
Returns
boolean: True if the point is on the field.
Example
use Libraries.Interface.Controls.DateField
DateField field
boolean inside = field:IsOnScreenPoint(10, 10)
LoadGraphics(Libraries.Interface.Layouts.LayoutProperties properties)
This action loads the field's graphics, then draws the small calendar on its button in the button's text color. The game engine calls it as needed, so most users won't need to call it directly.
Parameters
propertiesLibraries.Interface.Layouts.LayoutProperties: The LayoutProperties used to draw the field.
LostFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the field loses the focus: the typed text is read as a date in the field's format.
Parameters
eventLibraries.Interface.Events.FocusEvent: The focus event.
OpenCalendar(boolean moveFocus)
This action opens the calendar below the field, or above it if there isn't room below, showing the field's date, or today's month when the field has none. The focus moves into the calendar if asked, as it does from the keyboard; a click on the button leaves it where it is.
Parameters
moveFocusboolean: True to move the focus into the calendar.
Example
use Libraries.Interface.Controls.DateField
DateField field
field:OpenCalendar(false)
OpenCalendar()
This action opens the calendar below the field, showing the field's date, or today's month when the field has none, and moves the focus into it, as Alt and Down do.
Example
use Libraries.Interface.Controls.DateField
DateField field
field:OpenCalendar()
RemoveCalendarListener(Libraries.Interface.Events.CalendarListener listener)
This action removes a listener.
Parameters
listenerLibraries.Interface.Events.CalendarListener: The listener.
Example
use Libraries.Interface.Controls.DateField
use Libraries.Interface.Events.CalendarListener
DateField field
CalendarListener listener
field:AddCalendarListener(listener)
field:RemoveCalendarListener(listener)
SetDate(Libraries.System.CalendarDate newDate)
This action sets the date the field shows, as a program does: the text is the date in the field's format, and listeners aren't told. With undefined, the field is emptied.
Parameters
newDateLibraries.System.CalendarDate: The date, or undefined.
Example
use Libraries.Interface.Controls.DateField
use Libraries.System.CalendarDate
DateField field
CalendarDate date
date:SetDate(2026, 11, 12)
field:SetDate(date)
SetDateFormat(Libraries.System.DateFormat newFormat)
This action sets the format the date is shown and read in, such as one from DateFormat's GetNumericFormat ("11/12/2026"). A date in the field is written again in the new format. The format is "MMMM d, yyyy" ("November 12, 2026") unless set.
Parameters
newFormatLibraries.System.DateFormat: The format.
Example
use Libraries.Interface.Controls.DateField
use Libraries.System.DateFormat
DateField field
DateFormat formats
field:SetDateFormat(formats:GetISOFormat())
SetNextFocus(Libraries.Interface.Item item)
This action sets where the focus goes after the field. Tab goes from the text to the "Choose date" button, then to the item given.
Parameters
itemLibraries.Interface.Item: The item after the field's button.
Example
use Libraries.Interface.Controls.DateField
use Libraries.Interface.Controls.Button
DateField field
Button done
field:SetNextFocus(done)
TakeIgnoreNextToggle()
This action returns whether the button's activation should be ignored because the press that started it closed the calendar: a click outside the calendar closed it within the last half second. It forgets that click either way, so only the activation right after it is ignored. The button's behavior calls it, so most users won't need to.
Returns
boolean: true if the button's activation should do nothing.
Example
use Libraries.Interface.Controls.DateField
DateField field
boolean skip = field:TakeIgnoreNextToggle()
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)
72 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)
- Empty()
- 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)
1 action from Libraries.Interface.Events.MouseMovementListener
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()
- 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)
- 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()