Add Screen docs

This commit is contained in:
Lea Anthony
2023-08-03 08:35:34 +10:00
parent 027edad51b
commit 2859143b2f
3 changed files with 105 additions and 0 deletions
+35
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
}
```
@@ -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
}
```
@@ -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
}
```