3f723a32b49d274f3996a4139050df116c16eea9
[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.1  2005/11/04 18:26:38  bernie
18  *#* Import into DevLib.
19  *#*
20  *#* Revision 1.2  2005/06/06 11:04:12  batt
21  *#* Add some comments.
22  *#*
23  *#* Revision 1.1  2005/05/31 11:11:37  batt
24  *#* Edit bool: first release.
25  *#*
26  *#*/
27
28 #ifndef DT_EDITBOOL_H
29 #define DT_EDITBOOL_H
30
31 #include <dt/dwidget.h>
32 #include <dt/dtag.h>
33
34 typedef struct DEditBool
35 {
36         DWidget widget;
37         bool *value;
38         const char *true_string;
39         const char *false_string;
40         void (*draw)(struct DEditBool *);
41 } DEditBool;
42
43 void editbool_init(DEditBool *e, dpos_t pos, dpos_t size, dcontext_t *context, bool *val, const char *true_str, const char *false_str);
44 void editbool_update(DEditBool *e, dtag_t tag, dval_t val);
45 void editbool_draw(DEditBool *e);
46
47
48 #endif