Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
Flow holds the flow layout information.
func New ¶
func New() *Flow
New creates a new Flow layout. This layout arranges the children of its target left-to-right, then top-to-bottom at their preferred sizes, if possible. Each child of the target may have an Alignment set for its LayoutData to control vertical positioning within the row. If not present, Start is assumed.
func (*Flow) Apply ¶
func (f *Flow) Apply(target layout.Layoutable)
Apply the layout to the target. A copy is made of this layout and that is applied to the target, so this layout may be applied to other targets.
Click to show internal directories.
Click to hide internal directories.