NetSurf
|
Amiga core window state. More...
#include <corewindow.h>
Data Fields | |
struct ami_generic_window | w |
struct Window * | win |
Object * | objects [GID_CW_LAST] |
struct Hook | idcmp_hook |
struct timeval | lastclick |
int | mouse_x_click |
int | mouse_y_click |
int | mouse_state |
bool | dragging |
int | drag_x_start |
int | drag_y_start |
bool | close_window |
APTR | deferred_rects_pool |
struct MinList * | deferred_rects |
bool | in_border_scroll |
keep track of the scrollbar type we're using More... | |
bool | scroll_x_visible |
bool | scroll_y_visible |
char * | wintitle |
window title, must be allocated wth ami_utf8 function More... | |
struct gui_globals * | gg |
stuff for our off-screen render bitmap More... | |
struct MinList * | shared_pens |
core_window_drag_status | drag_status |
drag status set by core More... | |
nserror(* | draw )(struct ami_corewindow *ami_cw, int x, int y, struct rect *r, struct redraw_context *ctx) |
callback to draw on drawable area of Amiga core window More... | |
nserror(* | key )(struct ami_corewindow *ami_cw, uint32_t nskey) |
callback for keypress on Amiga core window More... | |
nserror(* | mouse )(struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y) |
callback for mouse event on Amiga core window More... | |
BOOL(* | event )(struct ami_corewindow *ami_cw, ULONG result) |
callback for unknown events on Amiga core window eg. More... | |
nserror(* | drag_end )(struct ami_corewindow *ami_cw, int x, int y) |
callback for drag end on Amiga core window ie. More... | |
nserror(* | icon_drop )(struct ami_corewindow *ami_cw, struct nsurl *url, const char *title, int x, int y) |
callback for icon drop on Amiga core window ie. More... | |
void(* | close )(struct ami_corewindow *ami_cw) |
callback to close an Amiga core window More... | |
Amiga core window state.
Definition at line 47 of file corewindow.h.
void(* ami_corewindow::close) (struct ami_corewindow *ami_cw) |
callback to close an Amiga core window
ami_cw | The Amiga core window structure. |
Definition at line 164 of file corewindow.h.
Referenced by ami_cookies_present(), ami_cw_close(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().
bool ami_corewindow::close_window |
Definition at line 67 of file corewindow.h.
Referenced by ami_cw_event(), and HOOKF().
struct MinList* ami_corewindow::deferred_rects |
Definition at line 70 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), ami_cw_redraw(), and ami_cw_redraw_queue().
APTR ami_corewindow::deferred_rects_pool |
Definition at line 69 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), ami_cw_redraw(), and ami_cw_redraw_queue().
nserror(* ami_corewindow::drag_end) (struct ami_corewindow *ami_cw, int x, int y) |
callback for drag end on Amiga core window ie.
a drag from this window to a different window
ami_cw | The Amiga core window structure. |
x | mouse x position in screen co-ordinates |
y | mouse y position in screen co-ordinates |
Definition at line 143 of file corewindow.h.
Referenced by ami_cw_drag_end(), ami_history_global_present(), ami_history_local_present(), and ami_hotlist_present().
core_window_drag_status ami_corewindow::drag_status |
drag status set by core
Definition at line 85 of file corewindow.h.
Referenced by ami_corewindow_init(), ami_cw_drag_end(), ami_cw_drag_progress(), ami_cw_drag_start(), and ami_cw_drag_status().
int ami_corewindow::drag_x_start |
Definition at line 64 of file corewindow.h.
Referenced by ami_cw_drag_start(), ami_cw_event(), and ami_cw_mouse_moved().
int ami_corewindow::drag_y_start |
Definition at line 65 of file corewindow.h.
Referenced by ami_cw_drag_start(), ami_cw_event(), and ami_cw_mouse_moved().
bool ami_corewindow::dragging |
Definition at line 63 of file corewindow.h.
Referenced by ami_corewindow_init(), ami_cw_drag_end(), ami_cw_drag_progress(), and ami_cw_drag_start().
nserror(* ami_corewindow::draw) (struct ami_corewindow *ami_cw, int x, int y, struct rect *r, struct redraw_context *ctx) |
callback to draw on drawable area of Amiga core window
ami_cw | The Amiga core window structure. |
x | Plot origin (X) |
r | Plot origin (Y) |
r | The rectangle of the window that needs updating. |
ctx | Redraw context |
Definition at line 97 of file corewindow.h.
Referenced by ami_cookies_present(), ami_cw_redraw_rect(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().
BOOL(* ami_corewindow::event) (struct ami_corewindow *ami_cw, ULONG result) |
callback for unknown events on Amiga core window eg.
buttons in the ssl cert window (result & WMHI_CLASSMASK) gives the class of event (eg. WMHI_GADGETUP) (result & WMHI_GADGETMASK) gives the gadget ID (eg. GID_SSLCERT_ACCEPT)
ami_cw | The Amiga core window structure. |
result | event as returned by RA_HandleInput() |
Definition at line 132 of file corewindow.h.
Referenced by ami_cookies_present(), ami_cw_event(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().
struct gui_globals* ami_corewindow::gg |
stuff for our off-screen render bitmap
Definition at line 81 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), and ami_cw_redraw_rect().
nserror(* ami_corewindow::icon_drop) (struct ami_corewindow *ami_cw, struct nsurl *url, const char *title, int x, int y) |
callback for icon drop on Amiga core window ie.
a drag has ended above this window
ami_cw | The Amiga core window structure. |
url | url of dropped icon |
title | title of dropped icon |
x | mouse x position in screen co-ordinates |
y | mouse y position in screen co-ordinates |
Definition at line 157 of file corewindow.h.
Referenced by ami_history_global_drag_end(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_drag_end(), and ami_hotlist_present().
struct Hook ami_corewindow::idcmp_hook |
Definition at line 56 of file corewindow.h.
Referenced by ami_cookies_create_window(), ami_corewindow_init(), ami_history_global_create_window(), ami_history_local_create_window(), ami_hotlist_create_window(), and ami_pageinfo_create_window().
bool ami_corewindow::in_border_scroll |
keep track of the scrollbar type we're using
Definition at line 73 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), and ami_cw_toggle_scrollbar().
nserror(* ami_corewindow::key) (struct ami_corewindow *ami_cw, uint32_t nskey) |
callback for keypress on Amiga core window
ami_cw | The Amiga core window structure. |
nskey | The netsurf key code. |
Definition at line 109 of file corewindow.h.
Referenced by ami_cookies_present(), ami_cw_key(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().
struct timeval ami_corewindow::lastclick |
Definition at line 57 of file corewindow.h.
Referenced by ami_corewindow_init(), and ami_cw_event().
nserror(* ami_corewindow::mouse) (struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y) |
callback for mouse event on Amiga core window
ami_cw | The Amiga core window structure. |
mouse_state | mouse state |
x | location of event |
y | location of event |
Definition at line 120 of file corewindow.h.
Referenced by ami_cookies_present(), ami_cw_event(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), and ami_pageinfo_open().
int ami_corewindow::mouse_state |
Definition at line 61 of file corewindow.h.
Referenced by ami_corewindow_init(), and ami_cw_event().
int ami_corewindow::mouse_x_click |
Definition at line 59 of file corewindow.h.
Referenced by ami_cw_event(), and ami_cw_mouse_moved().
int ami_corewindow::mouse_y_click |
Definition at line 60 of file corewindow.h.
Referenced by ami_cw_event(), and ami_cw_mouse_moved().
Object* ami_corewindow::objects[GID_CW_LAST] |
Definition at line 54 of file corewindow.h.
Referenced by ami_cookies_create_window(), ami_cookies_menu_free(), ami_cookies_present(), ami_corewindow_fini(), ami_corewindow_init(), ami_cw_event(), ami_cw_mouse_pos(), ami_cw_newsize(), ami_cw_redraw(), ami_cw_redraw_rect(), ami_cw_scroller_top(), ami_cw_set_scroll(), ami_cw_toggle_scrollbar(), ami_cw_update_size(), ami_cw_window_size(), ami_history_global_create_window(), ami_history_global_menu_free(), ami_history_global_present(), ami_history_local_create_window(), ami_history_local_mouse(), ami_history_local_present(), ami_hotlist_create_window(), ami_hotlist_menu_free(), ami_hotlist_present(), ami_pageinfo_create_window(), and ami_pageinfo_open().
bool ami_corewindow::scroll_x_visible |
Definition at line 74 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), ami_cw_scroller_top(), ami_cw_set_scroll(), and ami_cw_toggle_scrollbar().
bool ami_corewindow::scroll_y_visible |
Definition at line 75 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), ami_cw_scroller_top(), ami_cw_set_scroll(), and ami_cw_toggle_scrollbar().
struct MinList* ami_corewindow::shared_pens |
Definition at line 82 of file corewindow.h.
struct ami_generic_window ami_corewindow::w |
Definition at line 52 of file corewindow.h.
Referenced by ami_cw_close(), and ami_cw_event().
struct Window* ami_corewindow::win |
Definition at line 53 of file corewindow.h.
Referenced by ami_corewindow_fini(), ami_corewindow_init(), ami_cw_drag_end(), ami_cw_drag_start(), ami_cw_mouse_pos(), ami_cw_newsize(), ami_cw_redraw_rect(), ami_cw_set_scroll(), ami_cw_simplerefresh(), ami_cw_toggle_scrollbar(), ami_cw_update_size(), ami_history_local_mouse(), and HOOKF().
char* ami_corewindow::wintitle |
window title, must be allocated wth ami_utf8 function
Definition at line 78 of file corewindow.h.
Referenced by ami_cookies_create_window(), ami_cookies_present(), ami_corewindow_fini(), ami_history_global_create_window(), ami_history_global_present(), ami_history_local_create_window(), ami_history_local_present(), ami_hotlist_create_window(), ami_hotlist_present(), and ami_pageinfo_open().