applayout

package
v0.0.0-...-9d4922b Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInset = layout.UniformInset(unit.Dp(8))

Functions

This section is empty.

Types

type DetailRow

type DetailRow struct {
	// PrimaryWidth is the fraction of the available width that should
	// be allocated to the primary widget. It should be in the range
	// (0,1.0]. Defaults to 0.3 if not set.
	PrimaryWidth float32
	// Inset is automatically applied to both widgets. This inset is
	// required, and will default to a uniform 8DP inset if not set.
	layout.Inset
}

DetailRow lays out two widgets in a horizontal row, with the left widget considered the "Primary" widget.

func (DetailRow) Layout

func (d DetailRow) Layout(gtx layout.Context, primary, detail layout.Widget) layout.Dimensions

Layout the DetailRow with the provided widgets.

Jump to

Keyboard shortcuts

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