diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-04-07 06:12:16 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-04-28 05:07:13 (GMT) |
commit | 5d47dce16ab007ebcd5953d0e43325ecb593111a (patch) | |
tree | e5fd483d50492cae697827e2297536e50c70483a /src/eulogium.h | |
parent | d1156a5a6d18bd7cc9919b342e1c5dd1456e7273 (diff) | |
download | eulogium-5d47dce16ab007ebcd5953d0e43325ecb593111a.zip eulogium-5d47dce16ab007ebcd5953d0e43325ecb593111a.tar.gz eulogium-5d47dce16ab007ebcd5953d0e43325ecb593111a.tar.bz2 |
Add a multi-screen rather then multi-text type
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/eulogium.h')
-rw-r--r-- | src/eulogium.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/eulogium.h b/src/eulogium.h index 88cecc4..ee6294d 100644 --- a/src/eulogium.h +++ b/src/eulogium.h @@ -6,6 +6,13 @@ #include <Evas.h> #include <stdint.h> +enum screen_type { + TEXT, + BUTTON, + MATERIAL, + PROGRESS, +}; + struct print_data { Evas_Object *progress; Evas_Object *status; @@ -35,9 +42,18 @@ struct button_def { struct multi_text { uint_fast8_t count; + const char *button_text; const char *text[]; }; +struct multi_screen { + enum screen_type type; + char *text; + void *data; + char *next_button; + char *prev_button; +}; + void eulogium_print_file_set(struct eulogium_data *eulogium, char *filepath); void eulogium_button_cb_set(struct button_def *button, struct button_cb *cb); |