Module immi::widgets::progress_bar [] [src]

A progress bar is a rectangle that fills itself to indicate some sort of progression.

A widget like this is composed of two images:

  • The widget when empty.
  • The widget when full. Since this one is drawn over the previous one, it can also just be the difference between empty and full.

Functions

draw

Draws a progress bar and keeps the aspect ratio of the empty image.

stretch

Draws a progress bar, stretching it over the whole area.