NetSurf
window.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef NETSURF_GTK_WINDOW_H
20#define NETSURF_GTK_WINDOW_H 1
21
22struct nsgtk_pi_window;
23
26
27extern struct gui_window *window_list;
28
29/**
30 * get core browsing context from gui window handle
31 *
32 * \param gw gui window handle
33 */
35
36/**
37 * get containing nsgtk scaffolding handle from gui window handle
38 *
39 * \param gw gui window handle
40 */
42
43/**
44 * Every window will have its tab, toolbar and drawing area updated
45 *
46 * The update will ensure the correct tab options are used, the
47 * toolbar size and style is changed and the browser window contents
48 * redrawn.
49 */
51
52/**
53 * every window will have its toolbar updated to reflect user settings
54 */
56
57/**
58 * Windows associated with a scaffold will have their toolbar show state set
59 */
61
62/**
63 * update targets
64 *
65 * \param gw gui window handle
66 */
68
69/**
70 * destroy browsing context
71 *
72 * \param gw gui window handle
73 */
75
76
77/**
78 * toggle search visibility
79 *
80 * \param gw gui window handle
81 */
83
84/**
85 * get gtk layout from gui handle
86 *
87 * \param gw gui window handle
88 */
89GtkLayout *nsgtk_window_get_layout(struct gui_window *gw);
90
91
92/**
93 * activate the handler for a item in a toolbar of a gui window
94 *
95 * \param gw The gui window handle
96 * \param itemid The id of the item to activate
97 */
99
100/**
101 * position page_info appropriately
102 *
103 * \param gw The gui window handle to position relative to
104 * \param win The page-info window to position
105 */
107 struct nsgtk_pi_window *win);
108
109/**
110 * position local_history appropriately
111 *
112 * \param gw The gui window handle to position relative to
113 */
115
116#endif /* NETSURF_GTK_WINDOW_H */
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror nsgtk_window_search_toggle(struct gui_window *gw)
toggle search visibility
Definition: window.c:1648
nserror nsgtk_window_position_local_history(struct gui_window *gw)
position local_history appropriately
Definition: window.c:1716
int nsgtk_gui_window_update_targets(struct gui_window *gw)
update targets
struct gui_window_table * nsgtk_window_table
Definition: window.c:1622
GtkLayout * nsgtk_window_get_layout(struct gui_window *gw)
get gtk layout from gui handle
Definition: window.c:1640
struct gui_search_web_table * nsgtk_search_web_table
Definition: window.c:1595
void nsgtk_window_destroy_browser(struct gui_window *gw)
destroy browsing context
Definition: window.c:1663
struct browser_window * nsgtk_get_browser_window(struct gui_window *gw)
get core browsing context from gui window handle
Definition: window.c:1633
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
Definition: window.c:1656
nserror nsgtk_window_update_all(void)
Every window will have its tab, toolbar and drawing area updated.
Definition: window.c:1671
nserror nsgtk_window_position_page_info(struct gui_window *gw, struct nsgtk_pi_window *win)
position page_info appropriately
Definition: window.c:1709
nserror nsgtk_window_toolbar_show(struct nsgtk_scaffolding *gs, bool show)
Windows associated with a scaffold will have their toolbar show state set.
Definition: window.c:1685
struct nsgtk_scaffolding * nsgtk_get_scaffold(struct gui_window *gw)
get containing nsgtk scaffolding handle from gui window handle
Definition: window.c:1626
struct gui_window * window_list
Definition: gui.c:75
nserror nsgtk_window_toolbar_update(void)
every window will have its toolbar updated to reflect user settings
Definition: window.c:1698
Browser window data.
Graphical user interface browser web search function table.
Definition: searchweb.h:34
Graphical user interface window function table.
Definition: window.h:137
first entry in window list
Definition: gui.c:297
GTK certificate viewing window context.
Definition: page_info.c:47
Core scaffolding structure.
Definition: scaffolding.c:64
nsgtk_toolbar_button
Definition: toolbar_items.h:22