19#ifndef NETSURF_DESKTOP_LOCAL_HISTORY_H
20#define NETSURF_DESKTOP_LOCAL_HISTORY_H
51 void *core_window_handle,
nserror local_history_init(struct core_window_callback_table *cw_t, void *core_window_handle, struct browser_window *bw, struct local_history_session **session)
Initialise the local history.
nserror local_history_get_url(struct local_history_session *session, int x, int y, struct nsurl **url_out)
get url of entry at position in local history content area.
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_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.
static struct core_window_callback_table cw_t
Declare Core Window Callbacks:
Core mouse and pointer states.
browser_mouse_state
Mouse state.
struct nsurl nsurl
NetSurf URL object.
struct browser_window * bw
Callbacks to achieve various core window functionality.
local history viewer context
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.