plushie/widget/floating

Floating element widget builder.

Types

pub opaque type Floating

Option type for floating properties.

pub type Opt {
  TranslateX(Float)
  TranslateY(Float)
  Scale(Float)
  Width(length.Length)
  Height(length.Length)
  A11y(a11y.A11y)
}

Constructors

Values

pub fn a11y(f: Floating, a: a11y.A11y) -> Floating

Set accessibility properties for this widget.

pub fn build(f: Floating) -> node.Node

Build the floating into a renderable Node.

pub fn extend(f: Floating, children: List(node.Node)) -> Floating

Add multiple child nodes.

pub fn height(f: Floating, h: length.Length) -> Floating

Set the height.

pub fn new(id: String) -> Floating

Create a new floating builder.

pub fn push(f: Floating, child: node.Node) -> Floating

Add a child node.

pub fn scale(f: Floating, s: Float) -> Floating

Set the scale factor.

pub fn translate_x(f: Floating, x: Float) -> Floating

Set the horizontal translation offset.

pub fn translate_y(f: Floating, y: Float) -> Floating

Set the vertical translation offset.

pub fn width(f: Floating, w: length.Length) -> Floating

Set the width.

pub fn with_opts(f: Floating, opts: List(Opt)) -> Floating

Apply a list of options to a floating builder.

Search Document