void textbox_draw ( textbox *tb, cairo_t *draw ) { texbox_update ( tb ); /* Write buffer */ cairo_set_source_surface ( draw, tb->main_surface, tb->x, tb->y ); cairo_rectangle ( draw, tb->x, tb->y, tb->w, tb->h ); cairo_fill ( draw ); }
static void textbox_draw ( widget *wid, cairo_t *draw ) { textbox *tb = (textbox *) wid; texbox_update ( tb ); /* Write buffer */ cairo_set_source_surface ( draw, tb->main_surface, 0, 0 ); cairo_rectangle ( draw, 0, 0, tb->widget.w, tb->widget.h ); cairo_fill ( draw ); }