diff options
Diffstat (limited to 'amiga/ctxmenu.h')
-rw-r--r-- | amiga/ctxmenu.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/amiga/ctxmenu.h b/amiga/ctxmenu.h index 678208647..39fce2f68 100644 --- a/amiga/ctxmenu.h +++ b/amiga/ctxmenu.h @@ -24,6 +24,13 @@ #define AMIGA_CTXMENU_H 1 struct Hook; +struct Menu; +struct gui_window_2; + +enum { + AMI_CTXMENU_HISTORY_BACK = 0, + AMI_CTXMENU_HISTORY_FORWARD = 1 +}; /** * Initialise context menus code (allocate label text, etc) @@ -50,6 +57,16 @@ struct Hook *ami_ctxmenu_get_hook(APTR data); * \param hook ptr to hook */ void ami_ctxmenu_release_hook(struct Hook *hook); + +/** + * Create history context menu. First run sets up the menu, next creates entries. + * + * \param gwin struct gui_window_2 * + * \returns pointer to menu + */ +struct Menu *ami_ctxmenu_history_create(int direction, struct gui_window_2 *gwin); + + #else inline void ami_ctxmenu_init(void) {} inline void ami_ctxmenu_free(void) {} |