NetSurf
|
Implementation of win32 global 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/global_history.h"
#include "windows/plot.h"
#include "windows/corewindow.h"
#include "windows/global_history.h"
Go to the source code of this file.
Data Structures | |
struct | nsw32_global_history_window |
Functions | |
static nserror | nsw32_global_history_key (struct nsw32_corewindow *nsw32_cw, uint32_t nskey) |
callback for keypress on global_history window More... | |
static nserror | nsw32_global_history_mouse (struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y) |
callback for mouse action on global_history window More... | |
static nserror | nsw32_global_history_draw (struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r) |
callback on draw event for global_history window More... | |
static nserror | nsw32_global_history_close (struct nsw32_corewindow *nsw32_cw) |
static nserror | nsw32_global_history_init (HINSTANCE hInstance) |
Creates the window for the global_history tree. More... | |
nserror | nsw32_global_history_present (HINSTANCE hInstance) |
make the global history window visible. More... | |
nserror | nsw32_global_history_finalise (void) |
Destroys the global history window and performs any other necessary cleanup actions. More... | |
Variables | |
static struct nsw32_global_history_window * | global_history_window = NULL |
Implementation of win32 global history interface.
Definition in file global_history.c.
|
static |
Definition at line 108 of file global_history.c.
References nsw32_corewindow::hWnd, NSERROR_OK, and ShowWindow.
Referenced by nsw32_global_history_init().
|
static |
callback on draw event for global_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 90 of file global_history.c.
References global_history_redraw(), redraw_context::interactive, NSERROR_OK, and win_plotters.
Referenced by nsw32_global_history_init().
nserror nsw32_global_history_finalise | ( | void | ) |
Destroys the global history window and performs any other necessary cleanup actions.
Definition at line 174 of file global_history.c.
References nsw32_global_history_window::core, global_history_fini(), global_history_window, nsw32_corewindow::hWnd, NSERROR_OK, and nsw32_corewindow_fini().
|
static |
Creates the window for the global_history tree.
Definition at line 120 of file global_history.c.
References nsw32_corewindow::close, nsw32_global_history_window::core, nsw32_corewindow::draw, global_history_init(), global_history_window, nsw32_corewindow::key, nsw32_corewindow::mouse, NSERROR_NOMEM, NSERROR_OK, nsw32_corewindow_init(), nsw32_global_history_close(), nsw32_global_history_draw(), nsw32_global_history_key(), nsw32_global_history_mouse(), and nsw32_corewindow::title.
Referenced by nsw32_global_history_present().
|
static |
callback for keypress on global_history window
nsw32_cw | The nsw32 core window structure. |
nskey | The netsurf key code |
Definition at line 53 of file global_history.c.
References global_history_keypress(), NSERROR_NOT_IMPLEMENTED, and NSERROR_OK.
Referenced by nsw32_global_history_init().
|
static |
callback for mouse action on global_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 71 of file global_history.c.
References global_history_mouse_action(), and NSERROR_OK.
Referenced by nsw32_global_history_init().
nserror nsw32_global_history_present | ( | HINSTANCE | hinstance | ) |
make the global history window visible.
Definition at line 162 of file global_history.c.
References nsw32_global_history_window::core, global_history_window, nsw32_corewindow::hWnd, NSERROR_OK, nsw32_global_history_init(), and ShowWindow.
Referenced by nsws_window_command().
|
static |
Definition at line 43 of file global_history.c.
Referenced by nsw32_global_history_finalise(), nsw32_global_history_init(), and nsw32_global_history_present().