NetSurf
Functions
deskmenu.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void deskmenu_init (void)
 Setup & display an desktop menu. More...
 
void deskmenu_destroy (void)
 Uninstall the desktop menu. More...
 
int deskmenu_dispatch_item (short title, short item)
 Handle an menu item event. More...
 
int deskmenu_dispatch_keypress (unsigned short kcode, unsigned short kstate, unsigned short nkc)
 Handle an keypress (check for accelerator) More...
 
OBJECT * deskmenu_get_obj_tree (void)
 Return the deskmenu AES OBJECT tree. More...
 
void deskmenu_update (void)
 Refresh the desk menu, reflecting netsurf current state. More...
 

Function Documentation

◆ deskmenu_destroy()

void deskmenu_destroy ( void  )

Uninstall the desktop menu.

Definition at line 707 of file deskmenu.c.

References h_gem_menu, and menu_evnt_tbl.

Referenced by gui_quit().

Here is the caller graph for this function:

◆ deskmenu_dispatch_item()

int deskmenu_dispatch_item ( short  title,
short  item 
)

Handle an menu item event.

Definition at line 734 of file deskmenu.c.

References deskmenu_get_obj_tree(), menu_evnt_tbl, and s_menu_item_evnt::menu_func.

Referenced by atari_poll(), and deskmenu_dispatch_keypress().

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

◆ deskmenu_dispatch_keypress()

int deskmenu_dispatch_keypress ( unsigned short  kcode,
unsigned short  kstate,
unsigned short  nkc 
)

Handle an keypress (check for accelerator)

Definition at line 769 of file deskmenu.c.

References s_menu_item_evnt::accel, s_accelerator::ascii, deskmenu_dispatch_item(), menu_evnt_tbl, s_menu_item_evnt::menu_func, and s_accelerator::mod.

Referenced by atari_poll().

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

◆ deskmenu_get_obj_tree()

OBJECT * deskmenu_get_obj_tree ( void  )

Return the deskmenu AES OBJECT tree.

Definition at line 726 of file deskmenu.c.

References h_gem_menu.

Referenced by deskmenu_dispatch_item().

Here is the caller graph for this function:

◆ deskmenu_init()

void deskmenu_init ( void  )

Setup & display an desktop menu.

Definition at line 676 of file deskmenu.c.

References deskmenu_update(), h_gem_menu, menu_evnt_tbl, and register_menu_str().

Referenced by gui_init().

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

◆ deskmenu_update()

void deskmenu_update ( void  )

Refresh the desk menu, reflecting netsurf current state.

Definition at line 823 of file deskmenu.c.

References h_gem_menu, html_redraw_debug, nsoption_bool, and verbose_log.

Referenced by deskmenu_init(), and save_settings().

Here is the caller graph for this function: