NetSurf
Functions | Variables
gui.c File Reference

Provides all the mandatory functions prefixed with gui_ for atari. More...

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/corestrings.h"
#include "utils/nsoption.h"
#include "netsurf/browser_window.h"
#include "netsurf/layout.h"
#include "netsurf/window.h"
#include "netsurf/clipboard.h"
#include "netsurf/fetch.h"
#include "netsurf/misc.h"
#include "netsurf/netsurf.h"
#include "netsurf/content.h"
#include "netsurf/cookie_db.h"
#include "netsurf/url_db.h"
#include "netsurf/plotters.h"
#include "content/backing_store.h"
#include "atari/gemtk/gemtk.h"
#include "atari/gui.h"
#include "atari/misc.h"
#include "atari/findfile.h"
#include "atari/schedule.h"
#include "atari/rootwin.h"
#include "atari/statusbar.h"
#include "atari/toolbar.h"
#include "atari/hotlist.h"
#include "atari/cookies.h"
#include "atari/history.h"
#include "atari/encoding.h"
#include "atari/res/netsurf.rsh"
#include "atari/plot/plot.h"
#include "atari/clipboard.h"
#include "atari/osspec.h"
#include "atari/search.h"
#include "atari/deskmenu.h"
#include "atari/download.h"
#include "atari/file.h"
#include "atari/filetype.h"
#include "atari/bitmap.h"
#include "atari/font.h"
#include "cflib.h"
Include dependency graph for gui.c:

Go to the source code of this file.

Functions

bool gui_window_get_scroll (struct gui_window *w, int *sx, int *sy)
 
static nserror gui_window_set_url (struct gui_window *w, nsurl *url)
 
static void atari_poll (void)
 Core atari event processing. More...
 
static struct gui_windowgui_window_create (struct browser_window *bw, struct gui_window *existing, gui_window_create_flags flags)
 Create and open a gui window for a browsing context. More...
 
void gui_window_destroy (struct gui_window *gw)
 Destroy previously created gui window. More...
 
static nserror gui_window_get_dimensions (struct gui_window *gw, int *width, int *height)
 Find the current dimensions of a atari browser window content area. More...
 
static void gui_window_set_title (struct gui_window *gw, const char *title)
 Set the title of a window. More...
 
void atari_window_set_status (struct gui_window *w, const char *text)
 Set the status bar of a browser window. More...
 
static nserror atari_window_invalidate_area (struct gui_window *gw, const struct rect *rect)
 Invalidates an area of an atari browser window. More...
 
static nserror gui_window_set_scroll (struct gui_window *gw, const struct rect *rect)
 Set the scroll position of a atari browser window. More...
 
static void gui_window_update_extent (struct gui_window *gw)
 Update the extent of the inside of a browser window to that of the current content. More...
 
void gui_window_set_pointer (struct gui_window *gw, gui_pointer_shape shape)
 set the pointer shape More...
 
char * gui_window_get_url (struct gui_window *gw)
 
char * gui_window_get_title (struct gui_window *gw)
 
static void throbber_advance (void *data)
 
static void gui_window_start_throbber (struct gui_window *w)
 
static void gui_window_stop_throbber (struct gui_window *w)
 
static void gui_window_place_caret (struct gui_window *w, int x, int y, int height, const struct rect *clip)
 Place caret in window. More...
 
static void gui_window_remove_caret (struct gui_window *w)
 clear window caret More...
 
static void gui_window_set_icon (struct gui_window *g, struct hlcache_handle *icon)
 Set a favicon for a gui window. More...
 
static void gui_window_new_content (struct gui_window *w)
 
static void gui_get_clipboard (char **buffer, size_t *length)
 Core asks front end for clipboard contents. More...
 
static void gui_set_clipboard (const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)
 Core tells front end to put given text in clipboard. More...
 
void gui_set_input_gui_window (struct gui_window *gw)
 
struct gui_windowgui_get_input_window (void)
 
static void gui_quit (void)
 
