NetSurf
Data Structures | Functions
menu.h File Reference
#include <gtk/gtk.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  nsgtk_file_menu
 File menu item on menubar. More...
 
struct  nsgtk_edit_menu
 
struct  nsgtk_view_menu
 
struct  nsgtk_nav_menu
 
struct  nsgtk_tools_menu
 
struct  nsgtk_help_menu
 
struct  nsgtk_export_submenu
 
struct  nsgtk_scaleview_submenu
 
struct  nsgtk_tabs_submenu
 
struct  nsgtk_toolbars_submenu
 
struct  nsgtk_developer_submenu
 
struct  nsgtk_bar_submenu
 main menubar More...
 
struct  nsgtk_burger_menu
 
struct  nsgtk_popup_menu
 
struct  nsgtk_link_menu
 

Functions

struct nsgtk_bar_submenunsgtk_menu_bar_create (GtkMenuShell *menubar, GtkAccelGroup *group)
 Create main menubar menu. More...
 
struct nsgtk_burger_menunsgtk_burger_menu_create (GtkAccelGroup *group)
 Generate burger menu. More...
 
struct nsgtk_popup_menunsgtk_popup_menu_create (GtkAccelGroup *group)
 Generate right click popup menu. More...
 
struct nsgtk_link_menunsgtk_link_menu_create (GtkAccelGroup *group)
 Generate context sensitive link popup menu. More...
 
nserror nsgtk_menu_bar_destroy (struct nsgtk_bar_submenu *menu)
 destroy bar menu More...
 
nserror nsgtk_burger_menu_destroy (struct nsgtk_burger_menu *menu)
 destroy burger menu More...
 
nserror nsgtk_popup_menu_destroy (struct nsgtk_popup_menu *menu)
 destroy popup menu More...
 
nserror nsgtk_link_menu_destroy (struct nsgtk_link_menu *menu)
 destroy link menu More...
 

Function Documentation

◆ nsgtk_burger_menu_create()

struct nsgtk_burger_menu * nsgtk_burger_menu_create ( GtkAccelGroup *  group)

Generate burger menu.

Parameters
acceleratorgroup to use with menu
Returns
new menu structure or NULL on error

Definition at line 522 of file menu.c.

References IMAGE_ITEM, NEW_MENU, SET_SUBMENU, and view.

Referenced by create_scaffolding_burger_menu().

Here is the caller graph for this function:

◆ nsgtk_burger_menu_destroy()

nserror nsgtk_burger_menu_destroy ( struct nsgtk_burger_menu menu)

destroy burger menu

destroys the gtk widgets associated with menu and frees all storage.

Parameters
menumenu to destroy
Returns
NSERROR_OK and menu destroyed on success else error code

Definition at line 623 of file menu.c.

References nsgtk_burger_menu::burger_menu, nsgtk_tools_menu::developer_submenu, nsgtk_burger_menu::edit_submenu, nsgtk_file_menu::export_submenu, nsgtk_burger_menu::file_submenu, nsgtk_burger_menu::help_submenu, nsgtk_burger_menu::nav_submenu, NSERROR_OK, nsgtk_view_menu::scaleview_submenu, nsgtk_view_menu::tabs_submenu, nsgtk_view_menu::toolbars_submenu, nsgtk_burger_menu::tools_submenu, and nsgtk_burger_menu::view_submenu.

Referenced by scaffolding_window_destroy().

Here is the caller graph for this function:

◆ nsgtk_link_menu_create()

struct nsgtk_link_menu * nsgtk_link_menu_create ( GtkAccelGroup *  group)

Generate context sensitive link popup menu.

Parameters
acceleratorgroup to use with menu
Returns
new menu structure or NULL on error

Definition at line 582 of file menu.c.

References ADD_SEP, IMAGE_ITEM, and NEW_MENU.

Referenced by create_scaffolding_link_menu().

Here is the caller graph for this function:

◆ nsgtk_link_menu_destroy()

