plushie/widget/overlay

Overlay container widget builder (children stacked on z-axis).

Types

pub opaque type Overlay
pub type OverlayAlign {
  AlignStart
  AlignCenter
  AlignEnd
}

Constructors

  • AlignStart
  • AlignCenter
  • AlignEnd
pub type OverlayPosition {
  Below
  Above
  OverlayLeft
  OverlayRight
}

Constructors

  • Below
  • Above
  • OverlayLeft
  • OverlayRight

Values

pub fn a11y(o: Overlay, a: a11y.A11y) -> Overlay

Set accessibility properties for this widget.

pub fn align(o: Overlay, a: OverlayAlign) -> Overlay

Set the alignment.

pub fn build(o: Overlay) -> node.Node

Build the overlay into a renderable Node.

pub fn extend(o: Overlay, children: List(node.Node)) -> Overlay

Add multiple child nodes.

pub fn flip(o: Overlay, f: Bool) -> Overlay

Set whether the overlay flips when near viewport edges.

pub fn gap(o: Overlay, g: Float) -> Overlay

Set the gap between elements.

pub fn new(id: String) -> Overlay

Create a new overlay builder.

pub fn offset_x(o: Overlay, x: Float) -> Overlay

Set the horizontal offset.

pub fn offset_y(o: Overlay, y: Float) -> Overlay

Set the vertical offset.

pub fn position(o: Overlay, p: OverlayPosition) -> Overlay

Set the position.

pub fn push(o: Overlay, child: node.Node) -> Overlay

Add a child node.

pub fn width(o: Overlay, w: length.Length) -> Overlay

Set the width.

Search Document