static bool process_cmdline (int argc, char **argv)
 Process commandline parameters. More...
 
static void create_cursor (int flags, short mode, void *form, MFORM_EX *m)
 
static nsurlgui_get_resource_url (const char *path)
 
static nserror set_defaults (struct nsoption_s *defaults)
 Set option defaults for atari frontend. More...
 
static void gui_init (int argc, char **argv)
 Initialise atari gui. More...
 
static nserror gui_window_event (struct gui_window *gw, enum gui_window_event event)
 process miscellaneous window events More...
 
int main (int argc, char **argv)
 Entry point from OS. More...
 

Variables

static bool atari_quit = false
 
struct gui_windowinput_window = NULL
 
struct gui_windowwindow_list = NULL
 
void * h_gem_rsrc
 
long next_poll
 
bool rendering = false
 
GRECT desk_area
 
int option_window_width
 
int option_window_height
 
int option_window_x
 
int option_window_y
 
const char * option_homepage_url
 
char options [PATH_MAX]
 
EVMULT_IN aes_event_in
 
EVMULT_OUT aes_event_out
 
short aes_msg_out [8]
 
static char * theapp = (char*)"NetSurf"
 
static struct gui_window_table atari_window_table
 
static struct gui_clipboard_table atari_clipboard_table
 
static struct gui_fetch_table atari_fetch_table
 
static struct gui_misc_table atari_misc_table
 

Detailed Description

Provides all the mandatory functions prefixed with gui_ for atari.

Definition in file gui.c.

Function Documentation

◆ atari_poll()

static void atari_poll ( void  )
static

Core atari event processing.

Todo:
implement generic treeview redraw function.
Todo:
rename hl to atari_hotlist or create getter for it...

Definition at line 113 of file gui.c.

References aes_event_in, aes_event_out, aes_msg_out, s_redrw_slots::areas_used, atari_quit, atari_treeview_flush_redraws(), deskmenu_dispatch_item(), deskmenu_dispatch_keypress(), input_window, gui_window::next, NSLOG, nsoption_int, s_gui_win_root::redraw_slots, rendering, gui_window::root, schedule_run(), window_list, and window_process_redraws().

Referenced by main().

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

◆ atari_window_invalidate_area()

static nserror atari_window_invalidate_area ( struct gui_window gw,
const struct rect rect 
)
static

Invalidates an area of an atari browser window.

Parameters
gwgui_window
rectarea to redraw or NULL for the entire window area
Returns
NSERROR_OK on success or appropriate error code

Definition at line 385 of file gui.c.

References BROWSER_AREA_CONTENT, NSERROR_BAD_PARAMETER, NSERROR_OK, gui_window::root, s_gui_win_root::win, window_get_grect(), window_schedule_redraw_grect(), rect::x0, rect::x1, rect::y0, and rect::y1.

Referenced by gui_window_new_content().

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

◆ atari_window_set_status()

void atari_window_set_status ( struct gui_window w,
const char *  text 
)

Set the status bar of a browser window.

Parameters
wThe gui_window to update.
textnew status text

Definition at line 355 of file gui.c.

References input_window, gui_window::root, gui_window::status, text(), and window_set_stauts().

Referenced by gui_download_window_done(), and gui_download_window_error().

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

◆ create_cursor()

static void create_cursor ( int  flags,
short  mode,
void *  form,
MFORM_EX m 
)
inlinestatic

Definition at line 880 of file gui.c.

References mform_ex_s::flags, MFORM_EX_FLAG_USERFORM, mode, mform_ex_s::number, and mform_ex_s::tree.

Referenced by gui_init().

Here is the caller graph for this function:

◆ gui_get_clipboard()

static void gui_get_clipboard ( char **  buffer,
size_t *  length 
)
static

Core asks front end for clipboard contents.

Parameters
bufferUTF-8 text, allocated by front end, ownership yeilded to core
lengthByte length of UTF-8 text in buffer

Definition at line 702 of file gui.c.

