108 .background_images =
true,
141 if ((*win_out) != NULL) {
146 ncwin = calloc(1,
sizeof(*ncwin));
151 ncwin->
core.
title =
"NetSurf Local History";
190 hInstance = (HINSTANCE)GetWindowLongPtr(hWndParent, GWLP_HINSTANCE);
194 GetWindowRect(hWndParent, &parentr);
204 if ((parentr.right - parentr.left - margin) <
width) {
205 width = parentr.right - parentr.left - margin;
207 if ((parentr.bottom - parentr.top - margin) <
height) {
208 height = parentr.bottom - parentr.top - margin;
212 parentr.left + (margin/2),
213 parentr.top + (margin/2),
nserror local_history_redraw(struct local_history_session *session, int x, int y, struct rect *clip, const struct redraw_context *ctx)
Redraw the local history.
nserror local_history_scroll_to_cursor(struct local_history_session *session)
Scroll the local history window to ensure the current cursor is shown.
nserror local_history_get_size(struct local_history_session *session, int *width, int *height)
get size of local history content area.
nserror local_history_set(struct local_history_session *session, struct browser_window *bw)
Change the browser window to draw local history for.
nserror local_history_fini(struct local_history_session *session)
Finalise the local history.
bool local_history_keypress(struct local_history_session *session, uint32_t key)
Key press handling.
nserror local_history_init(void *core_window_handle, struct browser_window *bw, struct local_history_session **session)
Initialise the local history.
nserror local_history_mouse_action(struct local_history_session *session, enum browser_mouse_state mouse, int x, int y)
Handles all kinds of mouse action.
nserror
Enumeration of error codes.
@ NSERROR_NOT_IMPLEMENTED
Functionality is not implemented.
@ NSERROR_NOMEM
Memory exhaustion.
static nserror nsw32_local_history_close(struct nsw32_corewindow *nsw32_cw)
static nserror nsw32_local_history_init(HINSTANCE hInstance, struct browser_window *bw, struct nsw32_local_history_window **win_out)
Creates the window for the local_history tree.
static nserror nsw32_local_history_mouse(struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse action on local_history window
static nserror nsw32_local_history_key(struct nsw32_corewindow *nsw32_cw, uint32_t nskey)
callback for keypress on local_history window
nserror nsw32_local_history_hide(void)
hide the local history window.
static nserror nsw32_local_history_draw(struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r)
callback on draw event for local_history window
static struct nsw32_local_history_window * local_history_window
nserror nsw32_local_history_present(HWND hWndParent, struct browser_window *bw)
make the local history window visible.
nserror nsw32_local_history_finalise(void)
Destroys the local history window and performs any other necessary cleanup actions.
Interface to win32 local history manager using nsw32 core window.
browser_mouse_state
Mouse state: 1 is primary mouse button.
Target independent plotting interface.
Interface to key press operations.
local history viewer context
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
nserror(* mouse)(struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on nsw32 core window
nserror(* draw)(struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r)
callback to draw on drawable area of nsw32 core window
struct local_history_session * session
struct nsw32_corewindow core
bool interactive
Redraw to show interactive features.
Option reading and saving interface.
nserror nsw32_corewindow_init(HINSTANCE hInstance, HWND hWndParent, struct nsw32_corewindow *nsw32_cw)
initialise elements of nsw32 core window.
nserror nsw32_corewindow_fini(struct nsw32_corewindow *nsw32_cw)
finalise elements of nsw32 core window.
const struct plotter_table win_plotters
win32 API plot operation table