93ea52388d70515ec81089302718e4a430728cf9
[bertos.git] / dt / editbool.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * -->
6  *
7  * \version $Id$
8  *
9  * \brief Edit bool widget (interface).
10  *
11  * \version $Id$
12  * \author Francesco Sacchi <batt@develer.com>
13  */
14
15 /*#*
16  *#* $Log$
17  *#* Revision 1.2  2006/07/19 12:56:26  bernie
18  *#* Convert to new Doxygen style.
19  *#*
20  *#* Revision 1.1  2005/11/04 18:26:38  bernie
21  *#* Import into DevLib.
22  *#*
23  *#* Revision 1.2  2005/06/06 11:04:12  batt
24  *#* Add some comments.
25  *#*
26  *#* Revision 1.1  2005/05/31 11:11:37  batt
27  *#* Edit bool: first release.
28  *#*
29  *#*/
30
31 #ifndef DT_EDITBOOL_H
32 #define DT_EDITBOOL_H
33
34 #include <dt/dwidget.h>
35 #include <dt/dtag.h>
36
37 typedef struct DEditBool
38 {
39         DWidget widget;
40         bool *value;
41         const char *true_string;
42         const char *false_string;
43         void (*draw)(struct DEditBool *);
44 } DEditBool;
45
46 void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *val, const char *true_str, const char *false_str);
47 void editbool_update(DEditBool *e, dtag_t tag, dval_t val);
48 void editbool_draw(DEditBool *e);
49
50
51 #endif