-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathobj.go
65 lines (54 loc) · 1.51 KB
/
obj.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package api
import "image"
type StreamDeckInfo struct {
Cols int `json:"cols,omitempty"`
Rows int `json:"rows,omitempty"`
IconSize int `json:"icon_size,omitempty"`
Page int `json:"page"`
Serial string `json:"serial,omitempty"`
}
type Page []Key
type Deck struct {
Serial string `json:"serial"`
Pages []Page `json:"pages"`
}
type Config struct {
Modules []string `json:"modules,omitempty"`
Decks []Deck `json:"decks"`
}
type DepracatedConfig struct {
Modules []string `json:"modules,omitempty"`
Pages []Page `json:"pages"`
}
type Key struct {
Icon string `json:"icon,omitempty"`
SwitchPage int `json:"switch_page,omitempty"`
Text string `json:"text,omitempty"`
TextSize int `json:"text_size,omitempty"`
TextAlignment string `json:"text_alignment,omitempty"`
Keybind string `json:"keybind,omitempty"`
Command string `json:"command,omitempty"`
Brightness int `json:"brightness,omitempty"`
Url string `json:"url,omitempty"`
IconHandler string `json:"icon_handler,omitempty"`
KeyHandler string `json:"key_handler,omitempty"`
IconHandlerFields map[string]string `json:"icon_handler_fields,omitempty"`
KeyHandlerFields map[string]string `json:"key_handler_fields,omitempty"`
Buff image.Image `json:"-"`
IconHandlerStruct IconHandler `json:"-"`
KeyHandlerStruct KeyHandler `json:"-"`
}
type Module struct {
Name string
IconFields []Field
KeyFields []Field
IsIcon bool
IsKey bool
}
type Field struct {
Title string
Name string
Type string
FileTypes []string
Values []string
}