Open andydotxyz opened 1 year ago
Another strange thing in canvas/image.go
the type definition order is right but the const order seems backwards:
type ImageFill int
type ImageScale int32
const (
ImageScaleSmooth ImageScale = iota
...
)
const (
ImageFillStretch ImageFill = iota
...
)
Lastly in layout/boxlayout
we can see constructor functions returning a more generic type appear last:
func (g *boxLayout) isSpacer(obj fyne.CanvasObject) bool {
...
}
func NewHBoxLayout() fyne.Layout
func NewVBoxLayout() fyne.Layout
I will take a look as soon as I can - Fyne is a great source base to make this kind of tests.
Applying the latest version in Fyne's
geometry.go
I see the following order of public types:After this the type methods are added. I'm not totally sure, but this seems not quite right...