References buffer, clip(), NSERROR_OK, scrap_txt_read(), and utf8_to_local_encoding().

Here is the call graph for this function:

◆ gui_get_input_window()

struct gui_window * gui_get_input_window ( void  )

Definition at line 771 of file gui.c.

References input_window.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_get_resource_url()

static nsurl * gui_get_resource_url ( const char *  path)
static

Definition at line 891 of file gui.c.

References atari_find_resource(), netsurf_path_to_nsurl(), path(), PATH_MAX, and gui_window::url.

Here is the call graph for this function:

◆ gui_init()

static void gui_init ( int  argc,
char **  argv 
)
static

◆ gui_quit()

static void gui_quit ( void  )
static

Definition at line 776 of file gui.c.

References atari_cookie_manager_destroy(), atari_global_history_destroy(), atari_hotlist_destroy(), gui_window::browser, browser_window_destroy(), s_browser::bw, deskmenu_destroy(), gui_window::next, NSLOG, nsoption_charp, plot_finalise(), toolbar_exit(), urldb_save(), urldb_save_cookies(), and window_list.

Here is the call graph for this function:

◆ gui_set_clipboard()

static void gui_set_clipboard ( const char *  buffer,
size_t  length,
nsclipboard_styles  styles[],
int  n_styles 
)
static

Core tells front end to put given text in clipboard.

Parameters
bufferUTF-8 text, owned by core
lengthByte length of UTF-8 text in buffer
stylesArray of styles given to text runs, owned by core, or NULL
n_stylesNumber of text run styles in array

Definition at line 744 of file gui.c.

References buffer, clip(), NSERROR_OK, scrap_txt_write(), and utf8_to_local_encoding().

Here is the call graph for this function:

◆ gui_set_input_gui_window()

void gui_set_input_gui_window ( struct gui_window gw)

Definition at line 764 of file gui.c.

References input_window, and NSLOG.

Referenced by gui_window_create(), gui_window_destroy(), handle_event(), on_content_mouse_click(), and window_unref_gui_window().

Here is the caller graph for this function:

◆ gui_window_create()

static struct gui_window * gui_window_create ( struct browser_window bw,
struct gui_window existing,
gui_window_create_flags  flags 
)
static

Create and open a gui window for a browsing context.

Parameters
bwbw to create gui_window for
existingan existing gui_window, may be NULL
flagsflags for gui window creation
Returns
gui window, or NULL on error

If GW_CREATE_CLONE flag is set existing is non-NULL.

The created gui_window must include a reference to the browser window passed in the bw param.

Definition at line 192 of file gui.c.

References BROWSER_POINTER_DEFAULT, gui_window::bw, gui_set_input_gui_window(), gui_window_set_pointer(), gui_window_set_url(), gui_window::next, NSLOG, option_window_height, option_window_width, option_window_x, option_window_y, gui_window::prev, gui_window::root, s_gui_win_root::toolbar, toolbar_key_input(), URL_WIDGET, WIDGET_NONE, WIDGET_RESIZE, WIDGET_SCROLL, WIDGET_STATUSBAR, WIDGET_TOOLBAR, s_gui_win_root::win, window_create(), window_list, window_open(), and window_set_focus().

Here is the call graph for this function:

◆ gui_window_destroy()

void gui_window_destroy ( struct gui_window gw)

Destroy previously created gui window.

Parameters
gwThe gui window to destroy.

Definition at line 251 of file gui.c.

References gui_window::browser, gui_set_input_gui_window(), input_window, gui_window::next, nsatari_search_session_destroy(), NSLOG, gui_window::prev, gui_window::root, gui_window::search, gui_window::status, gui_window::title, gui_window::url, window_list, and window_unref_gui_window().

Here is the call graph for this function:

◆ gui_window_event()

static nserror gui_window_event ( struct gui_window gw,
enum gui_window_event  event 
)
static

process miscellaneous window events

Parameters
gwThe window receiving the event.
eventThe event code.
Returns
NSERROR_OK when processed ok

Definition at line 1025 of file gui.c.

References gui_window_new_content(), gui_window_remove_caret(), gui_window_start_throbber(), gui_window_stop_throbber(), gui_window_update_extent(), GW_EVENT_NEW_CONTENT, GW_EVENT_REMOVE_CARET, GW_EVENT_START_THROBBER, GW_EVENT_STOP_THROBBER, GW_EVENT_UPDATE_EXTENT, and NSERROR_OK.

Here is the call graph for this function:

◆ gui_window_get_dimensions()

static nserror gui_window_get_dimensions ( struct gui_window gw,
int *  width,
int *  height 
)
static

Find the current dimensions of a atari browser window content area.

Parameters
gwThe gui window to measure content area of.
widthreceives width of window
heightreceives height of window
Returns
NSERROR_OK on sucess and width and height updated else error code.

Definition at line 305 of file gui.c.

References BROWSER_AREA_CONTENT, height, NSERROR_OK, gui_window::root, width, and window_get_grect().

Here is the call 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(), and on_file_dropped().

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

◆ gui_window_get_title()

char * gui_window_get_title ( struct gui_window gw)

Definition at line 589 of file gui.c.

References gui_window::title.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_window_get_url()

char * gui_window_get_url ( struct gui_window gw)

Definition at line 581 of file gui.c.

References gui_window::url.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_window_new_content()

static void gui_window_new_content ( struct gui_window w)
static

Definition at line 686 of file gui.c.

References atari_window_invalidate_area(), gui_window::root, and s_gui_win_root::win.

Referenced by gui_window_event().

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

◆ gui_window_place_caret()

static void gui_window_place_caret ( struct gui_window w,
int  x,
int  y,
int  height,
const struct rect clip 
)
static

Place caret in window.

Definition at line 642 of file gui.c.

References s_gui_win_root::caret, CARET_STATE_ENABLED, height, gui_window::root, s_caret::state, and window_place_caret().

Here is the call graph for this function:

◆ gui_window_remove_caret()

static void gui_window_remove_caret ( struct gui_window w)
static

clear window caret

Definition at line 655 of file gui.c.

References s_gui_win_root::caret, CARET_STATE_ENABLED, gui_window::root, s_caret::state, and window_place_caret().

Referenced by gui_window_event().

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

◆ gui_window_set_icon()

static void gui_window_set_icon ( struct gui_window g,
struct hlcache_handle icon 
)
static

Set a favicon for a gui window.

Parameters
gwindow to update.
iconhandle to object to use as icon.

Definition at line 675 of file gui.c.

References content_get_bitmap(), gui_window::icon, input_window, gui_window::root, and window_set_icon().

Here is the call graph for this function:

◆ gui_window_set_pointer()

void gui_window_set_pointer ( struct gui_window gw,
gui_pointer_shape  shape 
)

set the pointer shape

Change mouse pointer shape.

Definition at line 481 of file gui.c.

References s_gem_cursors::appstarting, s_gem_cursors::arrow, s_gem_cursors::cross, gui_window::cursor, s_gem_cursors::deny, gem_cursors, gem_set_cursor(), GUI_POINTER_CARET, GUI_POINTER_CROSS, GUI_POINTER_DOWN, GUI_POINTER_HELP, GUI_POINTER_LD, GUI_POINTER_LEFT, GUI_POINTER_LU, GUI_POINTER_MENU, GUI_POINTER_MOVE, GUI_POINTER_NO_DROP, GUI_POINTER_NOT_ALLOWED, GUI_POINTER_POINT, GUI_POINTER_PROGRESS, GUI_POINTER_RD, GUI_POINTER_RIGHT, GUI_POINTER_RU, GUI_POINTER_UP, GUI_POINTER_WAIT, s_gem_cursors::hand, s_gem_cursors::help, s_gem_cursors::ibeam, input_window, s_gem_cursors::menu, s_gem_cursors::nodrop, s_gem_cursors::sizeall, s_gem_cursors::sizenesw, s_gem_cursors::sizens, s_gem_cursors::sizenwse, s_gem_cursors::sizewe, and s_gem_cursors::wait.

