> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/ui/get-screen-size.md).

# Get Screen Size

Returns the display width and height.

## **Syntax**

```lua
refresh.UI.GetScreenSize() -> Integer, Integer
```

## **Return**

{% hint style="success" %}
Integer (width), Integer (height)
{% endhint %}

## Usage Example

```lua
local w, h = refresh.UI.GetScreenSize()
print(w, h)
```
