32 lines
387 B
Go
32 lines
387 B
Go
package ui
|
|
|
|
import "fyne.io/fyne/v2/widget"
|
|
|
|
type toyInterface interface {
|
|
Init() error
|
|
GetToyCard() *widget.Card
|
|
}
|
|
|
|
var (
|
|
toyRegister = []toyInterface{
|
|
|
|
&toyDateTime{},
|
|
}
|
|
)
|
|
|
|
const (
|
|
ToyWidth = 250
|
|
)
|
|
|
|
type toyAdapter struct {
|
|
widget *widget.Card
|
|
}
|
|
|
|
func (t toyAdapter) Init() error {
|
|
panic("implement Init")
|
|
}
|
|
|
|
func (t toyAdapter) GetToyCard() *widget.Card {
|
|
return t.widget
|
|
}
|