Referenced by gui_window_create().

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

◆ gui_window_set_scroll()

static nserror gui_window_set_scroll ( struct gui_window gw,
const struct rect rect 
)
static

Set the scroll position of a atari browser window.

Scrolls the viewport to ensure the specified rectangle of the content is shown. The atari implementation scrolls the contents so the specified point in the content is at the top of the viewport.

Parameters
gwgui window to scroll
rectThe rectangle to ensure is shown.
Returns
NSERROR_OK on success or apropriate error code.

Definition at line 435 of file gui.c.

References gui_window::browser, browser_window_has_content(), s_browser::bw, NSERROR_BAD_PARAMETER, NSERROR_OK, NSLOG, gui_window::root, window_scroll_by(), rect::x0, and rect::y0.

Here is the call graph for this function:

◆ gui_window_set_title()

static void gui_window_set_title ( struct gui_window gw,
const char *  title 
)
static

Set the title of a window.

Parameters
gwwindow to update
titlenew window title

Definition at line 321 of file gui.c.

References NS_ATARI_SYSINFO::aes_max_win_title_len, atari_sysinfo, input_window, MIN, NSERROR_OK, gui_window::root, gui_window::title, utf8_to_local_encoding(), and window_set_title().

Here is the call graph for this function:

◆ gui_window_set_url()

static nserror gui_window_set_url ( struct gui_window w,
nsurl url 
)
static

Definition at line 558 of file gui.c.

References s_gui_win_root::active_gui_window, input_window, NSERROR_OK, nsurl_access(), gui_window::root, s_gui_win_root::toolbar, toolbar_set_url(), and gui_window::url.

Referenced by gui_window_create().

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

◆ gui_window_start_throbber()

static void gui_window_start_throbber ( struct gui_window w)
static

Definition at line 614 of file gui.c.

References atari_schedule(), rendering, gui_window::root, throbber_advance(), s_gui_win_root::toolbar, and toolbar_set_throbber_state().

Referenced by gui_window_event().

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

◆ gui_window_stop_throbber()

static void gui_window_stop_throbber ( struct gui_window w)
static

Definition at line 624 of file gui.c.

References atari_schedule(), rendering, gui_window::root, s_throbber_widget::running, s_toolbar::throbber, throbber_advance(), s_gui_win_root::toolbar, and toolbar_set_throbber_state().

Referenced by gui_window_event().

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

◆ gui_window_update_extent()

static void gui_window_update_extent ( struct gui_window gw)
static

Update the extent of the inside of a browser window to that of the current content.

It seems this method is called when content size got adjusted, so that we can adjust scroll info. We also have to call it when tab change occurs.

Parameters
gwgui_window to update the extent of
Todo:
store content size.

Definition at line 460 of file gui.c.

References gui_window::browser, BROWSER_AREA_CONTENT, browser_window_get_extents(), browser_window_has_content(), s_browser::bw, height, gui_window::root, width, window_get_active_gui_window(), window_get_grect(), window_schedule_redraw_grect(), window_set_content_size(), and window_update_back_forward().

Referenced by gui_window_event().

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

◆ main()

int main ( int  argc,
char **  argv 
)

Entry point from OS.

Normal entry point from OS.

/param argc The number of arguments in the string vector. /param argv The argument string vector. /return The return code to the OS

Todo:
logging file descriptor update belongs in a nslog_init callback

Definition at line 1097 of file gui.c.

References atari_bitmap_table, atari_clipboard_table, atari_download_table, atari_fetch_table, atari_file_table, atari_find_resource(), atari_layout_table, atari_misc_table, atari_poll(), atari_quit, atari_search_table, atari_utf8_table, atari_warn_user(), atari_window_table, browser_window_create(), BW_CREATE_HISTORY, die(), filesystem_llcache_table, gui_init(), init_os_info(), local_file_to_url(), messages_add_from_file(), messages_get_errorcode(), netsurf_table::misc, netsurf_exit(), netsurf_init(), netsurf_register(), NSERROR_OK, NSLOG, nslog_finalise(), nslog_init(), nsoption_commandline(), nsoption_init(), nsoption_read(), nsoptions, nsoptions_default, nsurl_create(), nsurl_unref(), option_homepage_url, options, PATH_MAX, set_defaults(), and store().

