Module rstk::widget

source ·
Expand description

Functions and definitions applying to all widgets or specific sub-classes of widgets.

Structs

  • Struct holding information from a bound event, returned as a parameter to the bound closure.

Enums

  • Defines position of a displayed item within some bounds.
  • Arrangement of image relative to text in a label-like widget.
  • Type of message-box dialog.
  • Type of icon to use in message-box dialog.
  • Arrangement of text
  • Defines orientation of widget.
  • Defines fill property for pack layouts: whether to expand in the x or y or both directions.
  • Defines side property for pack layouts: whether widget is packed against top, bottom, left or right.
  • Defines mode of progressbar.
  • Defines shape of border around widget.
  • Defines mode of selection.
  • The kinds of activity state for a widget, e.g. if it is currently available to use or disabled.
  • Specifies which sides of its container a widget ‘sticks’ to, especially when it is resized.
  • Types of word wrapping.

Traits

  • A set of common functions used in all label, button and similar widgets.
  • Common trait for container widgets. Child widgets should implement the id method. The remaining methods are standard Tk methods and convenient, type-safe versions of them.

Functions

  • Triggers given command after ‘time’ milliseconds.
  • Binds command for event pattern to all widgets.
  • Sets colour map (for xy_plots).
  • Copies contents of one or more plots onto another canvas widget.
  • Checks what the current OS system is: see Tk manual.