Add a simple unit test for widget_add_from_file()

This commit is contained in:
Pim van Pelt
2017-11-26 11:28:09 +01:00
parent b005dd8a26
commit 6985b30dc2
8 changed files with 854 additions and 8 deletions

View File

@ -26,6 +26,7 @@ struct widget_t {
};
struct widget_t *widget_add(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_add_from_file(const char *fn, uint32_t timer_msec, widget_event_fn handler, void *user_data);
struct widget_t *widget_find(uint16_t x, uint16_t y);
void widget_remove(struct widget_t *widget);