plushie/widget/pin

Pin widget builder (absolutely positioned element).

Types

pub opaque type Pin

Values

pub fn a11y(p: Pin, a: a11y.A11y) -> Pin

Set accessibility properties for this widget.

pub fn build(p: Pin) -> node.Node

Build the pin into a renderable Node.

pub fn extend(p: Pin, children: List(node.Node)) -> Pin

Add multiple child nodes.

pub fn height(p: Pin, h: length.Length) -> Pin

Set the height.

pub fn new(id: String) -> Pin

Create a new pin builder.

pub fn push(p: Pin, child: node.Node) -> Pin

Add a child node.

pub fn width(p: Pin, w: length.Length) -> Pin

Set the width.

pub fn x(p: Pin, val: Float) -> Pin

Set the x position.

pub fn y(p: Pin, val: Float) -> Pin

Set the y position.

Search Document