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...
 
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 39 of file corewindow.h.

Field Documentation

◆ content_height

int ro_corewindow::content_height

content height

Definition at line 53 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 50 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 56 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 67 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 78 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 89 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 47 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 98 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 115 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 106 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: