Widgets & Parameters

Below is a list of available widgets and the parameters each accepts.

Widget Functions

These functions correspond to actual GTK widgets and render visible UI elements.

  • box: props, children
  • centerbox: props, children
  • eventbox: props, children
  • tooltip: children
  • circular_progress: props
  • graph: props
  • transform: props
  • slider: props
  • progress: props
  • image: props
  • button: props
  • label: props
  • input: props
  • calendar: props
  • color_button: props
  • expander: props, children
  • color_chooser: props
  • combo_box_text: props
  • checkbox: props
  • revealer: props, children
  • scroll: props, children
  • overlay: children
  • stack: props, children

Utility Functions

These are not visible UI widgets but are essential for layout, data binding, or dynamic behavior.

  • defwindow: string, props, children
  • poll: props
  • listen: props

Let's recall


props param: Defined in #{}

children param: Defined in []

Both of these are discussed in chapter 2.2