NetSurf
Data Structures | Functions
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  fb_corewindow
 fb core window state More...
 

Functions

nserror fb_corewindow_init (fbtk_widget_t *parent, struct fb_corewindow *fb_cw)
 initialise elements of fb core window. More...
 
nserror fb_corewindow_fini (struct fb_corewindow *fb_cw)
 finalise elements of fb core window. More...
 

Function Documentation

◆ fb_corewindow_fini()

nserror fb_corewindow_fini ( struct fb_corewindow fb_cw)

finalise elements of fb core window.

Parameters
fb_cwA fb core window structure to initialise
Returns
NSERROR_OK on successful finalisation otherwise error code.

Definition at line 277 of file corewindow.c.

References NSERROR_OK.

Referenced by fb_local_history_destroy().

Here is the caller graph for this function:

◆ fb_corewindow_init()

nserror fb_corewindow_init ( fbtk_widget_t parent,
struct fb_corewindow fb_cw 
)

initialise elements of fb core window.

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

Parameters
fb_cwA fb core window structure to initialise
Returns
NSERROR_OK on successful initialisation otherwise error code.

Definition at line 205 of file corewindow.c.

References fb_corewindow::cb_table, CORE_WINDOW_DRAG_NONE, fb_corewindow::drag_status, fb_corewindow::drawable, fb_cw_cb_table, fb_cw_draw_event(), fb_cw_mouse_press_event(), FB_FRAME_COLOUR, FB_SCROLL_COLOUR, FBTK_CBT_CLICK, FBTK_CBT_REDRAW, fbtk_create_fill(), fbtk_create_hscroll(), fbtk_create_user(), fbtk_create_vscroll(), fbtk_create_window(), fbtk_get_height(), fbtk_get_width(), fbtk_set_handler(), fb_corewindow::hscroll, NSERROR_OK, nsoption_int, parent, fb_corewindow::vscroll, and fb_corewindow::wnd.

Referenced by fb_local_history_init().

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