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