NetSurf
|
Implementation of win32 local history interface. More...
#include <stdint.h>
#include <stdlib.h>
#include <windows.h>
#include "utils/log.h"
#include "utils/nsoption.h"
#include "netsurf/keypress.h"
#include "netsurf/plotters.h"
#include "desktop/local_history.h"
#include "windows/plot.h"
#include "windows/corewindow.h"
#include "windows/local_history.h"
Go to the source code of this file.
Data Structures | |
struct | nsw32_local_history_window |
Functions | |
static nserror | nsw32_local_history_key (struct nsw32_corewindow *nsw32_cw, uint32_t nskey) |
callback for keypress on local_history window More... | |
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 More... | |
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 More... | |
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. More... | |
nserror | nsw32_local_history_present (HWND hWndParent, struct browser_window *bw) |
make the local history window visible. More... | |
nserror | nsw32_local_history_hide (void) |
hide the local history window. More... | |
nserror | nsw32_local_history_finalise (void) |
Destroys the local history window and performs any other necessary cleanup actions. More... | |
Variables | |
static struct nsw32_local_history_window * | local_history_window = NULL |
Implementation of win32 local history interface.
Definition in file local_history.c.
|
static |
Definition at line 121 of file local_history.c.
References nsw32_corewindow::hWnd, NSERROR_OK, and ShowWindow.
Referenced by nsw32_local_history_init().
|
static |
callback on draw event for local_history window
nsw32_cw | The nsw32 core window structure. |
scrollx | The horizontal scroll offset. |
scrolly | The vertical scroll offset. |
r | The rectangle of the window that needs updating. |
Definition at line 100 of file local_history.c.
References redraw_context::interactive, local_history_redraw(), NSERROR_OK, nsw32_local_history_window::session, and win_plotters.
Referenced by nsw32_local_history_init().
nserror nsw32_local_history_finalise | ( | void | ) |
Destroys the local history window and performs any other necessary cleanup actions.
Definition at line 238 of file local_history.c.
References nsw32_local_history_window::core, nsw32_corewindow::hWnd, local_history_fini(), local_history_window, NSERROR_OK, nsw32_corewindow_fini(), and nsw32_local_history_window::session.
nserror nsw32_local_history_hide | ( | void | ) |
hide the local history window.
Definition at line 224 of file local_history.c.
References nsw32_local_history_window::core, nsw32_corewindow::hWnd, local_history_set(), local_history_window, NSERROR_OK, nsw32_local_history_window::session, and ShowWindow.
Referenced by nsws_drawable_mousedown(), nsws_window_drawable_event_callback(), nsws_window_event_callback(), and nsws_window_update_forward_back().
|
static |
Creates the window for the local_history tree.
Definition at line 134 of file local_history.c.
References nsw32_corewindow::close, nsw32_local_history_window::core, nsw32_corewindow::draw, nsw32_corewindow::key, local_history_init(), local_history_set(), nsw32_corewindow::mouse, NSERROR_NOMEM, NSERROR_OK, nsw32_corewindow_init(), nsw32_local_history_close(), nsw32_local_history_draw(), nsw32_local_history_key(), nsw32_local_history_mouse(), nsw32_local_history_window::session, and nsw32_corewindow::title.
Referenced by nsw32_local_history_present().
|
static |
callback for keypress on local_history window
nsw32_cw | The nsw32 core window structure. |
nskey | The netsurf key code |
Definition at line 55 of file local_history.c.
References local_history_keypress(), NSERROR_NOT_IMPLEMENTED, NSERROR_OK, and nsw32_local_history_window::session.
Referenced by nsw32_local_history_init().
|
static |
callback for mouse action on local_history window
nsw32_cw | The nsw32 core window structure. |
mouse_state | netsurf mouse state on event |
x | location of event |
y | location of event |
Definition at line 77 of file local_history.c.
References local_history_mouse_action(), NSERROR_OK, and nsw32_local_history_window::session.
Referenced by nsw32_local_history_init().
nserror nsw32_local_history_present | ( | HWND | hWndParent, |
struct browser_window * | bw | ||
) |
make the local history window visible.
Definition at line 182 of file local_history.c.
References nsw32_local_history_window::core, height, nsw32_corewindow::hWnd, local_history_get_size(), local_history_scroll_to_cursor(), local_history_window, NSERROR_OK, nsw32_local_history_init(), nsw32_local_history_window::session, and width.
Referenced by nsws_window_command().
|
static |
Definition at line 45 of file local_history.c.
Referenced by nsw32_local_history_finalise(), nsw32_local_history_hide(), and nsw32_local_history_present().