Here is the call graph for this function:

◆ process_cmdline()

static bool process_cmdline ( int  argc,
char **  argv 
)
static

Process commandline parameters.

Definition at line 816 of file gui.c.

References desk_area, NSLOG, nsoption_charp, nsoption_int, option_homepage_url, option_window_height, option_window_width, option_window_x, and option_window_y.

Referenced by gui_init().

Here is the caller graph for this function:

◆ set_defaults()

static nserror set_defaults ( struct nsoption_s defaults)
static

Set option defaults for atari frontend.

Parameters
defaultsThe option table to update.
Returns
error status.

Definition at line 909 of file gui.c.

References NSERROR_BAD_PARAMETER, NSERROR_OK, NSLOG, nsoption_charp, and nsoption_setnull_charp.

Referenced by main(), and nsoption_init().

Here is the caller graph for this function:

◆ throbber_advance()

static void throbber_advance ( void *  data)
static

Definition at line 597 of file gui.c.

References atari_schedule(), gui_window::root, s_throbber_widget::running, s_toolbar::throbber, throbber_advance(), s_gui_win_root::toolbar, and toolbar_throbber_progress().

Referenced by gui_window_start_throbber(), gui_window_stop_throbber(), and throbber_advance().

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

Variable Documentation

◆ aes_event_in

EVMULT_IN aes_event_in
Initial value:
= {
.emi_flags = MU_MESAG | MU_TIMER | MU_KEYBD | MU_BUTTON | MU_M1,
.emi_bclicks = 258,
.emi_bmask = 3,
.emi_bstate = 0,
.emi_m1leave = MO_ENTER,
.emi_m1 = {0,0,0,0},
.emi_m2leave = 0,
.emi_m2 = {0,0,0,0},
.emi_tlow = 0,
.emi_thigh = 0
}

Definition at line 92 of file gui.c.

Referenced by atari_poll(), and gui_init().

◆ aes_event_out

EVMULT_OUT aes_event_out

◆ aes_msg_out

short aes_msg_out[8]

Definition at line 105 of file gui.c.

Referenced by atari_poll().

◆ atari_clipboard_table

struct gui_clipboard_table atari_clipboard_table
static
Initial value:
= {
}
static void gui_set_clipboard(const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles)
Core tells front end to put given text in clipboard.
Definition: gui.c:744
static void gui_get_clipboard(char **buffer, size_t *length)
Core asks front end for clipboard contents.
Definition: gui.c:702

Definition at line 1072 of file gui.c.

Referenced by main().

◆ atari_fetch_table

struct gui_fetch_table atari_fetch_table
static
Initial value:
= {
.filetype = fetch_filetype,
.get_resource_url = gui_get_resource_url,
}
const char * fetch_filetype(const char *unix_path)
Determine the MIME type of a local file.
Definition: filetype.c:58
static nsurl * gui_get_resource_url(const char *path)
Definition: gui.c:891

Definition at line 1077 of file gui.c.

Referenced by main().

◆ atari_misc_table

struct gui_misc_table atari_misc_table
static
Initial value:
= {
.schedule = atari_schedule,
.quit = gui_quit,
}
static void gui_quit(void)
Definition: gui.c:776
nserror atari_schedule(int ival, void(*callback)(void *p), void *p)
Schedule a callback.
Definition: schedule.c:103

Definition at line 1083 of file gui.c.

Referenced by main().

◆ atari_quit

bool atari_quit = false
static

Definition at line 71 of file gui.c.

Referenced by atari_poll(), and main().

◆ atari_window_table

