NetSurf
|
#include "netsurf/mouse.h"
Go to the source code of this file.
Data Structures | |
struct | browser_mouse |
struct | gui_window |
first entry in window list More... | |
Functions | |
struct gui_window * | nsws_get_gui_window (HWND hwnd) |
Obtain gui window structure from window handle. More... | |
bool | nsws_window_go (HWND hwnd, const char *urltxt) |
Cause a browser window to navigate to a url. More... | |
nserror | win32_window_set_scroll (struct gui_window *gw, const struct rect *rect) |
Set the scroll position of a win32 browser window. More... | |
nserror | nsws_create_main_class (HINSTANCE hinstance) |
Create the main browser window class. More... | |
HWND | gui_window_main_window (struct gui_window *gw) |
Get the main win32 window handle from a gui window. More... | |
struct nsws_localhistory * | gui_window_localhistory (struct gui_window *) |
Get the localhistory win32 window handle from a gui window. More... | |
Variables | |
struct gui_window_table * | win32_window_table |
The window operation function table for win32. More... | |
struct nsws_localhistory * gui_window_localhistory | ( | struct gui_window * | ) |
Get the localhistory win32 window handle from a gui window.
HWND gui_window_main_window | ( | struct gui_window * | gw | ) |
Get the main win32 window handle from a gui window.
Definition at line 2112 of file window.c.
References gui_window::main.
Referenced by nsws_download_window_up().
nserror nsws_create_main_class | ( | HINSTANCE | hinstance | ) |
Create the main browser window class.
hinstance | The application instance |
Definition at line 2083 of file window.c.
References IDR_NETSURF_ICON, NSERROR_INIT_FAILED, NSERROR_OK, nsws_window_event_callback(), win_perror(), and windowclassname_main.
Referenced by WinMain().
struct gui_window * nsws_get_gui_window | ( | HWND | hwnd | ) |
Obtain gui window structure from window handle.
hwnd | The window handle. |
Definition at line 1925 of file window.c.
Referenced by nsws_window_drawable_event_callback(), nsws_window_event_callback(), nsws_window_go(), nsws_window_toolbar_callback(), and nsws_window_urlbar_callback().
bool nsws_window_go | ( | HWND | hwnd, |
const char * | urltxt | ||
) |
Cause a browser window to navigate to a url.
hwnd | The win32 handle to the browser window or one of its decendants. |
urltxt | The URL to navigate to. |
Definition at line 1954 of file window.c.
References browser_window_navigate(), gui_window::bw, BW_NAVIGATE_HISTORY, NSERROR_OK, nsurl_create(), nsurl_unref(), nsws_get_gui_window(), gui_window::url, and win32_report_nserror().
Referenced by nsws_about_event_callback(), and nsws_window_command().
nserror win32_window_set_scroll | ( | struct gui_window * | gw, |
const struct rect * | rect | ||
) |
Set the scroll position of a win32 browser window.
Scrolls the viewport to ensure the specified rectangle of the content is shown. The win32 implementation scrolls the contents so the specified point in the content is at the top of the viewport.
gw | The win32 gui window to scroll. |
rect | The rectangle to ensure is shown. |
Definition at line 1983 of file window.c.
References browser_window_get_extents(), gui_window::bw, gui_window::drawingarea, gui_window::height, height, max, min, NSERROR_BAD_PARAMETER, NSERROR_OK, NSLOG, gui_window::redraw, gui_window::requestscrollx, gui_window::requestscrolly, gui_window::scrollx, gui_window::scrolly, gui_window::width, width, point_s::x, rect::x0, point_s::y, and rect::y0.
Referenced by nsws_drawable_hscroll(), nsws_drawable_vscroll(), and win32_window_update_extent().
|
extern |