5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 03:52:41 +08:00
wails/website/docs/reference/runtime/screen.mdx
2023-08-04 08:18:34 +10:00

38 lines
516 B
Plaintext

---
sidebar_position: 9
---
# Screen
These methods provide information about the currently connected screens.
### ScreenGetAll
Returns a list of currently connected screens.
Go: `ScreenGetAll(ctx context.Context) []screen`<br/>
JS: `ScreenGetAll()`
#### Screen
Go struct:
```go
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
Typescript interface:
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```