Factor out widget_set_{handler,timer}() from app

This commit is contained in:
Pim van Pelt
2017-11-26 16:10:51 +01:00
parent 83b0d346ae
commit 64af496314
3 changed files with 19 additions and 12 deletions

View File

@ -38,7 +38,7 @@ struct widget_t *widget_find(uint16_t x, uint16_t y);
void widget_remove(struct widget_t *widget);
*/
struct widget_t *widget_create(char *name, uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint32_t timer_msec, widget_event_fn handler, void *user_data);
struct widget_t *widget_create(char *name, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
void widget_set_handler(struct widget_t *w, widget_event_fn handler, void *user_data);
void widget_delete_handler(struct widget_t *w);
void widget_set_timer(struct widget_t *w, uint32_t timer_msec);