Files

39 lines
601 B
Plaintext
Raw Permalink Normal View History

2023-08-03 08:35:34 +10:00
---
sidebar_position: 9
---
2023-09-16 14:58:24 +10:00
# スクリーン
2023-08-03 08:35:34 +10:00
2023-09-16 14:58:24 +10:00
これらのメソッドは、現在接続されているスクリーンに関する情報を提供します。
2023-08-03 08:35:34 +10:00
### ScreenGetAll
2023-09-16 14:58:24 +10:00
現在接続されているスクリーンのリストを返します。
2023-08-03 08:35:34 +10:00
Go: `ScreenGetAll(ctx context.Context) []screen`<br/>
JS: `ScreenGetAll()`
2023-09-16 14:58:24 +10:00
#### スクリーン
2023-08-03 08:35:34 +10:00
2023-09-16 14:58:24 +10:00
Go構造体:
2023-08-03 08:35:34 +10:00
```go
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
2023-09-16 14:58:24 +10:00
Typescript型定義:
2023-08-03 08:35:34 +10:00
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```