Common resources for gauge-type widgets
PtWidget --> PtBasic --> PtGauge
For more information, see the diagram of the widget hierarchy.
None - not normally instantiated.
<photon/PtGauge.h>
The PtGauge superclass provides common resources for gauge-like widgets, which are capable of displaying a range of values.
| Resource | C type | Pt type | Default |
|---|---|---|---|
| Pt_ARG_GAUGE_FLAGS | short int | Flag | 0 |
| Pt_ARG_GAUGE_FONT | char * | String | "helv12" |
| Pt_ARG_GAUGE_H_ALIGN | unsigned char | Scalar | Pt_CENTER |
| Pt_ARG_GAUGE_MAXIMUM | long | Scalar | 100 |
| Pt_ARG_GAUGE_MINIMUM | long | Scalar | 0 |
| Pt_ARG_GAUGE_ORIENTATION | char | Scalar | Pt_HORIZONTAL |
| Pt_ARG_GAUGE_V_ALIGN | unsigned char | Scalar | Pt_CENTER |
| Pt_ARG_GAUGE_VALUE | long | Scalar | 0 |
| Pt_ARG_GAUGE_VALUE_PREFIX | char * | String | NULL |
| Pt_ARG_GAUGE_VALUE_SUFFIX | char * | String | NULL |
| C type | Pt type | Default |
|---|---|---|
| short int | Flag | 0 |
Possible values:
The default setting for this resource is 0; that is, no flags have been set.
| C type | Pt type | Default |
|---|---|---|
| char * | String | "helv12" |
The font used for displaying the value, title, and any other text.
| C type | Pt type | Default |
|---|---|---|
| unsigned char | Scalar | Pt_CENTER |
Controls horizontal alignment. Possible values are:
| C type | Pt type | Default |
|---|---|---|
| long | Scalar | 100 |
The maximum value of the gauge.
| C type | Pt type | Default |
|---|---|---|
| long | Scalar | 0 |
The minimum value of the gauge.
| C type | Pt type | Default |
|---|---|---|
| char | Scalar | Pt_HORIZONTAL |
Indicates whether the gauge will be drawn vertically or horizontally. Possible values:
| C type | Pt type | Default |
|---|---|---|
| unsigned char | Scalar | Pt_CENTER |
Controls vertical alignment. Possible values are:
| C type | Pt type | Default |
|---|---|---|
| long | Scalar | 0 |
The gauge's current value.
| C type | Pt type | Default |
|---|---|---|
| char * | String | NULL |
Text prefixed to the value displayed. For example, Red: would result in Red:35.
| C type | Pt type | Default |
|---|---|---|
| char * | String | NULL |
Text appended to the value displayed. For example, % would result in 35%.
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.