5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 04:42:00 +08:00

Add Screen docs

This commit is contained in:
Lea Anthony 2023-08-03 08:35:34 +10:00
parent 027edad51b
commit 2859143b2f
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
3 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,35 @@
---
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
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```

View File

@ -0,0 +1,35 @@
---
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
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```

View File

@ -0,0 +1,35 @@
---
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
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```