summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-28 03:23:46 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-28 03:23:46 +0000
commitaa3f1e097f20695fca6384389f9065a26d29f407 (patch)
treee3c32476c17f17159793f2c73d92be3f9a91dbbf /src/gui/progressbar.h
parent434bd8ec146b5001f8f20ee893f13ba8ba478be9 (diff)
downloadmana-aa3f1e097f20695fca6384389f9065a26d29f407.tar.gz
mana-aa3f1e097f20695fca6384389f9065a26d29f407.tar.bz2
mana-aa3f1e097f20695fca6384389f9065a26d29f407.tar.xz
mana-aa3f1e097f20695fca6384389f9065a26d29f407.zip
Formatting updates.
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r--src/gui/progressbar.h32
1 files changed, 21 insertions, 11 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h
index 5da046b7..c8bb22d6 100644
--- a/src/gui/progressbar.h
+++ b/src/gui/progressbar.h
@@ -38,11 +38,12 @@ class ProgressBar : public gcn::Widget {
* Constructor, initializes the progress with the given value.
*/
ProgressBar(float progress = 0.0f, int x = 0, int y = 0,
- int width = 40, int height = 7, unsigned char red = 150, unsigned green = 150,
+ int width = 40, int height = 7,
+ unsigned char red = 150, unsigned green = 150,
unsigned char blue = 150);
/**
- * Destructor
+ * Destructor.
*/
~ProgressBar();
@@ -62,38 +63,47 @@ class ProgressBar : public gcn::Widget {
float getProgress();
/**
- * Change the filling of the progress bar...
+ * Change the filling of the progress bar.
*/
void setColor(
- unsigned char MyRed,
- unsigned char MyGreen,
- unsigned char MyBlue);
+ unsigned char red,
+ unsigned char green,
+ unsigned char blue);
/**
* Get The red value of color
*/
unsigned char getRed()
- { return Red; };
+ {
+ return red;
+ }
/**
* Get The red value of color
*/
unsigned char getGreen()
- { return Green; };
+ {
+ return green;
+ }
/**
* Get The red value of color
*/
unsigned char getBlue()
- { return Blue; };
+ {
+ return blue;
+ }
private:
float progress;
- unsigned char Red, Green, Blue;
+ unsigned char red, green, blue;
+
// Bar Images
Image *dBackground;
- Image *dTopLeftBorder, *dTopRightBorder, *dBottomLeftBorder, *dBottomRightBorder;
+ Image *dTopLeftBorder, *dTopRightBorder, *dBottomLeftBorder;
+ Image *dBottomRightBorder;
Image *dLeftBorder, *dRightBorder, *dTopBorder, *dBottomBorder;
+
// Our color bar
Image *colorBar;
};