NetSurf
Data Fields
ro_corewindow Struct Reference

ro core window state More...

#include <corewindow.h>

Collaboration diagram for ro_corewindow:
[legend]

Data Fields

wimp_w wh
 window handle More...
 
struct toolbartoolbar
 toolbar More...
 
int origin_y
 content plot origin y relative to window More...
 
int content_width
 content width More...
 
int content_height
 content height More...
 
core_window_drag_status drag_status
 drag status set by core More...
 
struct core_window_callback_tablecb_table
 table of callbacks for core window operations More...
 
nserror(* draw )(struct ro_corewindow *ro_cw, int originx, int originy, struct rect *r)
 callback to draw on drawable area of ro core window More...
 
nserror(* key )(struct ro_corewindow *ro_cw, uint32_t nskey)
 callback for keypress on ro core window More...
 
nserror(* mouse )(struct ro_corewindow *ro_cw, browser_mouse_state mouse_state, int x, int y)
 callback for mouse event on ro core window More...
 
nserror(* toolbar_click )(struct ro_corewindow *ro_cw, button_bar_action action)
 callback for clicks in ro core window toolbar. More...
 
nserror(* toolbar_update )(struct ro_corewindow *ro_cw)
 callback for updating state of buttons in ro core window toolbar. More...
 
nserror(* toolbar_save )(struct ro_corewindow *ro_cw, char *config)
 callback for saving ro core window toolbar state. More...
 

Detailed Description

ro core window state

Definition at line 37 of file corewindow.h.

Field Documentation

◆ cb_table

struct core_window_callback_table* ro_corewindow::cb_table

table of callbacks for core window operations

Definition at line 57 of file corewindow.h.

Referenced by ro_cookie_init(), ro_corewindow_init(), ro_global_history_init(), ro_hotlist_init(), ro_local_history_init(), and ro_pageinfo_init().

◆ content_height

int ro_corewindow::content_height

content height

Definition at line 51 of file corewindow.h.

Referenced by ro_corewindow_init(), ro_cw_update_size(), and update_scrollbars().

◆ content_width

int ro_corewindow::content_width

content width

Definition at line 48 of file corewindow.h.

Referenced by ro_corewindow_init(), ro_cw_update_size(), and update_scrollbars().

◆ drag_status

core_window_drag_status ro_corewindow::drag_status

drag status set by core

Definition at line 54 of file corewindow.h.

Referenced by ro_corewindow_init(), ro_cw_drag_start(), ro_cw_drag_status(), ro_cw_mouse_at(), and ro_cw_mouse_click().

◆ draw

nserror(* ro_corewindow::draw) (struct ro_corewindow *ro_cw, int originx, int originy, struct rect *r)

callback to draw on drawable area of ro core window

Parameters
ro_cwThe riscos core window structure.
originxThe risc os plotter x origin.
originyThe risc os plotter y origin.
rThe rectangle of the window that needs updating.
Returns
NSERROR_OK on success otherwise apropriate error code

Definition at line 68 of file corewindow.h.

Referenced by ro_cookie_init(), ro_cw_redraw(), ro_global_history_init(), ro_hotlist_init(), ro_local_history_init(), and ro_pageinfo_init().

◆ key

nserror(* ro_corewindow::key) (struct ro_corewindow *ro_cw, uint32_t nskey)

callback for keypress on ro core window

Parameters
ro_cwThe ro 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 79 of file corewindow.h.

Referenced by ro_cookie_init(), ro_cw_keypress(), ro_global_history_init(), ro_hotlist_init(), ro_local_history_init(), and ro_pageinfo_init().

◆ mouse

nserror(* ro_corewindow::mouse) (struct ro_corewindow *ro_cw, browser_mouse_state mouse_state, int x, int y)

callback for mouse event on ro core window

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

Definition at line 90 of file corewindow.h.

Referenced by ro_cookie_init(), ro_cw_mouse_at(), ro_cw_mouse_click(), ro_cw_pointer_leaving(), ro_global_history_init(), ro_hotlist_init(), ro_local_history_init(), and ro_pageinfo_init().

◆ origin_y

int ro_corewindow::origin_y

content plot origin y relative to window

Definition at line 45 of file corewindow.h.

Referenced by cw_tb_size(), ro_corewindow_init(), ro_cw_invalidate(), ro_cw_mouse_at(), ro_cw_mouse_click(), ro_cw_redraw(), ro_cw_scroll(), and update_scrollbars().

◆ toolbar

struct toolbar* ro_corewindow::toolbar

◆ toolbar_click

nserror(* ro_corewindow::toolbar_click) (struct ro_corewindow *ro_cw, button_bar_action action)

callback for clicks in ro core window toolbar.

Parameters
ro_cwThe ro core window structure.
actionThe button bar action.
Returns
NSERROR_OK if config saved, otherwise apropriate error code

Definition at line 99 of file corewindow.h.

Referenced by cw_tb_click(), ro_cookie_init(), ro_corewindow_init(), ro_global_history_init(), and ro_hotlist_init().

◆ toolbar_save

nserror(* ro_corewindow::toolbar_save) (struct ro_corewindow *ro_cw, char *config)

callback for saving ro core window toolbar state.

Parameters
ro_cwThe ro core window structure.
configThe new toolbar configuration.
Returns
NSERROR_OK if config saved, otherwise apropriate error code

Definition at line 116 of file corewindow.h.

Referenced by cw_tb_save(), ro_cookie_init(), ro_corewindow_init(), ro_global_history_init(), and ro_hotlist_init().

◆ toolbar_update

nserror(* ro_corewindow::toolbar_update) (struct ro_corewindow *ro_cw)

callback for updating state of buttons in ro core window toolbar.

Parameters
ro_cwThe ro core window structure.
Returns
NSERROR_OK if config saved, otherwise apropriate error code

Definition at line 107 of file corewindow.h.

Referenced by cw_tb_click(), cw_tb_update(), ro_cookie_init(), ro_corewindow_init(), ro_cw_keypress(), ro_cw_mouse_at(), ro_cw_mouse_click(), ro_global_history_init(), and ro_hotlist_init().

◆ wh

wimp_w ro_corewindow::wh

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