NetSurf
Data Structures | Enumerations | Functions | Variables
corewindow.h File Reference
#include "netsurf/core_window.h"
#include "amiga/gui.h"
#include "amiga/plotters.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  ami_corewindow
 Amiga core window state. More...
 

Enumerations

enum  {
  GID_CW_WIN = 0 , GID_CW_MAIN , GID_CW_DRAW , GID_CW_HSCROLL ,
  GID_CW_VSCROLL , GID_CW_HSCROLLLAYOUT , GID_CW_VSCROLLLAYOUT , GID_CW_LAST
}
 BOOPSI objects. More...
 

Functions

nserror ami_corewindow_init (struct ami_corewindow *ami_cw)
 initialise elements of Amiga core window. More...
 
nserror ami_corewindow_fini (struct ami_corewindow *ami_cw)
 finalise elements of Amiga core window. More...
 

Variables

struct core_window_tableamiga_core_window_table
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

BOOPSI objects.

Enumerator
GID_CW_WIN 
GID_CW_MAIN 
GID_CW_DRAW 
GID_CW_HSCROLL 
GID_CW_VSCROLL 
GID_CW_HSCROLLLAYOUT 
GID_CW_VSCROLLLAYOUT 
GID_CW_LAST 

Definition at line 33 of file corewindow.h.

Function Documentation

◆ ami_corewindow_fini()

nserror ami_corewindow_fini ( struct ami_corewindow ami_cw)

finalise elements of Amiga core window.

Parameters
ami_cwAn Amiga core window structure to finialise
Returns
NSERROR_OK on successful finalisation otherwise error code.

Definition at line 987 of file corewindow.c.

References ami_cw_redraw_cb(), ami_gui_win_list_remove(), ami_memory_itempool_delete, ami_plot_ra_free(), ami_schedule(), ami_utf8_free(), ami_corewindow::deferred_rects, ami_corewindow::deferred_rects_pool, FreeObjList(), ami_corewindow::gg, GID_CW_HSCROLL, GID_CW_VSCROLL, GID_CW_WIN, ami_corewindow::in_border_scroll, NSERROR_OK, ami_corewindow::objects, ami_corewindow::scroll_x_visible, ami_corewindow::scroll_y_visible, ami_corewindow::win, and ami_corewindow::wintitle.

Referenced by ami_cookies_destroy(), ami_history_global_destroy(), ami_history_local_destroy(), ami_hotlist_destroy(), and ami_pageinfo_destroy().

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

◆ ami_corewindow_init()

nserror ami_corewindow_init ( struct ami_corewindow ami_cw)

initialise elements of Amiga core window.

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

Parameters
ami_cwAn Amiga core window structure to initialise
Returns
NSERROR_OK on successful initialisation otherwise error code.

Definition at line 928 of file corewindow.c.

References ami_cw_table, ami_gui_win_list_add(), ami_memory_itempool_create, ami_plot_ra_alloc(), AMINS_COREWINDOW, BROWSER_MOUSE_HOVER, CORE_WINDOW_DRAG_NONE, ami_corewindow::deferred_rects, ami_corewindow::deferred_rects_pool, ami_corewindow::drag_status, ami_corewindow::dragging, ami_corewindow::gg, GID_CW_HSCROLL, GID_CW_VSCROLL, GID_CW_WIN, ami_corewindow::idcmp_hook, ami_corewindow::in_border_scroll, ami_corewindow::lastclick, ami_corewindow::mouse_state, NewObjList(), NSERROR_OK, ami_corewindow::objects, RefreshSetGadgetAttrs(), ami_corewindow::scroll_x_visible, ami_corewindow::scroll_y_visible, and ami_corewindow::win.

Referenced by ami_cookies_present(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().

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

Variable Documentation

◆ amiga_core_window_table

struct core_window_table* amiga_core_window_table
extern

Definition at line 925 of file corewindow.c.

Referenced by main().