19#ifndef NETSURF_WINDOWS_COREWINDOW_H
20#define NETSURF_WINDOWS_COREWINDOW_H
Interface to core window handling.
core_window_drag_status
drag status passed to drag_status callback
nserror
Enumeration of error codes.
browser_mouse_state
Mouse state: 1 is primary mouse button.
Core user interface window function table.
nserror(* close)(struct nsw32_corewindow *nsw32_cw)
callback for window close event
const char * title
window title
nserror(* key)(struct nsw32_corewindow *nsw32_cw, uint32_t nskey)
callback for keypress on nsw32 core window
core_window_drag_status drag_status
drag status set by core
nserror(* mouse)(struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on nsw32 core window
int content_width
content width
int content_height
content height
nserror(* draw)(struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r)
callback to draw on drawable area of nsw32 core window
nserror nsw32_corewindow_init(HINSTANCE hInstance, HWND hWndParent, struct nsw32_corewindow *nsw32_cw)
initialise elements of nsw32 core window.
nserror nsw32_create_corewindow_class(HINSTANCE hInstance)
nserror nsw32_corewindow_fini(struct nsw32_corewindow *nsw32_cw)
finalise elements of nsw32 core window.
struct core_window_table * win32_core_window_table