applayout

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT, Unlicense 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 C

type C = layout.Context

type D

type D = layout.Dimensions

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 C, primary, detail layout.Widget) D

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