NetSurf
Data Structures | Functions | Variables
corewindow.h File Reference
#include "netsurf/core_window.h"
Include dependency graph for corewindow.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nsw32_corewindow
 nsw32 core window state More...
 

Functions

nserror nsw32_corewindow_init (HINSTANCE hInstance, HWND hWndParent, struct nsw32_corewindow *nsw32_cw)
 initialise elements of nsw32 core window. More...
 
nserror nsw32_corewindow_fini (struct nsw32_corewindow *nsw32_cw)
 finalise elements of nsw32 core window. More...
 
nserror nsw32_create_corewindow_class (HINSTANCE hInstance)
 

Variables

struct core_window_tablewin32_core_window_table
 

Function Documentation

◆ nsw32_corewindow_fini()

nserror nsw32_corewindow_fini ( struct nsw32_corewindow nsw32_cw)

finalise elements of nsw32 core window.

Parameters
nsw32_cwA nsw32 core window structure to initialise
Returns
NSERROR_OK on successful finalisation otherwise error code.

Definition at line 577 of file corewindow.c.

References NSERROR_OK.

Referenced by nsw32_cookies_finalise(), nsw32_global_history_finalise(), nsw32_hotlist_finalise(), and nsw32_local_history_finalise().

Here is the caller graph for this function:

◆ nsw32_corewindow_init()

nserror nsw32_corewindow_init ( HINSTANCE  hInstance,
HWND  hWndParent,
struct nsw32_corewindow nsw32_cw 
)

initialise elements of nsw32 core window.

As a pre-requisite the draw, key and mouse callbacks must be defined

Parameters
hInstanceThe instance to create the core window in
hWndParentparent window handle may be NULL for top level window.
nsw32_cwA nsw32 core window structure to initialise
Returns
NSERROR_OK on successful initialisation otherwise error code.

Definition at line 519 of file corewindow.c.

References nsw32_corewindow::content_height, nsw32_corewindow::content_width, CORE_WINDOW_DRAG_NONE, nsw32_corewindow::drag_status, nsw32_corewindow::hWnd, NSERROR_NOMEM, NSERROR_OK, NSLOG, nsw32_corewindow::title, and windowclassname_corewindow.

Referenced by nsw32_cookie_init(), nsw32_global_history_init(), nsw32_hotlist_init(), and nsw32_local_history_init().

Here is the caller graph for this function:

◆ nsw32_create_corewindow_class()

nserror nsw32_create_corewindow_class ( HINSTANCE  hInstance)

Definition at line 584 of file corewindow.c.

References NSERROR_INIT_FAILED, NSERROR_OK, nsw32_window_corewindow_event_callback(), win_perror(), and windowclassname_corewindow.

Referenced by WinMain().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ win32_core_window_table

struct core_window_table* win32_core_window_table
extern

Definition at line 515 of file corewindow.c.

Referenced by WinMain().