summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-01-14 15:13:59 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-01-14 15:13:59 +0000
commitafd9dceada7001d400fce091a413e14b92a7fdc6 (patch)
tree674553dbdfe2d992c6ea93b88d034eb791f08412 /src/gui/progressbar.h
parent976b4da70227ab97607c51be05a20f4ecfca9325 (diff)
downloadmana-afd9dceada7001d400fce091a413e14b92a7fdc6.tar.gz
mana-afd9dceada7001d400fce091a413e14b92a7fdc6.tar.bz2
mana-afd9dceada7001d400fce091a413e14b92a7fdc6.tar.xz
mana-afd9dceada7001d400fce091a413e14b92a7fdc6.zip
*** empty log message ***
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r--src/gui/progressbar.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h
index 71d5c8f6..47b6f170 100644
--- a/src/gui/progressbar.h
+++ b/src/gui/progressbar.h
@@ -37,7 +37,7 @@ class ProgressBar : public gcn::Widget {
/**
* Constructor, initializes the progress with the given value.
*/
- ProgressBar(float progress = 0.0f);
+ ProgressBar(float progress = 0.0f, int x = 0, int y = 0, int width = 40, unsigned char red = 150, unsigned green = 150, unsigned char blue = 150);
/**
* Draws the progress bar.
@@ -53,9 +53,31 @@ class ProgressBar : public gcn::Widget {
* Returns the current progress.
*/
float getProgress();
+
+ /**
+ * Change the filling of the progress bar...
+ */
+ void setColor(unsigned char MyRed, unsigned char MyGreen, unsigned char MyBlue)
+ {
+ Red = MyRed; Green = MyGreen; Blue = MyBlue;
+ };
+
+ int getHeight()
+ { return 7; };
+
+ int getWidth()
+ { return Width; };
+
+ int getX()
+ { return X; };
+
+ int getY()
+ { return Y; };
private:
float progress;
+ unsigned char Red, Green, Blue;
+ int X, Y, Width;
};
#endif