/** * \file * * * \brief Edit bool widget (interface). * * \author Francesco Sacchi */ #ifndef DT_EDITBOOL_H #define DT_EDITBOOL_H #include
#include
typedef struct DEditBool { DWidget widget; bool *value; const char *true_string; const char *false_string; void (*draw)(struct DEditBool *); } DEditBool; void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *val, const char *true_str, const char *false_str); void editbool_update(DEditBool *e, dtag_t tag, dval_t val); void editbool_draw(DEditBool *e); #endif /* DT_EDITBOOL_H */