editbool.h
Go to the documentation of this file.00001
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 #ifndef DT_EDITBOOL_H
00057 #define DT_EDITBOOL_H
00058
00059 #include <dt/dwidget.h>
00060 #include <dt/dtag.h>
00061
00062 typedef struct DEditBool
00063 {
00064 DWidget widget;
00065 bool *value;
00066 const char *true_string;
00067 const char *false_string;
00068 void (*draw)(struct DEditBool *);
00069 } DEditBool;
00070
00071 void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *val, const char *true_str, const char *false_str);
00072 void editbool_update(DEditBool *e, dtag_t tag, dval_t val);
00073 void editbool_draw(DEditBool *e);
00074
00075
00076 #endif