diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-09-04 00:26:52 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-09-04 00:26:52 +0100 |
commit | 41f219192c6a9ee34a14d0cb149946eff9eeec50 (patch) | |
tree | 989c9448246342cc761fad523d15abe4d653a58f /amiga/ctxmenu.h | |
parent | cdaae7b30e22373b99117438a15e062e8749688d (diff) | |
download | netsurf-41f219192c6a9ee34a14d0cb149946eff9eeec50.tar.gz netsurf-41f219192c6a9ee34a14d0cb149946eff9eeec50.tar.bz2 |
Create back/forward context menu using menuclass
Reconstructs itself periodically as it cannot be created on demand
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) {} |