NetSurf
Data Structures | Macros | Functions
menu.h File Reference
#include <exec/types.h>
#include <intuition/intuition.h>
#include <libraries/gadtools.h>
Include dependency graph for menu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ami_menu_data
 

Macros

#define NSA_SPACE   "blankspace.png"
 empty space More...
 

Functions

void ami_menu_free_glyphs (void)
 
void ami_menu_alloc_item (struct ami_menu_data **md, int num, UBYTE type, const char *restrict label, const char *restrict key, const char *restrict icon, void *restrict func, void *restrict hookdata, UWORD flags)
 
struct Menu * ami_menu_layout (struct ami_menu_data **md, int max)
 
void ami_menu_free_menu (struct ami_menu_data **md, int max, struct Menu *imenu)
 
void ami_menu_free_lab_item (struct ami_menu_data **md, int i)
 
void ami_menu_refresh (struct Menu *menu, struct ami_menu_data **md, int menu_item, int max, nserror(*cb)(struct ami_menu_data **md))
 
bool ami_menu_get_selected (struct Menu *menu, struct IntuiMessage *msg)
 Get the selected state of a menu item. More...
 

Macro Definition Documentation

◆ NSA_SPACE

#define NSA_SPACE   "blankspace.png"

empty space

Definition at line 37 of file menu.h.

Function Documentation

◆ ami_menu_alloc_item()

void ami_menu_alloc_item ( struct ami_menu_data **  md,
int  num,
UBYTE  type,
const char *restrict  label,
const char *restrict  key,
const char *restrict  icon,
void *restrict  func,
void *restrict  hookdata,
UWORD  flags 
)

Definition at line 115 of file menu.c.

References ami_locate_resource(), AMI_MENU_AREXX, AMI_MENU_AREXX_MAX, ami_utf8_easy(), ami_menu_data::flags, LIB_IS_AT_LEAST, ami_menu_data::menu_hook, ami_menu_data::menuicon, ami_menu_data::menukey, ami_menu_data::menulab, ami_menu_data::menutype, messages_get(), NSA_SPACE, and type.

Referenced by ami_cookies_menulabs(), ami_history_global_menulabs(), ami_hotlist_menulabs(), ami_init_menulabs(), ami_menu_arexx_scan(), ami_menu_hotlist_add(), and ami_menu_scan().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_free_glyphs()

void ami_menu_free_glyphs ( void  )

Definition at line 182 of file menu.c.

References LIB_IS_AT_LEAST, menu_glyph, menu_glyphs_loaded, and NSA_GLYPH_MAX.

Referenced by gui_quit().

Here is the caller graph for this function:

◆ ami_menu_free_lab_item()

void ami_menu_free_lab_item ( struct ami_menu_data **  md,
int  i 
)

Definition at line 83 of file menu.c.

References ami_utf8_free(), ami_menu_data::menukey, ami_menu_data::menulab, ami_menu_data::menuobj, ami_menu_data::menutype, and ML_SEPARATOR.

Referenced by ami_menu_free_labs(), and ami_menu_refresh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_free_menu()

void ami_menu_free_menu ( struct ami_menu_data **  md,
int  max,
struct Menu *  imenu 
)

Definition at line 430 of file menu.c.

References ami_menu_free_labs(), LIB_IS_AT_LEAST, and max.

Referenced by ami_cookies_menu_free(), ami_history_global_menu_free(), and ami_hotlist_menu_free().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_get_selected()

bool ami_menu_get_selected ( struct Menu *  menu,
struct IntuiMessage *  msg 
)

Get the selected state of a menu item.

Definition at line 63 of file menu.c.

References IDoMethod, and LIB_IS_AT_LEAST.

Referenced by HOOKF().

Here is the caller graph for this function:

◆ ami_menu_layout()

struct Menu * ami_menu_layout ( struct ami_menu_data **  md,
int  max 
)

Definition at line 419 of file menu.c.

References ami_menu_layout_gt(), LIB_IS_AT_LEAST, and max.

Referenced by ami_cookies_menu_create(), ami_gui_menu_create(), ami_history_global_menu_create(), and ami_hotlist_menu_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_refresh()

void ami_menu_refresh ( struct Menu *  menu,
struct ami_menu_data **  md,
int  menu_item,
int  max,
nserror(*)(struct ami_menu_data **md)  cb 
)

Definition at line 440 of file menu.c.

References ami_menu_free_lab_item(), IDoMethod, LIB_IS_AT_LEAST, and max.

Referenced by ami_gui_menu_refresh_hotlist().

Here is the call graph for this function:
Here is the caller graph for this function: