26#ifndef NETSURF_WINDOW_H
27#define NETSURF_WINDOW_H
Browser window console stuff.
browser_window_console_source
Sources of messages which end up in the browser window console.
browser_window_console_flags
Flags for browser window console logging.
nserror
Enumeration of error codes.
gui_window_create_flags
Window creation control flags.
@ GW_CREATE_NONE
New window.
@ GW_CREATE_TAB
Create tab in same window as existing.
@ GW_CREATE_FOREGROUND
Request this window/tab is foregrounded.
@ GW_CREATE_FOCUS_LOCATION
@ GW_CREATE_CLONE
Clone existing window.
@ GUI_SAVE_HISTORY_EXPORT_HTML
@ GUI_SAVE_CLIPBOARD_CONTENTS
@ GUI_SAVE_HOTLIST_EXPORT_HTML
@ GUI_SAVE_TEXT_SELECTION
gui_window_event
Window events.
@ GW_EVENT_NONE
An empty event should never occur.
@ GW_EVENT_SCROLL_START
Starts drag scrolling of a browser window.
@ GW_EVENT_PAGE_INFO_CHANGE
Page status has changed and so the padlock should be updated.
@ GW_EVENT_REMOVE_CARET
Remove the caret, if present.
@ GW_EVENT_NEW_CONTENT
Called when the gui_window has new content.
@ GW_EVENT_STOP_THROBBER
stop the navigation throbber.
@ GW_EVENT_UPDATE_EXTENT
Update the extent of the inside of a browser window to that of the current content.
@ GW_EVENT_START_SELECTION
selection started
@ GW_EVENT_START_THROBBER
start the navigation throbber.
struct nsurl nsurl
NetSurf URL object.
struct browser_window * bw
Graphical user interface window function table.
nserror(* get_dimensions)(struct gui_window *gw, int *width, int *height)
Find the current dimensions of a browser window's content area.
void(* set_title)(struct gui_window *gw, const char *title)
Set the title of a window.
nserror(* set_scroll)(struct gui_window *gw, const struct rect *rect)
Set the scroll position of a browser window.
bool(* drag_start)(struct gui_window *g, gui_drag_type type, const struct rect *rect)
start a drag operation within a window
void(* set_pointer)(struct gui_window *g, enum gui_pointer_shape shape)
Change mouse pointer shape.
nserror(* save_link)(struct gui_window *g, struct nsurl *url, const char *title)
save link operation
void(* set_icon)(struct gui_window *gw, struct hlcache_handle *icon)
Set a favicon for a gui window.
nserror(* invalidate)(struct gui_window *gw, const struct rect *rect)
Invalidate an area of a window.
nserror(* event)(struct gui_window *gw, enum gui_window_event event)
Miscellaneous event occurred for a window.
void(* destroy)(struct gui_window *gw)
Destroy previously created gui window.
bool(* get_scroll)(struct gui_window *gw, int *sx, int *sy)
Get the scroll position of a browser window.
void(* create_form_select_menu)(struct gui_window *gw, struct form_control *control)
create a form select menu
void(* drag_save_object)(struct gui_window *gw, struct hlcache_handle *c, gui_save_type type)
object dragged to window
void(* console_log)(struct gui_window *gw, browser_window_console_source src, const char *msg, size_t msglen, browser_window_console_flags flags)
console logging happening.
nserror(* set_url)(struct gui_window *gw, struct nsurl *url)
Set the navigation url.
void(* set_status)(struct gui_window *g, const char *text)
Set the status bar message of a browser window.
void(* drag_save_selection)(struct gui_window *gw, const char *selection)
drag selection save
void(* place_caret)(struct gui_window *g, int x, int y, int height, const struct rect *clip)
Place the caret in a browser window.
void(* file_gadget_open)(struct gui_window *gw, struct hlcache_handle *hl, struct form_control *gadget)
Called when file chooser gadget is activated.
first entry in window list
struct rect rect
Rectangle coordinates.
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.