NetSurf
Data Structures | Macros | Functions | Variables
ctxmenu.c File Reference
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
#include "netsurf/browser_window.h"
#include "netsurf/content.h"
#include "netsurf/keypress.h"
#include "atari/gui.h"
#include "atari/misc.h"
#include "atari/rootwin.h"
#include "atari/clipboard.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
#include "atari/ctxmenu.h"
Include dependency graph for ctxmenu.c:

Go to the source code of this file.

Data Structures

struct  s_context_info
 

Macros

#define CNT_INVALID   0
 
#define CNT_BROWSER   64
 
#define CNT_HREF   128
 
#define CNT_SELECTION   256
 
#define CNT_INTERACTIVE   512
 
#define CNT_IMG   1024
 
#define POP_FIRST_ITEM   POP_CTX_CUT_SEL
 
#define POP_LAST_ITEM   POP_CTX_SAVE_LINK_AS
 

Functions

bool gui_window_get_scroll (struct gui_window *w, int *sx, int *sy)
 
static struct s_context_infoget_context_info (struct gui_window *gw, short mx, short my)
 
static char * get_tmpfilename (const char *prefix, const char *suffix)
 
void context_popup (struct gui_window *gw, short x, short y)
 

Variables

struct s_context_info ctxinfo
 

Macro Definition Documentation

◆ CNT_BROWSER

#define CNT_BROWSER   64

Definition at line 37 of file ctxmenu.c.

◆ CNT_HREF

#define CNT_HREF   128

Definition at line 38 of file ctxmenu.c.

◆ CNT_IMG

#define CNT_IMG   1024

Definition at line 41 of file ctxmenu.c.

◆ CNT_INTERACTIVE

#define CNT_INTERACTIVE   512

Definition at line 40 of file ctxmenu.c.

◆ CNT_INVALID

#define CNT_INVALID   0

Definition at line 36 of file ctxmenu.c.

◆ CNT_SELECTION

#define CNT_SELECTION   256

Definition at line 39 of file ctxmenu.c.

◆ POP_FIRST_ITEM

#define POP_FIRST_ITEM   POP_CTX_CUT_SEL

◆ POP_LAST_ITEM

#define POP_LAST_ITEM   POP_CTX_SAVE_LINK_AS

Function Documentation

◆ context_popup()

void context_popup ( struct gui_window gw,
short  x,
short  y 
)

◆ get_context_info()

static struct s_context_info * get_context_info ( struct gui_window gw,
short  mx,
short  my 
)
static

Definition at line 52 of file ctxmenu.c.

References gui_window::browser, BROWSER_AREA_CONTENT, browser_window_get_content(), browser_window_get_features(), browser_window_has_content(), browser_window::bw, s_browser::bw, s_context_info::ccdata, CNT_BROWSER, CNT_HREF, CNT_IMG, CNT_INTERACTIVE, CNT_SELECTION, content_get_type(), CONTENT_HTML, CONTENT_IMAGE, ctxinfo, s_context_info::flags, browser_window_features::form_features, gui_window_get_scroll(), browser_window_features::link, browser_window_features::object, gui_window::root, and window_get_grect().

Referenced by context_popup().

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

◆ get_tmpfilename()

static char * get_tmpfilename ( const char *  prefix,
const char *  suffix 
)
static

Definition at line 106 of file ctxmenu.c.

References PATH_MAX.

Referenced by context_popup().

Here is the caller graph for this function:

◆ gui_window_get_scroll()

bool gui_window_get_scroll ( struct gui_window w,
int *  sx,
int *  sy 
)

Definition at line 413 of file gui.c.

References gui_window::root, and window_get_scroll().

Referenced by get_context_info().

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

Variable Documentation

◆ ctxinfo

struct s_context_info ctxinfo

Definition at line 50 of file ctxmenu.c.

Referenced by get_context_info().