dwidget.c

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