plushie/widget/pane_grid

PaneGrid widget for resizable tiled pane layouts.

Children are keyed by their node ID. The Rust binary manages pane layout state; use PaneSplit/PaneClose/PaneSwap commands to modify the layout.

Types

pub opaque type PaneGrid

Values

pub fn a11y(pg: PaneGrid, a: a11y.A11y) -> PaneGrid

Set accessibility properties for this widget.

pub fn build(pg: PaneGrid) -> node.Node

Build the pane grid into a renderable Node.

pub fn divider_color(pg: PaneGrid, c: String) -> PaneGrid

Set the divider color.

pub fn divider_width(pg: PaneGrid, w: Float) -> PaneGrid

Set the divider width.

pub fn event_rate(pg: PaneGrid, rate: Int) -> PaneGrid

Set the event throttle rate in milliseconds.

pub fn extend(
  pg: PaneGrid,
  children: List(node.Node),
) -> PaneGrid

Add multiple child pane nodes.

pub fn height(pg: PaneGrid, h: length.Length) -> PaneGrid

Set the height.

pub fn leeway(pg: PaneGrid, l: Float) -> PaneGrid

Set the resize handle leeway in pixels.

pub fn min_size(pg: PaneGrid, s: Float) -> PaneGrid

Set the minimum size.

pub fn new(id: String) -> PaneGrid

Create a new pane grid builder.

pub fn panes(pg: PaneGrid, p: List(String)) -> PaneGrid

Set the pane IDs.

pub fn push(pg: PaneGrid, child: node.Node) -> PaneGrid

Add a child pane node.

pub fn spacing(pg: PaneGrid, s: Int) -> PaneGrid

Set the spacing between children.

pub fn width(pg: PaneGrid, w: length.Length) -> PaneGrid

Set the width.

Search Document