#include <pawsprogressbar.h>
List of all members.
Public Member Functions |
void | Completed () |
virtual void | Draw () |
| Draws the widget and all of it's children.
|
float | GetCurrentValue () |
float | GetDangerLevel () |
| return the current "Danger" level
|
float | GetFlashLevel () |
| return the current "flash" level
|
float | GetTotalValue () const |
float | GetWarningLevel () |
| return the current "Warn" level
|
bool | IsDone () |
void | OnUpdateData (const char *dataname, PAWSData &value) |
| pawsProgressBar (const pawsProgressBar &origin) |
| pawsProgressBar () |
virtual void | SetColor (int red, int green, int blue) |
| set the base color
|
void | SetCurrentValue (float newValue) |
virtual void | SetDangerColor (int red, int green, int blue) |
| Set Danger Color.
|
virtual void | SetDangerLevel (float level, bool low) |
| set threshold for danger color
|
virtual void | SetFlashColor (int red, int green, int blue) |
| Set flash color.
|
virtual void | SetFlashLevel (float level, bool low) |
| Set threshold for flashing numbers outside of min & max = no flash.
|
virtual void | SetFlashRate (int rate) |
| Set rate of flash.
|
void | SetOn (bool val) |
void | SetReversed (bool val) |
| increse values from left-to-right, or right-to-left ?
|
void | SetTotalValue (float newValue) |
bool | Setup (iDocumentNode *node) |
| Setup this widget.
|
virtual void | SetWarningColor (int red, int green, int blue) |
| Set warn color.
|
virtual void | SetWarningLevel (float level, bool low) |
| Set threshold for warn color.
|
| ~pawsProgressBar () |
Static Public Member Functions |
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) |
Detailed Description
Definition at line 28 of file pawsprogressbar.h.
Constructor & Destructor Documentation
pawsProgressBar::pawsProgressBar |
( |
| ) |
|
pawsProgressBar::~pawsProgressBar |
( |
| ) |
|
Member Function Documentation
void pawsProgressBar::Completed |
( |
| ) |
[inline] |
virtual void pawsProgressBar::Draw |
( |
| ) |
[virtual] |
Draws the widget and all of it's children.
Reimplemented from pawsWidget.
static void pawsProgressBar::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 |
|
) |
| [static] |
float pawsProgressBar::GetCurrentValue |
( |
| ) |
[inline] |
float pawsProgressBar::GetDangerLevel |
( |
| ) |
|
return the current "Danger" level
float pawsProgressBar::GetFlashLevel |
( |
| ) |
|
return the current "flash" level
float pawsProgressBar::GetTotalValue |
( |
| ) |
const [inline] |
float pawsProgressBar::GetWarningLevel |
( |
| ) |
|
return the current "Warn" level
bool pawsProgressBar::IsDone |
( |
| ) |
[inline] |
void pawsProgressBar::OnUpdateData |
( |
const char * |
dataname, |
|
|
PAWSData & |
value |
|
) |
| [virtual] |
virtual void pawsProgressBar::SetColor |
( |
int |
red, |
|
|
int |
green, |
|
|
int |
blue |
|
) |
| [virtual] |
set the base color
- Parameters:
-
red | red saturation value |
green | green saturation value |
blue | blue saturation value |
void pawsProgressBar::SetCurrentValue |
( |
float |
newValue | ) |
|
virtual void pawsProgressBar::SetDangerColor |
( |
int |
red, |
|
|
int |
green, |
|
|
int |
blue |
|
) |
| [virtual] |
Set Danger Color.
- Parameters:
-
red | red saturation value |
green | green saturation value |
blue | blue saturation value |
virtual void pawsProgressBar::SetDangerLevel |
( |
float |
level, |
|
|
bool |
low |
|
) |
| [virtual] |
set threshold for danger color
- Parameters:
-
level | threshold |
low | if TRUE then active below this level; if FALSE active above. |
virtual void pawsProgressBar::SetFlashColor |
( |
int |
red, |
|
|
int |
green, |
|
|
int |
blue |
|
) |
| [virtual] |
Set flash color.
- Parameters:
-
red | red saturation value |
green | green saturation value |
blue | blue saturation value |
virtual void pawsProgressBar::SetFlashLevel |
( |
float |
level, |
|
|
bool |
low |
|
) |
| [virtual] |
Set threshold for flashing numbers outside of min & max = no flash.
default = no flash.
- Parameters:
-
value | within this threshold, flash; outside it, no flash. |
low | if TRUE then flash below this level; if FALSE flash above. |
virtual void pawsProgressBar::SetFlashRate |
( |
int |
rate | ) |
[virtual] |
Set rate of flash.
- Parameters:
-
rate | switch colors every 'rate' ticks |
void pawsProgressBar::SetOn |
( |
bool |
val | ) |
|
void pawsProgressBar::SetReversed |
( |
bool |
val | ) |
|
increse values from left-to-right, or right-to-left ?
- Parameters:
-
left | FALSE = left-to-right (default); TRUE = right-to-left (reversed) |
void pawsProgressBar::SetTotalValue |
( |
float |
newValue | ) |
[inline] |
bool pawsProgressBar::Setup |
( |
iDocumentNode * |
| ) |
[virtual] |
virtual void pawsProgressBar::SetWarningColor |
( |
int |
red, |
|
|
int |
green, |
|
|
int |
blue |
|
) |
| [virtual] |
Set warn color.
- Parameters:
-
red | red saturation value |
green | green saturation value |
blue | blue saturation value |
virtual void pawsProgressBar::SetWarningLevel |
( |
float |
level, |
|
|
bool |
low |
|
) |
| [virtual] |
Set threshold for warn color.
- Parameters:
-
level | threshold |
low | if TRUE then active below this level; if FALSE active above. |
The documentation for this class was generated from the following file: