30#include "atari/gemtk/gemtk.h"
31#include "atari/res/netsurf.rsh"
49static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out,
short msg[8]);
64 NSLOG(netsurf, INFO,
"cw %p", cw);
72 NSLOG(netsurf, INFO,
"cw %p", cw);
90 NSLOG(netsurf, INFO,
"ucs4: %"PRIu32, ucs4);
105static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out,
short msg[8])
109 NSLOG(netsurf, INFO,
"win %p", win);
111 if (ev_out->emo_events & MU_MESAG) {
115 NSLOG(netsurf, INFO,
"WM_TOOLBAR");
137 OBJECT * tree = gemtk_obj_get_tree(TOOLBAR_COOKIES);
142 GEMTK_WM_FLAG_DEFAULTS, NULL);
144 gemtk_msg_box_show(GEMTK_MSG_BOX_ALERT,
145 "Failed to allocate Treeview:\nCookies");
148 wind_set_str(handle, WF_NAME, (
char*)
messages_get(
"Cookies"));
160 "Failed to allocate treeview");
211 NSLOG(netsurf, INFO,
"done");
void atari_cookie_manager_init(void)
void atari_cookie_manager_redraw(void)
struct atari_cookie_manager_s atari_cookie_manager
void atari_cookie_manager_destroy(void)
void atari_cookie_manager_open(void)
static nserror atari_cookie_manager_init_phase2(struct core_window *cw)
static void atari_cookie_manager_finish(struct core_window *cw)
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
static struct atari_treeview_callbacks atari_cookie_manager_treeview_callbacks
static void atari_cookie_manager_mouse_action(struct core_window *cw, browser_mouse_state mouse, int x, int y)
static void atari_cookie_manager_draw(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
static void atari_cookie_manager_keypress(struct core_window *cw, uint32_t ucs4)
void atari_cookie_manager_close(void)
void cookie_manager_redraw(int x, int y, struct rect *clip, const struct redraw_context *ctx)
Redraw the cookies manager.
void cookie_manager_mouse_action(enum browser_mouse_state mouse, int x, int y)
Handles all kinds of mouse action.
nserror cookie_manager_init(void *core_window_handle)
Initialise the cookie manager.
nserror cookie_manager_fini(void)
Finalise the cookie manager.
bool cookie_manager_keypress(uint32_t key)
Key press handling.
Cookie Manager (interface).
nserror
Enumeration of error codes.
void atari_treeview_delete(struct core_window *cw)
Free the Treeview, but not the gemtk window used for the treeview.
bool atari_treeview_is_open(struct core_window *cw)
Returns the window "open" state.
void atari_treeview_redraw(struct core_window *cw)
Process all pending redraw requests for a single treeview.
void atari_treeview_close(struct core_window *cw)
Closes (hides) the treeview window.
struct core_window * atari_treeview_create(GUIWIN *win, struct atari_treeview_callbacks *callbacks, void *user_data, uint32_t flags)
Initalize an window to be an treeview window.
void atari_treeview_open(struct core_window *cw, GRECT *pos)
Open the treeview window.
#define ATARI_TREEVIEW_WIDGETS
Default AES Window widgets for a treeview window, can be passed to atari_treeview_create as the flags...
Core mouse and pointer states.
browser_mouse_state
Mouse state.
Target independent plotting interface.
Netsurf additional integer type formatting macros.
#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).
atari_treeview_init2_callback init_phase2
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.