editbool.h

Go to the documentation of this file.
00001 
00040 /*#*
00041  *#* $Log$
00042  *#* Revision 1.2  2006/07/19 12:56:26  bernie
00043  *#* Convert to new Doxygen style.
00044  *#*
00045  *#* Revision 1.1  2005/11/04 18:26:38  bernie
00046  *#* Import into DevLib.
00047  *#*
00048  *#* Revision 1.2  2005/06/06 11:04:12  batt
00049  *#* Add some comments.
00050  *#*
00051  *#* Revision 1.1  2005/05/31 11:11:37  batt
00052  *#* Edit bool: first release.
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