summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 22:56:45 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 22:56:45 +0000
commit9ed2e4f593c1192210d0b51971cfb11d57d9108e (patch)
tree41431252b984b21cc157adc8a6ea3072a1243e24 /src/gui/progressbar.h
parent12356c8b5b7002cdffaa6a737f54806f52241bfb (diff)
downloadmana-9ed2e4f593c1192210d0b51971cfb11d57d9108e.tar.gz
mana-9ed2e4f593c1192210d0b51971cfb11d57d9108e.tar.bz2
mana-9ed2e4f593c1192210d0b51971cfb11d57d9108e.tar.xz
mana-9ed2e4f593c1192210d0b51971cfb11d57d9108e.zip
Removed a lot of allegro.h includes.
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r--src/gui/progressbar.h56
1 files changed, 32 insertions, 24 deletions
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 <allegro.h>
#include <guichan.hpp>
/**
@@ -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