NetSurf
Data Fields
nsw32_corewindow Struct Reference

nsw32 core window state More...

#include <corewindow.h>

Data Fields

HWND hWnd
 window handle More...
 
int content_width
 content width More...
 
int content_height
 content height More...
 
const char * title
 window title More...
 
core_window_drag_status drag_status
 drag status set by core More...
 
nserror(* draw )(struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r)
 callback to draw on drawable area of nsw32 core window More...
 
nserror(* key )(struct nsw32_corewindow *nsw32_cw, uint32_t nskey)
 callback for keypress on nsw32 core window More...
 
nserror(* mouse )(struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y)
 callback for mouse event on nsw32 core window More...
 
nserror(* close )(struct nsw32_corewindow *nsw32_cw)
 callback for window close event More...
 

Detailed Description

nsw32 core window state

Definition at line 29 of file corewindow.h.

Field Documentation

◆ close

nserror(* nsw32_corewindow::close) (struct nsw32_corewindow *nsw32_cw)

callback for window close event

Parameters
nsw32_cwThe nsw32 core window structure.
Returns
NSERROR_OK on sucess otherwise apropriate error code.

Definition at line 82 of file corewindow.h.

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

◆ content_height

int nsw32_corewindow::content_height

content height

Definition at line 37 of file corewindow.h.

Referenced by nsw32_corewindow_init(), nsw32_cw_update_size(), and update_scrollbars().

◆ content_width

int nsw32_corewindow::content_width

content width

Definition at line 34 of file corewindow.h.

Referenced by nsw32_corewindow_init(), nsw32_cw_update_size(), and update_scrollbars().

◆ drag_status

core_window_drag_status nsw32_corewindow::drag_status

drag status set by core

Definition at line 43 of file corewindow.h.

Referenced by nsw32_corewindow_init(), and nsw32_cw_drag_status().

◆ draw

nserror(* nsw32_corewindow::draw) (struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r)

callback to draw on drawable area of nsw32 core window

Parameters
nsw32_cwThe nsw32 core window structure.
rThe rectangle of the window that needs updating.
Returns
NSERROR_OK on success otherwise apropriate error code

Definition at line 52 of file corewindow.h.

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

◆ hWnd

HWND nsw32_corewindow::hWnd

◆ key

nserror(* nsw32_corewindow::key) (struct nsw32_corewindow *nsw32_cw, uint32_t nskey)

callback for keypress on nsw32 core window

Parameters
nsw32_cwThe nsw32 core window structure.
nskeyThe netsurf key code.
Returns
NSERROR_OK if key processed, NSERROR_NOT_IMPLEMENTED if key not processed otherwise apropriate error code

Definition at line 63 of file corewindow.h.

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

◆ mouse

nserror(* nsw32_corewindow::mouse) (struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y)

callback for mouse event on nsw32 core window

Parameters
nsw32_cwThe nsw32 core window structure.
mouse_statemouse state
xlocation of event
ylocation of event
Returns
NSERROR_OK on sucess otherwise apropriate error code.

Definition at line 74 of file corewindow.h.

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

◆ title

const char* nsw32_corewindow::title

The documentation for this struct was generated from the following file: