plushie/widget/row

Row widget builder (horizontal layout).

Types

Option type for row properties.

pub type Opt {
  Spacing(Float)
  Padding(padding.Padding)
  Width(length.Length)
  Height(length.Length)
  MaxWidth(Float)
  AlignY(alignment.Alignment)
  Clip(Bool)
  Wrap(Bool)
  A11y(a11y.A11y)
}

Constructors

pub opaque type Row

Values

pub fn a11y(row: Row, a: a11y.A11y) -> Row

Set accessibility properties for this widget.

pub fn align_y(row: Row, a: alignment.Alignment) -> Row

Set the vertical alignment.

pub fn build(row: Row) -> node.Node

Build the row into a renderable Node.

pub fn clip(row: Row, c: Bool) -> Row

Set whether overflowing content is clipped.

pub fn extend(row: Row, children: List(node.Node)) -> Row

Add multiple child nodes.

pub fn height(row: Row, h: length.Length) -> Row

Set the height.

pub fn max_width(row: Row, m: Float) -> Row

Set the maximum width in pixels (main-axis cap for a row).

pub fn new(id: String) -> Row

Create a new row builder.

pub fn padding(row: Row, p: padding.Padding) -> Row

Set the padding.

pub fn push(row: Row, child: node.Node) -> Row

Add a child node.

pub fn spacing(row: Row, s: Float) -> Row

Set the spacing between children.

pub fn width(row: Row, w: length.Length) -> Row

Set the width.

pub fn with_opts(row: Row, opts: List(Opt)) -> Row

Apply a list of options to a row builder.

pub fn wrap(row: Row, w: Bool) -> Row

Set whether children wrap when they overflow.

Search Document