NetSurf
browser.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 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_MONKEY_BROWSER_H
20#define NETSURF_MONKEY_BROWSER_H
21
22struct hlcache_handle;
23
26
27struct gui_window {
30
31 uint32_t win_num;
32 struct browser_window *bw;
33
35 int scrollx, scrolly;
36
37 char *host; /* Ignore this, it's in case RING*() gets debugging for fetchers */
38
39};
40
44
45void monkey_window_handle_command(int argc, char **argv);
47
48nserror monkey_warn_user(const char *warning, const char *detail);
49
50#endif /* NETSURF_MONKEY_BROWSER_H */
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror monkey_warn_user(const char *warning, const char *detail)
Definition: browser.c:44
void monkey_kill_browser_windows(void)
Definition: browser.c:66
struct gui_window_table * monkey_window_table
Definition: browser.c:794
struct gui_window * monkey_find_window_by_num(uint32_t win_num)
Definition: browser.c:51
void monkey_window_handle_command(int argc, char **argv)
Definition: browser.c:701
struct gui_window * monkey_find_window_by_content(struct hlcache_handle *content)
struct gui_download_table * monkey_download_table
Definition: download.c:95
void monkey_window_process_reformats(void)
Browser window data.
Content which corresponds to a single URL.
function table for download windows.
Definition: download.h:34
Graphical user interface window function table.
Definition: window.h:137
first entry in window list
Definition: gui.c:296
uint32_t win_num
Definition: browser.h:31
char * host
Definition: browser.h:37
int height
height of drawing area
Definition: browser.h:34
int width
width of window
Definition: browser.h:34
struct gui_window * r_next
Definition: browser.h:28
int scrollx
current scroll location
Definition: gui.c:305
struct gui_window * r_prev
Definition: browser.h:29
int scrolly
current scroll location
Definition: gui.c:306
struct browser_window * bw
The 'content' window that is rendered in the gui_window.
Definition: gui.c:314
High-level cache handle.
Definition: hlcache.c:66