izapple2/izapple2fyne/panelDevices.go

24 lines
326 B
Go

package main
import (
"fyne.io/fyne"
"fyne.io/fyne/widget"
)
type panelDevices struct {
s *state
w fyne.Widget
joystick *panelJoystick
}
func newPanelDevices(s *state) *panelDevices {
var pd panelDevices
pd.s = s
pd.joystick = newPanelJoystick()
pd.w = widget.NewVBox(pd.joystick.w)
return &pd
}