1 2 3 4 5 6 7 8 9 10
#include "widget.h" void widget_init(Widget *w) { w->x = 0; w->y = 0; } void widget_draw(Widget *w) { // draw at w->x, w->y }