adam-gui/vendor/fyne.io/fyne/v2/layout.go

12 lines
402 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
package fyne
// Layout defines how CanvasObjects may be laid out in a specified Size.
type Layout interface {
// Layout will manipulate the listed CanvasObjects Size and Position
// to fit within the specified size.
Layout([]CanvasObject, Size)
// MinSize calculates the smallest size that will fit the listed
// CanvasObjects using this Layout algorithm.
MinSize(objects []CanvasObject) Size
}