graphix-package-gui 0.8.0

A dataflow language for UIs and network programming, GUI package
Documentation
1
2
3
4
5
6
7
8
9
let checkbox = |
  #label: &string = &"",
  #on_toggle: fn(b: bool) -> Any = |_| null,
  #width: &Length = &`Shrink,
  #size: &[f64, null] = &null,
  #spacing: &[f64, null] = &null,
  #disabled: &bool = &false,
  is_checked: &bool
| -> Widget `Checkbox({ is_checked, label, on_toggle: &on_toggle, size, spacing, width, disabled })