editbool.h
Go to the documentation of this file.00001
00038 #ifndef DT_EDITBOOL_H
00039 #define DT_EDITBOOL_H
00040
00041 #include <dt/dwidget.h>
00042 #include <dt/dtag.h>
00043
00044 typedef struct DEditBool
00045 {
00046 DWidget widget;
00047 bool *value;
00048 const char *true_string;
00049 const char *false_string;
00050 void (*draw)(struct DEditBool *);
00051 } DEditBool;
00052
00053 void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *val, const char *true_str, const char *false_str);
00054 void editbool_update(DEditBool *e, dtag_t tag, dval_t val);
00055 void editbool_draw(DEditBool *e);
00056
00057
00058 #endif