mirror of https://github.com/OrbTools/OrbCommon
gui builder definitions
parent
06fb419c10
commit
2e439fadea
@ -0,0 +1,28 @@
|
|||||||
|
package common
|
||||||
|
|
||||||
|
type PageType int
|
||||||
|
|
||||||
|
const (
|
||||||
|
//PGrid Grid type (keypads)
|
||||||
|
PGrid PageType = iota
|
||||||
|
//PCircle type (joysticks)
|
||||||
|
PCircle
|
||||||
|
//PList List Type
|
||||||
|
PList
|
||||||
|
)
|
||||||
|
|
||||||
|
type GUI struct {
|
||||||
|
Pages []Page
|
||||||
|
}
|
||||||
|
|
||||||
|
type Page struct {
|
||||||
|
Hive string
|
||||||
|
Name string
|
||||||
|
Keys []Key
|
||||||
|
Type PageType
|
||||||
|
}
|
||||||
|
|
||||||
|
type Key struct {
|
||||||
|
KeyID int
|
||||||
|
KeyName string
|
||||||
|
}
|
Loading…
Reference in New Issue