NetSurf
Functions | Variables
history.c File Reference
#include <assert.h>
#include <inttypes.h>
#include "utils/log.h"
#include "utils/messages.h"
#include "netsurf/mouse.h"
#include "desktop/global_history.h"
#include "atari/treeview.h"
#include "atari/history.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
Include dependency graph for history.c:

Go to the source code of this file.

Functions

static nserror atari_global_history_init_phase2 (struct core_window *cw, struct core_window_callback_table *cb_t)
 
static void atari_global_history_finish (struct core_window *cw)
 
static void atari_global_history_draw (struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
 
static void atari_global_history_keypress (struct core_window *cw, uint32_t ucs4)
 
static void atari_global_history_mouse_action (struct core_window *cw, browser_mouse_state mouse, int x, int y)
 
void atari_global_history_close (void)
 
static short handle_event (GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
 
void atari_global_history_init (void)
 
void atari_global_history_open (void)
 
void atari_global_history_destroy (void)
 
void atari_global_history_redraw (void)
 

Variables

GRECT desk_area
 
struct atari_global_history_s atari_global_history
 
static struct atari_treeview_callbacks atari_global_history_treeview_callbacks
 

Function Documentation

◆ atari_global_history_close()

void atari_global_history_close ( void  )

Definition at line 75 of file history.c.

References atari_global_history, atari_treeview_close(), and atari_global_history_s::tv.

Referenced by atari_global_history_destroy(), and handle_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_global_history_destroy()

void atari_global_history_destroy ( void  )

Definition at line 169 of file history.c.

References atari_global_history, atari_global_history_close(), atari_treeview_delete(), atari_treeview_is_open(), atari_global_history_s::init, NSLOG, atari_global_history_s::tv, and atari_global_history_s::window.

Referenced by gui_quit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_global_history_draw()

static void atari_global_history_draw ( struct core_window *  cw,
int  x,
int  y,
struct rect clip,
const struct redraw_context ctx 
)
static

Definition at line 52 of file history.c.

References clip(), and global_history_redraw().

Here is the call graph for this function:

◆ atari_global_history_finish()

static void atari_global_history_finish ( struct core_window *  cw)
static

Definition at line 46 of file history.c.

References global_history_fini(), and NSLOG.

Here is the call graph for this function:

◆ atari_global_history_init()

void atari_global_history_init ( void  )

Definition at line 110 of file history.c.

References atari_global_history, atari_global_history_treeview_callbacks, atari_treeview_create(), ATARI_TREEVIEW_WIDGETS, desk_area, atari_global_history_s::init, messages_get(), NSLOG, atari_global_history_s::tv, and atari_global_history_s::window.

Referenced by gui_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_global_history_init_phase2()

static nserror atari_global_history_init_phase2 ( struct core_window *  cw,
struct core_window_callback_table cb_t 
)
static

Definition at line 39 of file history.c.

References global_history_init(), and NSLOG.

Here is the call graph for this function:

◆ atari_global_history_keypress()

static void atari_global_history_keypress ( struct core_window *  cw,
uint32_t  ucs4 
)
static

Definition at line 59 of file history.c.

References global_history_keypress(), and NSLOG.

Here is the call graph for this function:

◆ atari_global_history_mouse_action()

static void atari_global_history_mouse_action ( struct core_window *  cw,
browser_mouse_state  mouse,
int  x,
int  y 
)
static

Definition at line 66 of file history.c.

References global_history_mouse_action(), and NSLOG.

Here is the call graph for this function:

◆ atari_global_history_open()

void atari_global_history_open ( void  )

Definition at line 146 of file history.c.

References atari_global_history, atari_treeview_is_open(), atari_treeview_open(), desk_area, atari_global_history_s::init, atari_global_history_s::tv, and atari_global_history_s::window.

Referenced by menu_ghistory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_global_history_redraw()

void atari_global_history_redraw ( void  )

Definition at line 188 of file history.c.

References atari_global_history, atari_treeview_redraw(), and atari_global_history_s::tv.

Here is the call graph for this function:

◆ handle_event()

static short handle_event ( GUIWIN *  win,
EVMULT_OUT *  ev_out,
short  msg[8] 
)
static

Definition at line 81 of file history.c.

References atari_global_history_close(), and NSLOG.

Here is the call graph for this function:

Variable Documentation

◆ atari_global_history

struct atari_global_history_s atari_global_history

◆ atari_global_history_treeview_callbacks

struct atari_treeview_callbacks atari_global_history_treeview_callbacks
static
Initial value:
= {
.gemtk_user_func = handle_event
}
static void atari_global_history_draw(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
Definition: history.c:52
static nserror atari_global_history_init_phase2(struct core_window *cw, struct core_window_callback_table *cb_t)
Definition: history.c:39
static void atari_global_history_keypress(struct core_window *cw, uint32_t ucs4)
Definition: history.c:59
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
Definition: history.c:81
static void atari_global_history_finish(struct core_window *cw)
Definition: history.c:46
static void atari_global_history_mouse_action(struct core_window *cw, browser_mouse_state mouse, int x, int y)
Definition: history.c:66

Definition at line 101 of file history.c.

Referenced by atari_global_history_init().

◆ desk_area

GRECT desk_area
extern

Definition at line 78 of file gui.c.

Referenced by atari_global_history_init(), and atari_global_history_open().