27#include <proto/intuition.h>
29#include <classes/window.h>
30#include <gadgets/layout.h>
31#include <gadgets/scroller.h>
32#include <gadgets/space.h>
33#include <images/label.h>
35#include <intuition/icclass.h>
36#include <reaction/reaction_macros.h>
70 if(pageinfo_win->
pi != NULL) {
74 pageinfo_win->
pi = NULL;
101 if((
result & WMHI_CLASSMASK) == WMHI_INACTIVE) {
123 bool did_something =
false;
127 if (did_something ==
true) {
177 ULONG refresh_mode = WA_SmartRefresh;
181 refresh_mode = WA_SimpleRefresh;
187 WA_DepthGadget, FALSE,
189 WA_CloseGadget, FALSE,
190 WA_SizeGadget, FALSE,
195 WA_ReportMouse, TRUE,
197 WA_IDCMP, IDCMP_MOUSEMOVE | IDCMP_MOUSEBUTTONS | IDCMP_NEWSIZE |
198 IDCMP_RAWKEY | IDCMP_IDCMPUPDATE | IDCMP_INACTIVEWINDOW |
202 IDCMP_SIZEVERIFY | IDCMP_REFRESHWINDOW,
204 WINDOW_UserData, pageinfo_win,
205 WINDOW_IconifyGadget, FALSE,
209 SPACE_Transparent, TRUE,
210 SPACE_BevelStyle, BVS_BOX,
239 NSLOG(netsurf, INFO,
"Page info init failed");
nserror ami_corewindow_fini(struct ami_corewindow *ami_cw)
finalise elements of Amiga core window.
nserror ami_corewindow_init(struct ami_corewindow *ami_cw)
initialise elements of Amiga core window.
struct Screen * ami_gui_get_screen(void)
Get a pointer to the screen NetSurf is running on.
static struct Screen * scrn
STRPTR ami_gui_get_screen_title(void)
Get the string for NetSurf's screen titlebar.
struct MsgPort * ami_gui_get_shared_msgport(void)
Get shared message port.
static void ami_pageinfo_destroy(struct ami_corewindow *ami_cw)
destroy a previously created pageinfo window
static nserror ami_pageinfo_key(struct ami_corewindow *ami_cw, uint32_t nskey)
callback for keypress for pageinfo on core window
static nserror ami_pageinfo_create_window(struct ami_pageinfo_window *pageinfo_win, ULONG left, ULONG top)
static nserror ami_pageinfo_draw(struct ami_corewindow *ami_cw, int x, int y, struct rect *r, struct redraw_context *ctx)
callback on draw event for pageinfo on core window
nserror ami_pageinfo_open(struct browser_window *bw, ULONG left, ULONG top)
Open the page info window.
static nserror ami_pageinfo_mouse(struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse action for pageinfo on core window
static void ami_pageinfo_close_cb(void *p)
close pageinfo window (callback)
static BOOL ami_pageinfo_event(struct ami_corewindow *ami_cw, ULONG result)
callback for unknown events on Amiga core window (result & WMHI_CLASSMASK) gives the class of event (...
nserror ami_schedule(int t, void(*callback)(void *p), void *p)
Schedule a callback.
nserror
Enumeration of error codes.
@ NSERROR_NOT_IMPLEMENTED
Functionality is not implemented.
@ NSERROR_NOMEM
Memory exhaustion.
void ami_utf8_free(char *ptr)
char * ami_utf8_easy(const char *string)
browser_mouse_state
Mouse state.
Target independent plotting interface.
Interface to key press operations.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
#define IDCMP_EXTENDEDMOUSE
nserror page_info_get_size(struct page_info *pi, int *width, int *height)
Get size of page info content area.
nserror page_info_destroy(struct page_info *pi)
Destroy a page info corewindow.
nserror page_info_redraw(const struct page_info *pi, int x, int y, const struct rect *clip, const struct redraw_context *ctx)
Redraw the page info window.
nserror page_info_create(struct core_window *cw_h, struct browser_window *bw, struct page_info **pi_out)
Create a page info corewindow.
bool page_info_keypress(struct page_info *pi, int32_t key)
Key press handling.
nserror page_info_mouse_action(struct page_info *pi, enum browser_mouse_state mouse, int x, int y, bool *did_something)
Mouse action handling.
Pave info viewer window interface.
void(* close)(struct ami_corewindow *ami_cw)
callback to close an Amiga core window
Object * objects[GID_CW_LAST]
nserror(* mouse)(struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on Amiga core window
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
nserror(* key)(struct ami_corewindow *ami_cw, uint32_t nskey)
callback for keypress on Amiga core window
BOOL(* event)(struct ami_corewindow *ami_cw, ULONG result)
callback for unknown events on Amiga core window eg.
char * wintitle
window title, must be allocated wth ami_utf8 function
Amiga page info window context.
struct page_info * pi
core pageinfo
struct ami_corewindow core
Amiga core window context.
The page info window structure.
Option reading and saving interface.
#define nsoption_bool(OPTION)
Get the value of a boolean option.