A realtime progress bar
PtWidget --> PtBasic --> PtGauge --> RtProgress
For more information, see the diagram of the widget hierarchy.
<photon/realtime/RtProgress.h>
The RtProgress widget draws a progress bar and (optionally) the corresponding value in front of it.
An RtProgress bar.
The bar can be either a single bar, growing continuously as the value is changed, or it can consist of a number of divisions of equal size.
Resource | C type | Pt type | Default |
---|---|---|---|
Rt_ARG_PROGRESS_BAR_COLOR | PgColor_t | Scalar | Pg_RED |
Rt_ARG_PROGRESS_DIVISIONS | unsigned short | Scalar | 1 |
Rt_ARG_PROGRESS_GAP | unsigned short | Scalar | 4 |
Rt_ARG_PROGRESS_SPACING | unsigned short | Scalar | 0 |
C type | Pt type | Default |
---|---|---|
PgColor_t | Scalar | Pg_RED |
The color of the progress bar.
C type | Pt type | Default |
---|---|---|
unsigned short | Scalar | 1 |
The number of divisions (1 means continuous).
C type | Pt type | Default |
---|---|---|
unsigned short | Scalar | 4 |
The gap (in pixels) between the progress bar and the text (if the text isn't on top of the bar).
C type | Pt type | Default |
---|---|---|
unsigned short | Scalar | 0 |
The spacing (in pixels) between divisions (see Rt_ARG_PROGRESS_DIVISIONS).
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.