From afd9dceada7001d400fce091a413e14b92a7fdc6 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 14 Jan 2005 15:13:59 +0000 Subject: *** empty log message *** --- src/gui/progressbar.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/gui/progressbar.h') 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 -- cgit v1.2.3-70-g09d2