summaryrefslogtreecommitdiff
path: root/windows/window.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
commit8525c857da966580c57aa595ec44ba1c4fc2326a (patch)
tree952b61909ac17ad4666f82c005e4470ea20ff3f4 /windows/window.h
parenta487f7e611550b0058a780cf673480eb8de6f799 (diff)
downloadnetsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.gz
netsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.bz2
Clean up more windows frontend issues and split out more functionality
Diffstat (limited to 'windows/window.h')
-rw-r--r--windows/window.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/windows/window.h b/windows/window.h
index 3e0399859..72c6ec53b 100644
--- a/windows/window.h
+++ b/windows/window.h
@@ -19,6 +19,9 @@
#ifndef _NETSURF_WINDOWS_WINDOW_H_
#define _NETSURF_WINDOWS_WINDOW_H_
+/** The window operation function table for win32 */
+extern struct gui_window_table *win32_window_table;
+
#include "desktop/mouse.h"
struct browser_mouse {
@@ -79,10 +82,28 @@ struct gui_window {
*/
struct gui_window *nsws_get_gui_window(HWND hwnd);
+/**
+ * Cause a browser window to navigate to a url
+ *
+ * \param hwnd The win32 handle to the browser window or one of its decendants.
+ * \param url The URL to navigate to.
+ */
+bool nsws_window_go(HWND hwnd, const char *urltxt);
+
void win32_window_set_scroll(struct gui_window *w, int sx, int sy);
nserror nsws_create_main_class(HINSTANCE hinstance);
-extern struct gui_window_table *win32_window_table;
+/**
+ * Get the main win32 window handle from a gui window
+ */
+HWND gui_window_main_window(struct gui_window *);
+
+
+/**
+ * Get the localhistory win32 window handle from a gui window
+ */
+struct nsws_localhistory *gui_window_localhistory(struct gui_window *);
+
#endif /* _NETSURF_WINDOWS_WINDOW_H_ */