flow

package
v0.0.0-...-af996ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout struct {
	HSpacing float64 // Horizontal spacing between columns
	VSpacing float64 // Vertical spacing between rows
	VCenter  bool    // Center widgets vertically in their row if true
	// contains filtered or unexported fields
}

Layout lays out the children of its widget left-to-right, then top-to-bottom at their preferred sizes, if possible.

func New

func New(widget ui.Widget) *Layout

New creates a new Flow layout and sets it on the widget.

func (*Layout) Layout

func (l *Layout) Layout()

Layout implements the Layout interface.

func (*Layout) Sizes

func (l *Layout) Sizes(hint geom.Size) (min, pref, max geom.Size)

Sizes implements the Layout interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL