5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 06:20:10 +08:00
wails/website/i18n/fr/docusaurus-plugin-content-docs/current/reference/runtime/screen.mdx
2024-06-16 13:10:56 +10:00

39 lines
538 B
Plaintext

---
sidebar_position: 9
---
# Écran
Ces méthodes fournissent des informations sur les écrans actuellement connectés.
### ScreenGetAll
Retourne une liste des écrans actuellement connectés.
Go: `ScreenGetAll(ctx context.Context) []screen`<br/>
JS: `ScreenGetAll()`
#### Écran
Go struct:
```go
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
Interface Typescript :
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```