Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# GuiLocation - Runtime Docs

## GuiLocation :: table or {int32, int32}

Screen coordinates of a GUI element in a LuaGui. This uses the same format as TilePosition, meaning it can be specified either with or without explicit keys.

#### Table fields

x | :: int32 |
y | :: int32 |

Concept used in

- LuaGuiElement::location
- CustomInputEvent
- on_gui_click