def row

cswap-bend-cli@0.1.0.0 · tui/card.bend:141

import cswap-bend-cli@0.1.0.0/tui/card.bend as Card
import Base
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as F
import cswap-bend-cli@0.1.0.0/tui/model.bend as M

141# One row: indent, label, bar, percent, suffix.
142def row(+w: M.Win, +lw: Nat, +bw: Nat, +v: M.View, +thr: Maybe<&2, U32>, +stale: Bool, +now: U32, +off: U32) -> List<&2, F.Seg>:
143  cat(row_head(w, lw, bw, thr, stale), [pct_seg(M.win_pct(w), stale), muted(pad2(suffix(w, now, off, room(v, lw, bw))))])

Uses (16)

Used by (1)