diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-01 17:22:17 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-01 19:51:19 +0100 |
commit | 57427620704c707fa5d50eb6f01a5c4654708c4c (patch) | |
tree | db046ce7188be5133fbbaf4da7da7e167858a601 /include/netsurf | |
parent | f4f67698eb6eb92a8ac606f771401c0c480d0ad5 (diff) | |
download | netsurf-57427620704c707fa5d50eb6f01a5c4654708c4c.tar.gz netsurf-57427620704c707fa5d50eb6f01a5c4654708c4c.tar.bz2 |
split browser and browser_window operations
Diffstat (limited to 'include/netsurf')
-rw-r--r-- | include/netsurf/browser.h | 42 | ||||
-rw-r--r-- | include/netsurf/browser_window.h | 17 |
2 files changed, 44 insertions, 15 deletions
diff --git a/include/netsurf/browser.h b/include/netsurf/browser.h new file mode 100644 index 000000000..dfe8eb3df --- /dev/null +++ b/include/netsurf/browser.h @@ -0,0 +1,42 @@ +/* + * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> + * Copyright 2006 James Bursa <bursa@users.sourceforge.net> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** + * \file + * Browser interfaces. + */ + +#ifndef NETSURF_BROWSER_H_ +#define NETSURF_BROWSER_H_ + +/** + * Set the DPI of the browser. + * + * \param dpi The DPI to set. + */ +nserror browser_set_dpi(int dpi); + +/** + * Get the browser DPI. + * + * \return The DPI in use. + */ +int browser_get_dpi(void); + +#endif diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h index e701aa3a3..8b5f56c3d 100644 --- a/include/netsurf/browser_window.h +++ b/include/netsurf/browser_window.h @@ -22,8 +22,8 @@ * Browser window creation and manipulation interface. */ -#ifndef _NETSURF_BROWSER_WINDOW_H_ -#define _NETSURF_BROWSER_WINDOW_H_ +#ifndef NETSURF_BROWSER_WINDOW_H_ +#define NETSURF_BROWSER_WINDOW_H_ #include <stdbool.h> #include <stdio.h> @@ -666,19 +666,6 @@ bool browser_window_is_frameset(struct browser_window *bw); nserror browser_window_get_scrollbar_type(struct browser_window *bw, browser_scrolling *h, browser_scrolling *v); -/** - * Set the DPI of the browser. - * - * \param dpi The DPI to set. - */ -nserror browser_set_dpi(int dpi); - -/** - * Get the browser DPI. - * - * \return The DPI in use. - */ -int browser_get_dpi(void); /** * Dump debug info concerning the browser window's contents to file |