-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathraw_display.go
41 lines (35 loc) · 1.19 KB
/
raw_display.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package electron
import "github.com/gopherjs/gopherjs/js"
// Display a Structure
type Display struct {
*js.Object
// Unique identifier associated with the display.
Id float64 `js:"id"`
// Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
Rotation float64 `js:"rotation"`
// Output device's pixel scale factor.
ScaleFactor float64 `js:"scaleFactor"`
// Can be , , .
TouchSupport DisplayDisplayTouchSupport `js:"touchSupport"`
Bounds *js.Object `js:"bounds"`
Size *DisplayDisplaySize `js:"size"`
WorkArea *js.Object `js:"workArea"`
WorkAreaSize *DisplayDisplayWorkAreaSize `js:"workAreaSize"`
}
type DisplayDisplaySize struct {
*js.Object
Height float64 `js:"height"`
Width float64 `js:"width"`
}
type DisplayDisplayWorkAreaSize struct {
*js.Object
Height float64 `js:"height"`
Width float64 `js:"width"`
}
type DisplayDisplayTouchSupport string
// consts
const (
DisplayDisplayTouchSupportAvailable DisplayDisplayTouchSupport = "available"
DisplayDisplayTouchSupportUnavailable DisplayDisplayTouchSupport = "unavailable"
DisplayDisplayTouchSupportUnknown DisplayDisplayTouchSupport = "unknown"
)