Module ui.widget.progresswidget
Widget for displaying progress bar.
Configurable attributes:
- width
- height
- margin_v -- vertical margin for solid infill
- margin_h -- horizontal margin for solid infill
- radius
- bordersize
- bordercolor
- bgcolor
- rectcolor -- infill color
- ticks (list) -- default to nil, use this if you want to insert markers
- tick_width
- last -- maximum tick, used with ticks
Example:
local foo_bar = ProgressWidget:new{ width = Screen:scaleBySize(400), height = Screen:scaleBySize(10), percentage = 50/100, } UIManager:show(foo_bar)