mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:22:01 +08:00
![github-actions[bot]](/assets/img/avatar_default.png)
* docs: sync translations * Fix build --------- Co-authored-by: leaanthony <leaanthony@users.noreply.github.com> Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
39 lines
517 B
Plaintext
39 lines
517 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
|
|
}
|
|
```
|