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

Go to the source code of this file.

Functions

struct browser_windownsgtk_get_browser_window (struct gui_window *gw)
 get core browsing context from gui window handle More...
 
struct nsgtk_scaffoldingnsgtk_get_scaffold (struct gui_window *gw)
 get containing nsgtk scaffolding handle from gui window handle More...
 
nserror nsgtk_window_update_all (void)
 Every window will have its tab, toolbar and drawing area updated. More...
 
nserror nsgtk_window_toolbar_update (void)
 every window will have its toolbar updated to reflect user settings More...
 
nserror nsgtk_window_toolbar_show (struct nsgtk_scaffolding *gs, bool show)
 Windows associated with a scaffold will have their toolbar show state set. More...
 
int nsgtk_gui_window_update_targets (struct gui_window *gw)
 update targets More...
 
void nsgtk_window_destroy_browser (struct gui_window *gw)
 destroy browsing context More...
 
nserror nsgtk_window_search_toggle (struct gui_window *gw)
 toggle search visibility More...
 
GtkLayout * nsgtk_window_get_layout (struct gui_window *gw)
 get gtk layout from gui handle More...
 
nserror nsgtk_window_item_activate (struct gui_window *gw, nsgtk_toolbar_button itemid)
 activate the handler for a item in a toolbar of a gui window More...
 
nserror nsgtk_window_position_page_info (struct gui_window *gw, struct nsgtk_pi_window *win)
 position page_info appropriately More...
 
nserror nsgtk_window_position_local_history (struct gui_window *gw)
 position local_history appropriately More...
 

Variables

struct gui_window_tablensgtk_window_table
 
struct gui_search_web_tablensgtk_search_web_table
 
struct gui_windowwindow_list
 

Function Documentation

◆ nsgtk_get_browser_window()

struct browser_window * nsgtk_get_browser_window ( struct gui_window gw)

get core browsing context from gui window handle

Parameters
gwgui window handle

Definition at line 1633 of file window.c.

References gui_window::bw.

Referenced by nsgtk_on_link_opentab_activate_menu(), nsgtk_on_link_openwin_activate_menu(), nsgtk_on_savelink_activate_menu(), nsgtk_scaffolding_context_menu(), nsgtk_scaffolding_set_top_level(), nsgtk_scaffolding_update_edit_actions_sensitivity(), and scaffolding_update_context().

Here is the caller graph for this function:

◆ nsgtk_get_scaffold()

struct nsgtk_scaffolding * nsgtk_get_scaffold ( struct gui_window gw)

get containing nsgtk scaffolding handle from gui window handle

Parameters
gwgui window handle

Definition at line 1626 of file window.c.

References gui_window::scaffold.

Referenced by gui_download_window_create(), nsgtk_scaffolding_set_title(), nsgtk_scaffolding_set_top_level(), nsgtk_scaffolding_throbber(), nsgtk_tab_add(), openmenu_button_clicked_cb(), and toolbar_popup_context_menu_cb().

Here is the caller graph for this function:

◆ nsgtk_gui_window_update_targets()

int nsgtk_gui_window_update_targets ( struct gui_window gw)

update targets

Parameters
gwgui window handle

◆ nsgtk_window_destroy_browser()

void nsgtk_window_destroy_browser ( struct gui_window gw)

destroy browsing context

Parameters
gwgui window handle

Definition at line 1663 of file window.c.

References gui_window::container.

Referenced by nsgtk_tab_close_current().

Here is the caller graph for this function:

◆ nsgtk_window_get_layout()

GtkLayout * nsgtk_window_get_layout ( struct gui_window gw)

get gtk layout from gui handle

Parameters
gwgui window handle

Definition at line 1640 of file window.c.

References gui_window::layout.

◆ nsgtk_window_item_activate()

nserror nsgtk_window_item_activate ( struct gui_window gw,
nsgtk_toolbar_button  itemid 
)

activate the handler for a item in a toolbar of a gui window

Parameters
gwThe gui window handle
itemidThe id of the item to activate

Definition at line 1656 of file window.c.

References nsgtk_toolbar_item_activate(), and gui_window::toolbar.

Referenced by gui_window_create(), and nsgtk_tab_switch_page_after().

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

◆ nsgtk_window_position_local_history()

nserror nsgtk_window_position_local_history ( struct gui_window gw)

position local_history appropriately

Parameters
gwThe gui window handle to position relative to

Definition at line 1716 of file window.c.

References nsgtk_toolbar_position_local_history(), and gui_window::toolbar.

Referenced by nsgtk_scaffolding_position_local_history().

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

◆ nsgtk_window_position_page_info()

nserror nsgtk_window_position_page_info ( struct gui_window gw,
struct nsgtk_pi_window win 
)

position page_info appropriately

Parameters
gwThe gui window handle to position relative to
winThe page-info window to position

Definition at line 1709 of file window.c.

References nsgtk_toolbar_position_page_info(), and gui_window::toolbar.

Referenced by nsgtk_scaffolding_position_page_info().

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

◆ nsgtk_window_search_toggle()

nserror nsgtk_window_search_toggle ( struct gui_window gw)

toggle search visibility

Parameters
gwgui window handle

Definition at line 1648 of file window.c.

References nsgtk_search_toggle_visibility(), and gui_window::search.

Referenced by nsgtk_on_find_activate_menu().

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

◆ nsgtk_window_toolbar_show()

nserror nsgtk_window_toolbar_show ( struct nsgtk_scaffolding gs,
bool  show 
)

Windows associated with a scaffold will have their toolbar show state set.

Definition at line 1685 of file window.c.

References gui_window::next, NSERROR_OK, nsgtk_toolbar_show(), gui_window::scaffold, gui_window::toolbar, and window_list.

Referenced by nsgtk_on_toolbar_activate_menu().

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

◆ nsgtk_window_toolbar_update()

nserror nsgtk_window_toolbar_update ( void  )

every window will have its toolbar updated to reflect user settings

Definition at line 1698 of file window.c.

References gui_window::next, NSERROR_OK, nsgtk_toolbar_update(), gui_window::toolbar, and window_list.

Referenced by customisation_apply_clicked_cb().

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

◆ nsgtk_window_update_all()

nserror nsgtk_window_update_all ( void  )

Every window will have its tab, toolbar and drawing area updated.

The update will ensure the correct tab options are used, the toolbar size and style is changed and the browser window contents redrawn.

Definition at line 1671 of file window.c.

References browser_window_schedule_reformat(), gui_window::bw, gui_window::next, NSERROR_OK, nsgtk_scaffolding_notebook(), nsgtk_search_restyle(), nsgtk_tab_options_changed(), nsgtk_toolbar_restyle(), gui_window::scaffold, gui_window::search, gui_window::toolbar, and window_list.

Referenced by nsgtk_preferences_checkShowSingleTab_toggled(), nsgtk_preferences_comboButtonType_changed(), nsgtk_preferences_comboTabPosition_changed(), nsgtk_preferences_fontPreview_clicked(), and toggledebugging_button_clicked_cb().

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

Variable Documentation

◆ nsgtk_search_web_table

struct gui_search_web_table* nsgtk_search_web_table
extern

Definition at line 1595 of file window.c.

Referenced by main().

◆ nsgtk_window_table

struct gui_window_table* nsgtk_window_table
extern

Definition at line 1622 of file window.c.

Referenced by main().

◆ window_list

struct gui_window* window_list
extern