4 * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
9 * \brief Integer edit (interface).
12 * \author Bernardo Innocenti <bernie@develer.com>
13 * \author Francesco Sacchi <batt@develer.com>
18 *#* Revision 1.1 2005/11/04 18:26:38 bernie
19 *#* Import into DevLib.
21 *#* Revision 1.3 2005/06/10 15:46:09 batt
22 *#* Add EDIS_WRAP style that wrap around min and max.
24 *#* Revision 1.2 2005/05/26 14:44:10 batt
25 *#* Abstract widget from layer: use context.
27 *#* Revision 1.1 2005/05/26 08:32:53 batt
28 *#* Add new Develer widget system :)
35 #include <dt/dwidget.h>
37 #include <drv/lcd_text.h>
39 #include <cfg/compiler.h>
40 #include <cfg/macros.h>
43 #define EDIS_DEFAULT 0
44 #define EDIS_CURSORLEFT BV(0)
45 #define EDIS_WRAP BV(1)
47 /*! Type for edit style */
48 typedef uint16_t dstyle_t;
50 typedef struct DEditInt
58 void (*draw)(struct DEditInt *);
62 void editint_init(DEditInt *e, dpos_t pos, dpos_t size, dcontext_t *context, int *value, int min, int max);
63 void editint_update(DEditInt *e, dtag_t tag, dval_t val);
64 void editint_draw(DEditInt *e);