BeRTOS
dwidget.c
Go to the documentation of this file.
00001 
00041 /*#*
00042  *#* $Log$
00043  *#* Revision 1.2  2006/07/19 12:56:26  bernie
00044  *#* Convert to new Doxygen style.
00045  *#*
00046  *#* Revision 1.1  2005/11/04 18:26:38  bernie
00047  *#* Import into DevLib.
00048  *#*
00049  *#* Revision 1.3  2005/06/06 11:04:12  batt
00050  *#* Add some comments.
00051  *#*
00052  *#* Revision 1.2  2005/05/26 14:44:10  batt
00053  *#* Abstract widget from layer: use context.
00054  *#*
00055  *#* Revision 1.1  2005/05/26 08:32:53  batt
00056  *#* Add new Develer widget system :)
00057  *#*
00058  *#*/
00059 
00060 #include <dt/dwidget.h>
00061 #include <dt/dnotifier.h>
00062 
00066 void widget_init(DWidget *w, dpos_t pos, dpos_t size, dcontext_t *context)
00067 {
00068     // Init superclass
00069     notifier_init(&w->notifier);
00070 
00071     // Init instance
00072     w->pos = pos;
00073     w->size = size;
00074     w->context = context;
00075 }