From 9ed2e4f593c1192210d0b51971cfb11d57d9108e Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 16 Jan 2005 22:56:45 +0000 Subject: Removed a lot of allegro.h includes. --- src/gui/progressbar.h | 56 +++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 24 deletions(-) (limited to 'src/gui/progressbar.h') diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h index 47b6f170..65e8ec94 100644 --- a/src/gui/progressbar.h +++ b/src/gui/progressbar.h @@ -24,7 +24,6 @@ #ifndef __PROGRESSBAR_H__ #define __PROGRESSBAR_H__ -#include #include /** @@ -37,7 +36,9 @@ 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, unsigned char red = 150, unsigned green = 150, unsigned char blue = 150); + 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,31 +54,38 @@ 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; }; + + /** + * 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; + unsigned char Red, Green, Blue; + int X, Y, Width; }; #endif -- cgit v1.2.3-70-g09d2