leveledit.h
Go to the documentation of this file.00001
00037 #ifndef GUI_LEVELEDIT_H
00038 #define GUI_LEVELEDIT_H
00039
00040
00041
00042
00043 #define LEVELEDIT_NOBAR 0
00044 #define LEVELEDIT_SINGLE 1
00045 #define LEVELEDIT_DOUBLE 2
00049
00050 struct Bitmap;
00051 struct LevelEdit;
00052
00054 typedef void level_set_callback(void);
00055
00057 typedef void display_callback(struct LevelEdit *);
00058
00062 typedef struct LevelEdit {
00063 int type;
00064 const char *title;
00065 const char *unit;
00066 int min;
00067 int max;
00068 int step;
00069
00070 level_set_callback *set_hook;
00071 display_callback *display_hook;
00072 int *ch1_val;
00073 int *ch2_val;
00074
00075 struct Bitmap *bitmap;
00076 } LevelEdit;
00077
00078
00079 void level_init(struct LevelEdit *lev,
00080 int type,
00081 struct Bitmap *bmp, const char *title, const char *unit,
00082 int min, int max, int step,
00083 int *ch1_val, int *ch2_val,
00084 level_set_callback *change_hook, display_callback *display_hook);
00085 void level_edit(struct LevelEdit *lev);
00086
00087 #endif