nserror nsgtk_link_menu_destroy ( struct nsgtk_link_menu menu)

destroy link menu

destroys the gtk widgets associated with menu and frees all storage.

Parameters
menumenu to destroy
Returns
NSERROR_OK and menu destroyed on success else error code

Definition at line 659 of file menu.c.

References nsgtk_link_menu::link_menu, and NSERROR_OK.

Referenced by scaffolding_window_destroy().

Here is the caller graph for this function:

◆ nsgtk_menu_bar_create()

struct nsgtk_bar_submenu * nsgtk_menu_bar_create ( GtkMenuShell *  menubar,
GtkAccelGroup *  group 
)

Create main menubar menu.

Create main menubar menu.

Generate the main menu structure and attach it to a menubar widget.

Definition at line 488 of file menu.c.

References ATTACH_PARENT, nsgtk_bar_submenu::bar_menu, nsgtk_edit_menu::edit, nsgtk_bar_submenu::edit_submenu, nsgtk_file_menu::file, nsgtk_bar_submenu::file_submenu, nsgtk_help_menu::help, nsgtk_bar_submenu::help_submenu, nsgtk_nav_menu::nav, nsgtk_bar_submenu::nav_submenu, nsgtk_menu_edit_submenu(), nsgtk_menu_file_submenu(), nsgtk_menu_help_submenu(), nsgtk_menu_nav_submenu(), nsgtk_menu_tools_submenu(), nsgtk_menu_view_submenu(), nsgtk_tools_menu::tools, nsgtk_bar_submenu::tools_submenu, nsgtk_view_menu::view, and nsgtk_bar_submenu::view_submenu.

Referenced by create_scaffolding_bar_menu().

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

◆ nsgtk_menu_bar_destroy()

nserror nsgtk_menu_bar_destroy ( struct nsgtk_bar_submenu menu)

destroy bar menu

destroys the gtk widgets associated with menu and frees all storage.

Parameters
menumenu to destroy
Returns
NSERROR_OK and menu destroyed on success else error code

Definition at line 602 of file menu.c.

References nsgtk_bar_submenu::bar_menu, nsgtk_tools_menu::developer_submenu, nsgtk_bar_submenu::edit_submenu, nsgtk_file_menu::export_submenu, nsgtk_bar_submenu::file_submenu, nsgtk_bar_submenu::help_submenu, nsgtk_bar_submenu::nav_submenu, NSERROR_OK, nsgtk_view_menu::scaleview_submenu, nsgtk_view_menu::tabs_submenu, nsgtk_view_menu::toolbars_submenu, nsgtk_bar_submenu::tools_submenu, and nsgtk_bar_submenu::view_submenu.

Referenced by scaffolding_window_destroy().

Here is the caller graph for this function:

◆ nsgtk_popup_menu_create()

struct nsgtk_popup_menu * nsgtk_popup_menu_create ( GtkAccelGroup *  group)

Generate right click popup menu.

Parameters
acceleratorgroup to use with menu
Returns
new menu structure or NULL on error

Definition at line 551 of file menu.c.

References ADD_NAMED_SEP, IMAGE_ITEM, NEW_MENU, reload, SET_SUBMENU, and toolbars.

Referenced by create_scaffolding_popup_menu().

Here is the caller graph for this function:

◆ nsgtk_popup_menu_destroy()

nserror nsgtk_popup_menu_destroy ( struct nsgtk_popup_menu menu)

destroy popup menu

destroys the gtk widgets associated with menu and frees all storage.

Parameters
menumenu to destroy
Returns
NSERROR_OK and menu destroyed on success else error code

Definition at line 645 of file menu.c.

References nsgtk_tools_menu::developer_submenu, NSERROR_OK, nsgtk_popup_menu::popup_menu, nsgtk_popup_menu::toolbars_submenu, and nsgtk_popup_menu::tools_submenu.

Referenced by scaffolding_window_destroy().

Here is the caller graph for this function: