Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / dt / dwidget.c
1 /**
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * -->
6  *
7  * \version $Id$
8  *
9  * \brief Widget (implementation).
10  * A widget is typically a graphic object on a device.
11  * Its proproperties are the position, the size and a context on which the widget is drawn.
12  *
13  * \version $Id$
14  * \author Bernardo Innocenti <bernie@develer.com>
15  * \author Francesco Sacchi <batt@ðeveler.com>
16  */
17
18 /*#*
19  *#* $Log$
20  *#* Revision 1.2  2006/07/19 12:56:26  bernie
21  *#* Convert to new Doxygen style.
22  *#*
23  *#* Revision 1.1  2005/11/04 18:26:38  bernie
24  *#* Import into DevLib.
25  *#*
26  *#* Revision 1.3  2005/06/06 11:04:12  batt
27  *#* Add some comments.
28  *#*
29  *#* Revision 1.2  2005/05/26 14:44:10  batt
30  *#* Abstract widget from layer: use context.
31  *#*
32  *#* Revision 1.1  2005/05/26 08:32:53  batt
33  *#* Add new Develer widget system :)
34  *#*
35  *#*/
36
37 #include <dt/dwidget.h>
38 #include <dt/dnotifier.h>
39
40 /**
41  * Init the widget of \a pos and \a size on the drawing \a context.
42  */
43 void widget_init(DWidget *w, dpos_t pos, dpos_t size, dcontext_t *context)
44 {
45         // Init superclass
46         notifier_init(&w->notifier);
47
48         // Init instance
49         w->pos = pos;
50         w->size = size;
51         w->context = context;
52 }