layout.go 402 B

1234567891011
  1. package fyne
  2. // Layout defines how CanvasObjects may be laid out in a specified Size.
  3. type Layout interface {
  4. // Layout will manipulate the listed CanvasObjects Size and Position
  5. // to fit within the specified size.
  6. Layout([]CanvasObject, Size)
  7. // MinSize calculates the smallest size that will fit the listed
  8. // CanvasObjects using this Layout algorithm.
  9. MinSize(objects []CanvasObject) Size
  10. }