struct gui_window_table atari_window_table
static
Initial value:
= {
.create = gui_window_create,
.destroy = gui_window_destroy,
.get_scroll = gui_window_get_scroll,
.set_scroll = gui_window_set_scroll,
.get_dimensions = gui_window_get_dimensions,
.event = gui_window_event,
.set_title = gui_window_set_title,
.set_url = gui_window_set_url,
.set_icon = gui_window_set_icon,
.set_status = atari_window_set_status,
.set_pointer = gui_window_set_pointer,
.place_caret = gui_window_place_caret,
}
static nserror gui_window_set_scroll(struct gui_window *gw, const struct rect *rect)
Set the scroll position of a atari browser window.
Definition: gui.c:435
static nserror gui_window_event(struct gui_window *gw, enum gui_window_event event)
process miscellaneous window events
Definition: gui.c:1025
static nserror gui_window_get_dimensions(struct gui_window *gw, int *width, int *height)
Find the current dimensions of a atari browser window content area.
Definition: gui.c:305
static struct gui_window * gui_window_create(struct browser_window *bw, struct gui_window *existing, gui_window_create_flags flags)
Create and open a gui window for a browsing context.
Definition: gui.c:192
static nserror gui_window_set_url(struct gui_window *w, nsurl *url)
Definition: gui.c:558
void gui_window_destroy(struct gui_window *gw)
Destroy previously created gui window.
Definition: gui.c:251
static nserror atari_window_invalidate_area(struct gui_window *gw, const struct rect *rect)
Invalidates an area of an atari browser window.
Definition: gui.c:385
void gui_window_set_pointer(struct gui_window *gw, gui_pointer_shape shape)
set the pointer shape
Definition: gui.c:481
void atari_window_set_status(struct gui_window *w, const char *text)
Set the status bar of a browser window.
Definition: gui.c:355
static void gui_window_set_icon(struct gui_window *g, struct hlcache_handle *icon)
Set a favicon for a gui window.
Definition: gui.c:675
static void gui_window_set_title(struct gui_window *gw, const char *title)
Set the title of a window.
Definition: gui.c:321
bool gui_window_get_scroll(struct gui_window *w, int *sx, int *sy)
Definition: gui.c:413
static void gui_window_place_caret(struct gui_window *w, int x, int y, int height, const struct rect *clip)
Place caret in window.
Definition: gui.c:642

Definition at line 1055 of file gui.c.

Referenced by main().

◆ desk_area

GRECT desk_area

◆ h_gem_rsrc

void* h_gem_rsrc

Definition at line 75 of file gui.c.

◆ input_window

struct gui_window* input_window = NULL

◆ next_poll

long next_poll

Definition at line 76 of file gui.c.

◆ option_homepage_url

const char* option_homepage_url

Definition at line 87 of file gui.c.

Referenced by main(), and process_cmdline().

◆ option_window_height

int option_window_height

Definition at line 82 of file gui.c.

Referenced by gui_window_create(), menu_savewin(), and process_cmdline().

◆ option_window_width

int option_window_width

Definition at line 81 of file gui.c.

Referenced by gui_window_create(), menu_savewin(), and process_cmdline().

◆ option_window_x

int option_window_x

Definition at line 83 of file gui.c.

Referenced by gui_window_create(), menu_savewin(), and process_cmdline().

◆ option_window_y

int option_window_y

Definition at line 84 of file gui.c.

Referenced by gui_window_create(), menu_savewin(), and process_cmdline().

◆ options

char options[PATH_MAX]

Definition at line 90 of file gui.c.

Referenced by form_dom_to_data_select(), gui_init_replicant(), main(), menu_savewin(), and save_settings().

◆ rendering

bool rendering = false

Definition at line 77 of file gui.c.

Referenced by atari_poll(), gui_window_start_throbber(), and gui_window_stop_throbber().

◆ theapp

char* theapp = (char*)"NetSurf"
static

Definition at line 920 of file gui.c.

Referenced by gui_init().

◆ window_list

struct gui_window* window_list = NULL