diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-13 16:39:55 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-06-22 16:48:47 +0100 |
commit | 81a04d9eb885d107aebc9dc00ff17b35a811fd28 (patch) | |
tree | 72be6c497796d52f6ed5c6fa08c492aa57440b77 /platform/gl/gl-app.h | |
parent | 80edb6d4fe8c4af5b01176bcd956df37a24438a8 (diff) | |
download | mupdf-81a04d9eb885d107aebc9dc00ff17b35a811fd28.tar.xz |
gl: Rework how popup menus are handled.
Handle the logic immediately, but put the drawing commands into a
display list that is invoked after the rest of the UI is drawn.
Diffstat (limited to 'platform/gl/gl-app.h')
-rw-r--r-- | platform/gl/gl-app.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/platform/gl/gl-app.h b/platform/gl/gl-app.h index a966641a..675ece0e 100644 --- a/platform/gl/gl-app.h +++ b/platform/gl/gl-app.h @@ -93,9 +93,8 @@ struct ui struct layout layout_stack[32]; fz_irect cavity_stack[32]; - struct { fz_irect area; const char *title; } popup[32]; - fz_irect popup_area; - int popup_count; + int overlay; + GLuint overlay_list; void (*dialog)(void); }; @@ -183,10 +182,9 @@ int ui_list_item(struct list *list, const void *id, const char *label, int selec int ui_list_item_x(struct list *list, const void *id, int indent, const char *label, int selected); void ui_list_end(struct list *list); -int ui_popup(const void *id, const char *title, int is_button, int count); +int ui_popup(const void *id, const char *label, int is_button, int count); int ui_popup_item(const char *title); void ui_popup_end(void); -void ui_draw_popup(void); void ui_init_open_file(const char *dir, int (*filter)(const char *fn)); int ui_open_file(char filename[]); |