levelbar.h

Go to the documentation of this file.
00001 
00013 #ifndef GUI_LEVELBAR_H
00014 #define GUI_LEVELBAR_H
00015 
00016 #include <gfx/gfx.h>
00017 
00018 
00020 #define LBAR_HORIZONTAL 1
00021 #define LBAR_VERTICAL   2
00022 
00023 typedef struct LevelBar
00024 {
00025     struct Bitmap *bitmap;
00026     int type;
00027     int pos;                 
00028     int min;                 
00029     int max;                 
00030     coord_t x1, y1, x2, y2;  
00031 } LevelBar;
00032 
00033 void lbar_init(struct LevelBar *lb, struct Bitmap *bmp, int type, int min, int max, int pos,
00034         coord_t x1, coord_t y1, coord_t x2, coord_t y2);
00035 void lbar_setLevel(struct LevelBar *lb, int level);
00036 int  lbar_getLevel(struct LevelBar *lb);
00037 void lbar_changeLevel(struct LevelBar *lb, int delta);
00038 void lbar_setMax(struct LevelBar *lb, int max);
00039 void lbar_draw(struct LevelBar *lb);
00040 
00041 #endif /* GUI_LEVELBAR_H */