Simplify screen: make it absolute and fill the whole TFT

This commit is contained in:
Pim van Pelt
2017-11-26 20:07:26 +01:00
parent 43fad07afe
commit d5e01dedd2
7 changed files with 25 additions and 32 deletions

View File

@ -8,7 +8,6 @@
struct screen_t {
char *name;
uint16_t x, y, w, h;
// Private
SLIST_HEAD(widget_entries, widget_list_t) widget_entries;
@ -16,7 +15,7 @@ struct screen_t {
void *default_user_data;
};
struct screen_t *screen_create(char *name, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
struct screen_t *screen_create(char *name);
struct screen_t *screen_create_from_file(char *fn, widget_event_fn handler, void *user_data);
struct screen_t *screen_create_from_json(char *json, widget_event_fn handler, void *user_data);
void screen_destroy(struct screen_t **s);