Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Background ¶
Background lays out a widget over a colored background.
func (Background) Layout ¶
func (bg Background) Layout(gtx layout.Context, w layout.Widget) 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.
type VerticalMarginStyle ¶
VerticalMarginStyle provides a simple API for insetting a widget equally on its top and bottom edges. Consistently wrapping chat elements in a single VerticalMarginStyle as their outermost layout type will ensure that they are spaced evenly and no part of their content crowds that of the message above and below.
func (VerticalMarginStyle) Layout ¶
func (v VerticalMarginStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
Layout the provided widget within the margin and return their combined dimensions.
Click to show internal directories.
Click to hide internal directories.