+ (id) gauge
+ (id) horizontalGauge
Default constructors will set the correct gauge frame.
- (LONG) current
Set the current level of the gauge. The value must be between 0 and MUIA_Gauge_Max.
- (ULONG) divide
If this attribute is != 0, every value set with MUIA_Gauge_Current will be divided by this before further processing.
- (LONG) infoRate
- (OBString *) infoText
The text given here is displayed within a gauge object and is usually intended to show some kind of percentage information.
This texts preparse is set to "\33c\0338", this makes it appear centered and highlighted by default.
Any %ld will be replaced with the current value of MUIA_Gauge_Current.
Note: Up to V18 of gauge.mui, InfoText worked only for horizontal gauges. If you intend to use and change info text, you should specify an empty MUIA_Gauge_InfoText ("") at object creation time. This makes your object get a fixed height that fits the height of the info text.
Since version 19 of gauge.mui, you can also use MUIA_Gauge_InfoText for vertical gauges.
VERSION Implemented in version 7 of gauge class (MUI 1.5). Version 19 of gauge class (MUI 3.8) enhances this attribute to work with vertical gauge objects too.
- (LONG) max
Set the maximum value for the gauge. Defaults to 100.
Currently, MUIA_Gauge_Max and MUIA_Gauge_Current is limited to 16 bit.
- (void) noNotifySetCurrent:(LONG)current
- (void) noNotifySetDivide:(ULONG)divide
- (void) noNotifySetInfoRate:(LONG)inforate
- (void) noNotifySetInfoText:(OBString *)infotext
- (void) noNotifySetMax:(LONG)max
- (void) setCurrent:(LONG)current
- (void) setDivide:(ULONG)divide
- (void) setHoriz:(BOOL)horiz
CAUTION: this is an initializer attribute, meaning it cannot be changed after the underlying MUI object is instantiated
- (void) setInfoRate:(LONG)inforate
- (void) setInfoText:(OBString *)infotext
- (void) setMax:(LONG)max