21#ifndef _NETSURF_RISCOS_GUI_H_
22#define _NETSURF_RISCOS_GUI_H_
24#include <oslib/wimp.h>
28#define THUMBNAIL_WIDTH 100
29#define THUMBNAIL_HEIGHT 86
33#define RO_GUI_MAX_URL_SIZE 2048
176#define ICON_STATUS_RESIZE 0
177#define ICON_STATUS_TEXT 1
179#define ICON_SAVE_ICON 0
180#define ICON_SAVE_PATH 1
181#define ICON_SAVE_OK 2
182#define ICON_SAVE_CANCEL 3
184#define ICON_PAGEINFO_TITLE 0
185#define ICON_PAGEINFO_URL 1
186#define ICON_PAGEINFO_ENC 2
187#define ICON_PAGEINFO_TYPE 3
188#define ICON_PAGEINFO_ICON 4
190#define ICON_OBJINFO_URL 0
191#define ICON_OBJINFO_TARGET 1
192#define ICON_OBJINFO_TYPE 2
193#define ICON_OBJINFO_ICON 3
195#define ICON_WARNING_MESSAGE 0
196#define ICON_WARNING_CONTINUE 1
197#define ICON_WARNING_HELP 2
199#define ICON_SEARCH_TEXT 0
200#define ICON_SEARCH_CASE_SENSITIVE 1
201#define ICON_SEARCH_FIND_NEXT 2
202#define ICON_SEARCH_FIND_PREV 3
203#define ICON_SEARCH_CANCEL 4
204#define ICON_SEARCH_STATUS 5
205#define ICON_SEARCH_MENU 8
206#define ICON_SEARCH_SHOW_ALL 9
208#define ICON_THEME_INSTALL_MESSAGE 0
209#define ICON_THEME_INSTALL_INSTALL 1
210#define ICON_THEME_INSTALL_CANCEL 2
212#define ICON_OPENURL_URL 1
213#define ICON_OPENURL_CANCEL 2
214#define ICON_OPENURL_OPEN 3
215#define ICON_OPENURL_MENU 4
217#define ICON_ENTRY_NAME 1
218#define ICON_ENTRY_URL 3
219#define ICON_ENTRY_CANCEL 4
220#define ICON_ENTRY_OK 5
221#define ICON_ENTRY_RECENT 6
223#define ICON_FOLDER_NAME 1
224#define ICON_FOLDER_CANCEL 2
225#define ICON_FOLDER_OK 3
static const __attribute__((used))
void die(const char *const error) __attribute__((noreturn))
Cause an abnormal program termination.
nserror
Enumeration of error codes.
struct nsurl nsurl
NetSurf URL object.
void ro_gui_screen_size(int *width, int *height)
Find screen size in OS units.
void ro_gui_download_init(void)
Load the download window template.
os_t sched_time
Time of soonest scheduled event (valid only if sched_active is true).
bool current_menu_open
Whether a menu is currently open.
ro_gui_drag_type gui_current_drag_type
void ro_gui_view_source(struct hlcache_handle *c)
Send the source of a content to a text editor.
wimp_w dialog_url_complete
nserror riscos_schedule(int t, void(*callback)(void *p), void *p)
Schedule a callback.
bool ro_gui_theme_install_apply(wimp_w w)
Install the downloaded theme.
osspriteop_area * gui_sprites
Sprite area containing pointer and hotlist sprites.
bool ro_gui_prequit(void)
Test whether it's okay to shutdown, prompting the user if not.
wimp_w current_menu_window
Window that owns the current menu.
wimp_t task_handle
RISC OS wimp task handle.
nserror ro_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
struct rect ro_plot_clip_rect
bool sched_active
Items have been scheduled.
struct gui_window * ro_gui_current_redraw_gui
GUI window which is being redrawn.
void ro_gui_dump_browser_window(struct browser_window *bw)
Send the debug dump of a content to a text editor.
const struct plotter_table ro_plotters
RISC OS plotter operation table.
wimp_w dialog_theme_install
void ro_gui_print_init(void)
Initialise the print dialog.
wimp_menu * recent_search_menu
struct gui_search_table * riscos_search_table
void ro_gui_drag_box_start(wimp_pointer *pointer)
bool ro_gui_download_prequit(void)
Respond to PreQuit message, displaying a prompt message if we need the user to confirm the shutdown.
struct gui_download_table * riscos_download_table
bool schedule_run(void)
Process events up to current time.
void ro_gui_print_prepare(struct gui_window *g)
Prepares all aspects of the print dialog prior to opening.
void ro_gui_open_window_request(wimp_open *open)
Handle Open_Window_Request events.
bool os_alpha_sprite_supported
void ro_gui_search_prepare(struct browser_window *g)
Open the search dialog.
const char * ro_gui_default_language(void)
Determine the default language to use.
void ro_gui_search_init(void)
void ro_gui_download_datasave_ack(wimp_message *message)
Handle Message_DataSaveAck for a drag from a download window.
function table for download windows.
function table for page text search.
first entry in window list
struct gui_window * prev
Previous in linked list.
int old_width
Width when last opened / os units.
bool update_extent
Update the extent on next opening.
struct gui_window * next
list for cleanup
bool active
Whether the throbber should be active.
struct status_bar * status_bar
Status bar, or 0 if not present.
wimp_w window
RISC OS window handle.
bool buffer_animations
Use screen buffering for animations.
bool buffer_everything
Use screen buffering for everything.
struct toolbar * toolbar
Toolbar, or 0 if not present.
int old_height
Height when last opened / os units.
struct gui_window::@47 option
Options.
int iconise_icon
ID number of icon when window is iconised.
char validation[12]
Validation string for colours.
struct browser_window * bw
The 'content' window that is rendered in the gui_window.
History tree for a window.
Plotter operations table.