19 #ifndef PAWS_PROGRESS_BAR_HEADER 20 #define PAWS_PROGRESS_BAR_HEADER 41 totalValue = newValue;
49 virtual void SetColor(
int red,
int green,
int blue );
120 static void DrawProgressBar(
const csRect &rect, iGraphics3D* graphics3D,
float percent,
121 int start_r,
int start_g,
int start_b,
122 int diff_r,
int diff_g,
int diff_b,
129 bool Setup(iDocumentNode* node);
138 void SetOn(
bool val );
156 int start_r,start_g,start_b;
157 int flash_r,flash_g,flash_b;
158 int warn_r,warn_g,warn_b;
159 int danger_r,danger_g,danger_b;
160 int diff_r,diff_g,diff_b;
CREATE_PAWS_FACTORY(pawsProgressBar)
virtual void SetColor(int red, int green, int blue)
set the base color
virtual void SetFlashRate(int rate)
Set rate of flash.
virtual void SetFlashLevel(float level, bool low)
Set threshold for flashing numbers outside of min & max = no flash.
virtual void SetWarningLevel(float level, bool low)
Set threshold for warn color.
virtual void SetDangerColor(int red, int green, int blue)
Set Danger Color.
bool Setup(iDocumentNode *node)
Setup this widget.
float GetWarningLevel()
return the current "Warn" level
virtual void SetWarningColor(int red, int green, int blue)
Set warn color.
void SetTotalValue(float newValue)
void SetCurrentValue(float newValue)
float GetTotalValue() const
float GetDangerLevel()
return the current "Danger" level
void OnUpdateData(const char *dataname, PAWSData &value)
virtual void SetFlashColor(int red, int green, int blue)
Set flash color.
float GetFlashLevel()
return the current "flash" level
virtual void SetDangerLevel(float level, bool low)
set threshold for danger color
void SetReversed(bool val)
increse values from left-to-right, or right-to-left ?
virtual void Draw()
Draws the widget and all of it's children.
static void DrawProgressBar(const csRect &rect, iGraphics3D *graphics3D, float percent, int start_r, int start_g, int start_b, int diff_r, int diff_g, int diff_b, int alpha=255)