plushie/widget/sensor

Sensor widget builder (layout change detection).

Types

pub opaque type Sensor

Values

pub fn a11y(s: Sensor, a: a11y.A11y) -> Sensor

Set accessibility properties for this widget.

pub fn anticipate(s: Sensor, a: Float) -> Sensor

Set the anticipation factor for resize detection.

pub fn build(s: Sensor) -> node.Node

Build the sensor into a renderable Node.

pub fn delay(s: Sensor, d: Int) -> Sensor

Set the delay in milliseconds.

pub fn event_rate(s: Sensor, rate: Int) -> Sensor

Set the event throttle rate in milliseconds.

pub fn extend(s: Sensor, children: List(node.Node)) -> Sensor

Add multiple child nodes.

pub fn new(id: String) -> Sensor

Create a new sensor builder.

pub fn on_resize(s: Sensor, tag: String) -> Sensor

Set the resize event tag.

pub fn push(s: Sensor, child: node.Node) -> Sensor

Add a child node.

Search Document