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