NetSurf
Data Structures | Macros | Enumerations | Functions | Variables
gui.h File Reference
#include <oslib/wimp.h>
Include dependency graph for gui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gui_window
 first entry in window list More...
 

Macros

#define RISCOS5   0xAA
 
#define THUMBNAIL_WIDTH   100
 
#define THUMBNAIL_HEIGHT   86
 
#define RO_GUI_MAX_URL_SIZE   2048
 
#define ICON_STATUS_RESIZE   0
 
#define ICON_STATUS_TEXT   1
 
#define ICON_SAVE_ICON   0
 
#define ICON_SAVE_PATH   1
 
#define ICON_SAVE_OK   2
 
#define ICON_SAVE_CANCEL   3
 
#define ICON_PAGEINFO_TITLE   0
 
#define ICON_PAGEINFO_URL   1
 
#define ICON_PAGEINFO_ENC   2
 
#define ICON_PAGEINFO_TYPE   3
 
#define ICON_PAGEINFO_ICON   4
 
#define ICON_OBJINFO_URL   0
 
#define ICON_OBJINFO_TARGET   1
 
#define ICON_OBJINFO_TYPE   2
 
#define ICON_OBJINFO_ICON   3
 
#define ICON_WARNING_MESSAGE   0
 
#define ICON_WARNING_CONTINUE   1
 
#define ICON_WARNING_HELP   2
 
#define ICON_SEARCH_TEXT   0
 
#define ICON_SEARCH_CASE_SENSITIVE   1
 
#define ICON_SEARCH_FIND_NEXT   2
 
#define ICON_SEARCH_FIND_PREV   3
 
#define ICON_SEARCH_CANCEL   4
 
#define ICON_SEARCH_STATUS   5
 
#define ICON_SEARCH_MENU   8
 
#define ICON_SEARCH_SHOW_ALL   9
 
#define ICON_THEME_INSTALL_MESSAGE   0
 
#define ICON_THEME_INSTALL_INSTALL   1
 
#define ICON_THEME_INSTALL_CANCEL   2
 
#define ICON_OPENURL_URL   1
 
#define ICON_OPENURL_CANCEL   2
 
#define ICON_OPENURL_OPEN   3
 
#define ICON_OPENURL_MENU   4
 
#define ICON_ENTRY_NAME   1
 
#define ICON_ENTRY_URL   3
 
#define ICON_ENTRY_CANCEL   4
 
#define ICON_ENTRY_OK   5
 
#define ICON_ENTRY_RECENT   6
 
#define ICON_FOLDER_NAME   1
 
#define ICON_FOLDER_CANCEL   2
 
#define ICON_FOLDER_OK   3
 

Enumerations

enum  ro_gui_drag_type { GUI_DRAG_NONE , GUI_DRAG_DOWNLOAD_SAVE , GUI_DRAG_SAVE }
 

Functions

void ro_gui_open_window_request (wimp_open *open)
 Handle Open_Window_Request events. More...
 
void ro_gui_screen_size (int *width, int *height)
 Find screen size in OS units. More...
 
void ro_gui_view_source (struct hlcache_handle *c)
 Send the source of a content to a text editor. More...
 
void ro_gui_dump_browser_window (struct browser_window *bw)
 Send the debug dump of a content to a text editor. More...
 
void ro_gui_drag_box_start (wimp_pointer *pointer)
 
bool ro_gui_prequit (void)
 Test whether it's okay to shutdown, prompting the user if not. More...
 
const char * ro_gui_default_language (void)
 Determine the default language to use. More...
 
nserror ro_warn_user (const char *warning, const char *detail)
 Display a warning for a serious problem (eg memory exhaustion). More...
 
void die (const char *const error) __attribute__((noreturn))
 Cause an abnormal program termination. More...
 
void ro_gui_download_init (void)
 Load the download window template. More...
 
void ro_gui_download_datasave_ack (wimp_message *message)
 Handle Message_DataSaveAck for a drag from a download window. More...
 
bool ro_gui_download_prequit (void)
 Respond to PreQuit message, displaying a prompt message if we need the user to confirm the shutdown. More...
 
bool schedule_run (void)
 Process events up to current time. More...
 
nserror riscos_schedule (int t, void(*callback)(void *p), void *p)
 Schedule a callback. More...
 
void ro_gui_search_init (void)
 
void ro_gui_search_prepare (struct browser_window *g)
 Open the search dialog. More...
 
void ro_gui_print_init (void)
 Initialise the print dialog. More...
 
void ro_gui_print_prepare (struct gui_window *g)
 Prepares all aspects of the print dialog prior to opening. More...
 
bool ro_gui_theme_install_apply (wimp_w w)
 Install the downloaded theme. More...
 

Variables

int os_version
 
bool os_alpha_sprite_supported
 
const char * NETSURF_DIR
 
wimp_t task_handle
 RISC OS wimp task handle. More...
 
wimp_w dialog_info
 
wimp_w dialog_saveas
 
wimp_w dialog_zoom
 
wimp_w dialog_pageinfo
 
wimp_w dialog_objinfo
 
wimp_w dialog_tooltip
 
wimp_w dialog_warning
 
wimp_w dialog_openurl
 
wimp_w dialog_folder
 
wimp_w dialog_entry
 
wimp_w dialog_url_complete
 
wimp_w dialog_search
 
wimp_w dialog_print
 
wimp_w dialog_theme_install
 
wimp_w current_menu_window
 Window that owns the current menu. More...
 
bool current_menu_open
 Whether a menu is currently open. More...
 
wimp_menu * recent_search_menu
 
bool gui_redraw_debug
 
osspriteop_area * gui_sprites
 Sprite area containing pointer and hotlist sprites. More...
 
bool dialog_folder_add
 
bool dialog_entry_add
 
bool hotlist_insert
 
bool print_active
 
bool print_text_black
 
bool no_font_blending
 
ro_gui_drag_type gui_current_drag_type
 
bool riscos_done
 
struct gui_windowro_gui_current_redraw_gui
 GUI window which is being redrawn. More...
 
struct gui_download_tableriscos_download_table
 
bool sched_active
 Items have been scheduled. More...
 
os_t sched_time
 Time of soonest scheduled event (valid only if sched_active is true). More...
 
struct gui_search_tableriscos_search_table
 
const struct plotter_table ro_plotters
 RISC OS plotter operation table. More...
 
int ro_plot_origin_x
 
int ro_plot_origin_y
 
struct rect ro_plot_clip_rect
 

Macro Definition Documentation

◆ ICON_ENTRY_CANCEL

#define ICON_ENTRY_CANCEL   4

Definition at line 219 of file gui.h.

◆ ICON_ENTRY_NAME

#define ICON_ENTRY_NAME   1

Definition at line 217 of file gui.h.

◆ ICON_ENTRY_OK

#define ICON_ENTRY_OK   5

Definition at line 220 of file gui.h.

◆ ICON_ENTRY_RECENT

#define ICON_ENTRY_RECENT   6

Definition at line 221 of file gui.h.

◆ ICON_ENTRY_URL

#define ICON_ENTRY_URL   3

Definition at line 218 of file gui.h.

◆ ICON_FOLDER_CANCEL

#define ICON_FOLDER_CANCEL   2

Definition at line 224 of file gui.h.

◆ ICON_FOLDER_NAME

#define ICON_FOLDER_NAME   1

Definition at line 223 of file gui.h.

◆ ICON_FOLDER_OK

#define ICON_FOLDER_OK   3

Definition at line 225 of file gui.h.

◆ ICON_OBJINFO_ICON

#define ICON_OBJINFO_ICON   3

Definition at line 193 of file gui.h.

◆ ICON_OBJINFO_TARGET

#define ICON_OBJINFO_TARGET   1

Definition at line 191 of file gui.h.

◆ ICON_OBJINFO_TYPE

#define ICON_OBJINFO_TYPE   2

Definition at line 192 of file gui.h.

◆ ICON_OBJINFO_URL

#define ICON_OBJINFO_URL   0

Definition at line 190 of file gui.h.

◆ ICON_OPENURL_CANCEL

#define ICON_OPENURL_CANCEL   2

Definition at line 213 of file gui.h.

◆ ICON_OPENURL_MENU

#define ICON_OPENURL_MENU   4

Definition at line 215 of file gui.h.

◆ ICON_OPENURL_OPEN

#define ICON_OPENURL_OPEN   3

Definition at line 214 of file gui.h.

◆ ICON_OPENURL_URL

#define ICON_OPENURL_URL   1

Definition at line 212 of file gui.h.

◆ ICON_PAGEINFO_ENC

#define ICON_PAGEINFO_ENC   2

Definition at line 186 of file gui.h.

◆ ICON_PAGEINFO_ICON

#define ICON_PAGEINFO_ICON   4

Definition at line 188 of file gui.h.

◆ ICON_PAGEINFO_TITLE

#define ICON_PAGEINFO_TITLE   0

Definition at line 184 of file gui.h.

◆ ICON_PAGEINFO_TYPE

#define ICON_PAGEINFO_TYPE   3

Definition at line 187 of file gui.h.

◆ ICON_PAGEINFO_URL

#define ICON_PAGEINFO_URL   1

Definition at line 185 of file gui.h.

◆ ICON_SAVE_CANCEL

#define ICON_SAVE_CANCEL   3

Definition at line 182 of file gui.h.

◆ ICON_SAVE_ICON

#define ICON_SAVE_ICON   0

Definition at line 179 of file gui.h.

◆ ICON_SAVE_OK

#define ICON_SAVE_OK   2

Definition at line 181 of file gui.h.

◆ ICON_SAVE_PATH

#define ICON_SAVE_PATH   1

Definition at line 180 of file gui.h.

◆ ICON_SEARCH_CANCEL

#define ICON_SEARCH_CANCEL   4

Definition at line 203 of file gui.h.

◆ ICON_SEARCH_CASE_SENSITIVE

#define ICON_SEARCH_CASE_SENSITIVE   1

Definition at line 200 of file gui.h.

◆ ICON_SEARCH_FIND_NEXT

#define ICON_SEARCH_FIND_NEXT   2

Definition at line 201 of file gui.h.

◆ ICON_SEARCH_FIND_PREV

#define ICON_SEARCH_FIND_PREV   3

Definition at line 202 of file gui.h.

◆ ICON_SEARCH_MENU

#define ICON_SEARCH_MENU   8

Definition at line 205 of file gui.h.

◆ ICON_SEARCH_SHOW_ALL

#define ICON_SEARCH_SHOW_ALL   9

Definition at line 206 of file gui.h.

◆ ICON_SEARCH_STATUS

#define ICON_SEARCH_STATUS   5

Definition at line 204 of file gui.h.

◆ ICON_SEARCH_TEXT

#define ICON_SEARCH_TEXT   0

Definition at line 199 of file gui.h.

◆ ICON_STATUS_RESIZE

#define ICON_STATUS_RESIZE   0

Definition at line 176 of file gui.h.

◆ ICON_STATUS_TEXT

#define ICON_STATUS_TEXT   1

Definition at line 177 of file gui.h.

◆ ICON_THEME_INSTALL_CANCEL

#define ICON_THEME_INSTALL_CANCEL   2

Definition at line 210 of file gui.h.

◆ ICON_THEME_INSTALL_INSTALL

#define ICON_THEME_INSTALL_INSTALL   1

Definition at line 209 of file gui.h.

◆ ICON_THEME_INSTALL_MESSAGE

#define ICON_THEME_INSTALL_MESSAGE   0

Definition at line 208 of file gui.h.

◆ ICON_WARNING_CONTINUE

#define ICON_WARNING_CONTINUE   1

Definition at line 196 of file gui.h.

◆ ICON_WARNING_HELP

#define ICON_WARNING_HELP   2

Definition at line 197 of file gui.h.

◆ ICON_WARNING_MESSAGE

#define ICON_WARNING_MESSAGE   0

Definition at line 195 of file gui.h.

◆ RISCOS5

#define RISCOS5   0xAA

Definition at line 26 of file gui.h.

◆ RO_GUI_MAX_URL_SIZE

#define RO_GUI_MAX_URL_SIZE   2048

Definition at line 33 of file gui.h.

◆ THUMBNAIL_HEIGHT

#define THUMBNAIL_HEIGHT   86

Definition at line 29 of file gui.h.

◆ THUMBNAIL_WIDTH

#define THUMBNAIL_WIDTH   100

Definition at line 28 of file gui.h.

Enumeration Type Documentation

◆ ro_gui_drag_type

Enumerator
GUI_DRAG_NONE 
GUI_DRAG_DOWNLOAD_SAVE 
GUI_DRAG_SAVE 

Definition at line 69 of file gui.h.

Function Documentation

◆ die()

void die ( const char *const  error)

Cause an abnormal program termination.

Note
This never returns and is intended to terminate without any cleanup.
Parameters
errorThe message to display to the user.

Cause an abnormal program termination.

Should only be used during initialisation.

Definition at line 69 of file misc.c.

References messages_get(), NSLOG, and text().

Referenced by check_homedir(), fetch_rsrc_register(), gui_download_window_create(), gui_init(), gui_init_replicant(), main(), nsfont_check_fonts(), nsfont_init(), plot_init(), ro_gui_choose_language(), ro_gui_configure_initialise(), ro_gui_configure_register(), ro_gui_create_dirs(), ro_gui_dialog_create(), ro_gui_dialog_load_template(), ro_gui_dialog_open_url_init(), ro_gui_iconbar_initialise(), ro_gui_menu_define_menu(), ro_gui_menu_define_menu_add(), and ro_gui_saveas_create().

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

◆ riscos_schedule()

nserror riscos_schedule ( int  t,
void(*)(void *p)  callback,
void *  p 
)

Schedule a callback.

Parameters
tinterval before the callback should be made in ms
callbackcallback function
puser parameter, passed to callback function

The callback function will be called as soon as possible after t ms have passed.

Definition at line 93 of file schedule.c.

References sched_entry::callback, sched_entry::next, NSERROR_NOMEM, NSERROR_OK, NSLOG, sched_entry::p, sched_active, sched_queue, sched_time, schedule_remove(), and sched_entry::time.

Referenced by gui_download_window_done(), gui_download_window_error(), ro_gui_download_datasave_ack(), ro_gui_download_keypress(), ro_gui_download_overwrite_confirmed(), ro_gui_download_send_dataload(), ro_gui_download_update_status(), ro_gui_download_window_destroy(), ro_gui_hotlist_add_page(), ro_gui_hotlist_addurl_bounce(), ro_gui_progress_bar_animate(), ro_gui_progress_bar_destroy(), ro_gui_progress_bar_update(), ro_gui_status_bar_destroy(), and ro_gui_status_bar_set_text().

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

◆ ro_gui_default_language()

const char * ro_gui_default_language ( void  )

Determine the default language to use.

RISC OS has no standard way of determining which language the user prefers. We have to guess from the 'Country' setting.

Definition at line 1384 of file gui.c.

References is_dir(), NSLOG, and path().

Referenced by gui_get_resource_url(), ro_gui_choose_language(), and ro_gui_options_language_default().

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

◆ ro_gui_download_datasave_ack()

void ro_gui_download_datasave_ack ( wimp_message *  message)

Handle Message_DataSaveAck for a drag from a download window.

Parameters
messageblock returned by Wimp_Poll

Definition at line 1010 of file download.c.

References gui_download_window::ctx, download_window_current, nsoption_bool, riscos_schedule(), ro_gui_download_save(), ro_gui_download_send_dataload(), ro_gui_download_window_destroy_wrapper(), gui_download_window::save_message, and gui_download_window::send_dataload.

Referenced by ro_msg_datasave_ack().

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

◆ ro_gui_download_init()

void ro_gui_download_init ( void  )

Load the download window template.

Definition at line 189 of file download.c.

References download_progress_width, download_progress_x0, download_progress_y0, download_progress_y1, download_template, ICON_DOWNLOAD_PROGRESS, ICON_DOWNLOAD_STATUS, and ro_gui_dialog_load_template().

Referenced by gui_init().

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

◆ ro_gui_download_prequit()

bool ro_gui_download_prequit ( void  )

Respond to PreQuit message, displaying a prompt message if we need the user to confirm the shutdown.

Returns
true if we can shutdown straightaway

Definition at line 1680 of file download.c.

References download_window_list, and ro_gui_download_window_destroy().

Referenced by ro_gui_prequit().

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

◆ ro_gui_drag_box_start()

void ro_gui_drag_box_start ( wimp_pointer *  pointer)

◆ ro_gui_dump_browser_window()

void ro_gui_dump_browser_window ( struct browser_window bw)

Send the debug dump of a content to a text editor.

Definition at line 2353 of file gui.c.

References browser_window_debug_dump(), CONTENT_DEBUG_RENDER, NSLOG, and ro_warn_user().

Referenced by ro_gui_window_handle_local_keypress().

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

◆ ro_gui_open_window_request()

void ro_gui_open_window_request ( wimp_open *  open)

Handle Open_Window_Request events.

Definition at line 1901 of file gui.c.

References NSLOG, ro_gui_wimp_event_open_window(), and ro_warn_user().

Referenced by ro_gui_dialog_open(), ro_gui_dialog_open_centre_parent(), ro_gui_dialog_open_top(), ro_gui_dialog_open_xy(), and ro_gui_handle_event().

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

◆ ro_gui_prequit()

bool ro_gui_prequit ( void  )

Test whether it's okay to shutdown, prompting the user if not.

Returns
true iff it's okay to shutdown immediately

Definition at line 2145 of file gui.c.

References ro_gui_download_prequit().

Referenced by ro_gui_download_close_confirmed(), ro_gui_iconbar_menu_select(), and ro_msg_prequit().

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

◆ ro_gui_print_init()

void ro_gui_print_init ( void  )

◆ ro_gui_print_prepare()

void ro_gui_print_prepare ( struct gui_window g)

Prepares all aspects of the print dialog prior to opening.

Parameters
gparent window

Definition at line 158 of file print.c.

References dialog_print, ICON_PRINT_BG_IMAGES, ICON_PRINT_COPIES, ICON_PRINT_FG_IMAGES, ICON_PRINT_IN_BACKGROUND, ICON_PRINT_PRINT, ICON_PRINT_SHEETS, ICON_PRINT_SHEETS_VALUE, ICON_PRINT_SIDEWAYS, ICON_PRINT_TEXT_BLACK, ICON_PRINT_TO_BOTTOM, ICON_PRINT_UPRIGHT, NSLOG, print_bg_images, print_prev_message, print_update_sheets_shaded_state(), ro_gui_set_icon_integer(), ro_gui_set_icon_selected_state(), ro_gui_set_icon_shaded_state(), ro_gui_set_window_title(), ro_gui_wimp_event_memorise(), and ro_print_current_window.

Referenced by ro_gui_window_action_print(), and ro_gui_window_menu_warning().

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

◆ ro_gui_screen_size()

void ro_gui_screen_size ( int *  width,
int *  height 
)

Find screen size in OS units.

Definition at line 2343 of file gui.c.

References height, screen_info, and width.

Referenced by gui_window_create(), gui_window_set_extent(), ro_gui_configure_open_window(), ro_gui_dialog_open(), ro_gui_dialog_open_centre_parent(), ro_gui_dialog_open_top(), and ro_gui_window_menu_select().

Here is the caller graph for this function:

◆ ro_gui_search_init()

void ro_gui_search_init ( void  )

◆ ro_gui_search_prepare()

void ro_gui_search_prepare ( struct browser_window bw)

Open the search dialog.

Parameters
bwthe browser window to search

Definition at line 292 of file search.c.

References dialog_search, ICON_SEARCH_CASE_SENSITIVE, ICON_SEARCH_SHOW_ALL, ICON_SEARCH_TEXT, ro_gui_search_bw_searchable(), ro_gui_search_set_back_state(), ro_gui_search_set_forward_state(), ro_gui_search_set_status(), ro_gui_set_icon_selected_state(), ro_gui_set_icon_string(), ro_gui_wimp_event_memorise(), search_data, search_static_data::search_insert, and search_static_data::search_window.

Referenced by ro_gui_window_action_search(), and ro_gui_window_menu_warning().

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

◆ ro_gui_theme_install_apply()

bool ro_gui_theme_install_apply ( wimp_w  w)

Install the downloaded theme.

Parameters
wthe theme install window handle

Definition at line 171 of file theme_install.c.

References content_get_source_data(), theme_descriptor::leafname, theme_descriptor::name, NSLOG, nsoption_charp, nsoption_set_charp, ro_gui_save_options(), ro_gui_theme_apply(), ro_gui_theme_find(), ro_gui_theme_get_available(), ro_warn_user(), theme_install_content, and theme_install_descriptor.

Referenced by ro_gui_dialog_init().

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

◆ ro_gui_view_source()

void ro_gui_view_source ( struct hlcache_handle c)

Send the source of a content to a text editor.

Definition at line 1942 of file gui.c.

References content_get_source_data(), filename_request(), hlcache_handle_get_url(), netsurf_nsurl_to_path(), NSERROR_OK, NSLOG, ro_content_filetype(), ro_gui_view_source_bounce(), ro_message_send_message(), ro_warn_user(), and TEMP_FILENAME_PREFIX.

Referenced by ro_gui_window_handle_local_keypress(), and ro_gui_window_menu_select().

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

◆ ro_warn_user()

nserror ro_warn_user ( const char *  warning,
const char *  detail 
)

Display a warning for a serious problem (eg memory exhaustion).

Parameters
warningmessage key for warning message
detailadditional message, or 0

Definition at line 2077 of file gui.c.

References dialog_warning, ICON_WARNING_HELP, ICON_WARNING_MESSAGE, messages_get(), NSERROR_OK, NSLOG, ro_gui_dialog_open(), and ro_gui_set_icon_string().

Referenced by download_ro_filetype(), fetch_filetype(), fetch_mimetype(), gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), gui_download_window_error(), gui_drag_save_object(), gui_drag_save_selection(), gui_set_clipboard(), gui_start_selection(), gui_window_create(), gui_window_create_form_select_menu(), gui_window_destroy(), gui_window_drag_start(), gui_window_get_scroll(), gui_window_place_caret(), gui_window_remove_caret(), gui_window_scroll_start(), gui_window_set_extent(), gui_window_set_pointer(), gui_window_set_scroll(), gui_window_update_extent(), image_redraw_os(), main(), print_document(), print_send_printsave(), print_send_printtypeknown(), query_user_xy(), riscos_bitmap_save(), ro_cookie_init(), ro_cw_drag_end(), ro_cw_drag_start(), ro_filetype_from_unix_path(), ro_global_history_init(), ro_gui_button_bar_drag_end(), ro_gui_button_bar_get_config(), ro_gui_button_bar_icon_resize(), ro_gui_button_bar_icon_update(), ro_gui_check_resolvers(), ro_gui_configure_open_window(), ro_gui_dialog_close(), ro_gui_dialog_open(), ro_gui_dialog_open_at_pointer(), ro_gui_dialog_open_centre_parent(), ro_gui_dialog_open_top(), ro_gui_dialog_open_xy(), ro_gui_dialog_openurl_apply(), ro_gui_download_click(), ro_gui_download_drag_end(), ro_gui_download_keypress(), ro_gui_download_move(), ro_gui_download_save(), ro_gui_download_send_dataload(), ro_gui_download_update_status(), ro_gui_download_window_destroy(), ro_gui_download_window_hide_caret(), ro_gui_drag_box_cancel(), ro_gui_drag_icon(), ro_gui_drag_save_link(), ro_gui_dump_browser_window(), ro_gui_force_redraw_icon(), ro_gui_get_icon_selected_state(), ro_gui_get_icon_string(), ro_gui_get_screen_properties(), ro_gui_hotlist_present(), ro_gui_iconbar_click(), ro_gui_iconbar_menu_select(), ro_gui_ieurl_file_parse(), ro_gui_interactive_help_available(), ro_gui_interactive_help_broadcast(), ro_gui_interactive_help_request(), ro_gui_interactive_help_start(), ro_gui_keypress(), ro_gui_keypress_cb(), ro_gui_load_sprite_file(), ro_gui_menu_create(), ro_gui_menu_destroy(), ro_gui_menu_get_checksum(), ro_gui_menu_refresh(), ro_gui_menu_selection(), ro_gui_menu_warning(), ro_gui_open_window_request(), ro_gui_options_fonts_init_menu(), ro_gui_options_image_redraw(), ro_gui_options_language_ok(), ro_gui_options_theme_finalise(), ro_gui_options_theme_load(), ro_gui_popup_menu(), ro_gui_query_close(), ro_gui_query_window_bring_to_front(), ro_gui_save_clipboard(), ro_gui_save_complete(), ro_gui_save_content(), ro_gui_save_done(), ro_gui_save_drag_end(), ro_gui_save_link(), ro_gui_save_object_native(), ro_gui_save_ok(), ro_gui_save_set_state(), ro_gui_saveas_create(), ro_gui_saveas_quit(), ro_gui_search_add_recent(), ro_gui_selection_drag_end(), ro_gui_set_caret_first(), ro_gui_set_icon_button_type(), ro_gui_set_icon_deleted_state(), ro_gui_set_icon_selected_state(), ro_gui_set_icon_shaded_state(), ro_gui_set_icon_sprite(), ro_gui_set_icon_string(), ro_gui_set_window_title(), ro_gui_theme_add_descriptor(), ro_gui_theme_get_available_in_dir(), ro_gui_theme_install_apply(), ro_gui_theme_open(), ro_gui_throbber_icon_resize(), ro_gui_throbber_icon_update(), ro_gui_toolbar_dataload(), ro_gui_uri_file_parse(), ro_gui_url_bar_get_url_extent(), ro_gui_url_bar_icon_resize(), ro_gui_url_bar_icon_update(), ro_gui_url_bar_menu_select(), ro_gui_url_bar_set_url(), ro_gui_url_bar_take_caret(), ro_gui_url_complete_click(), ro_gui_url_complete_close(), ro_gui_url_complete_keypress(), ro_gui_url_complete_redraw(), ro_gui_url_complete_resize(), ro_gui_url_file_parse(), ro_gui_user_redraw(), ro_gui_view_source(), ro_gui_view_source_bounce(), ro_gui_wimp_cache_furniture_sizes(), ro_gui_wimp_check_window_furniture(), ro_gui_wimp_desktop_font(), ro_gui_wimp_event_menu_selection(), ro_gui_wimp_event_mouse_click(), ro_gui_wimp_event_prepare_gright_menu(), ro_gui_wimp_get_sprite_dimensions(), ro_gui_wimp_read_eig_factors(), ro_gui_wimp_sprite_exists(), ro_gui_wimp_update_window_furniture(), ro_gui_window_action_home(), ro_gui_window_action_local_history(), ro_gui_window_action_new_window(), ro_gui_window_close(), ro_gui_window_dataload(), ro_gui_window_handle_local_keypress(), ro_gui_window_iconise(), ro_gui_window_import_text(), ro_gui_window_invalidate_area(), ro_gui_window_launch_url(), ro_gui_window_menu_select(), ro_gui_window_open(), ro_gui_window_prepare_form_select_menu(), ro_gui_window_redraw(), ro_gui_window_scroll_action(), ro_gui_window_scroll_end(), ro_gui_window_to_window_pos(), ro_gui_window_toolbar_click(), ro_gui_window_update_boxes(), ro_hotlist_init(), ro_local_history_init(), ro_local_history_open(), ro_local_history_tooltip(), ro_message_send_message(), ro_message_send_message_to_window(), ro_mouse_drag_end(), ro_mouse_poll(), ro_msg_dataload(), ro_msg_dataopen(), ro_msg_datasave(), ro_msg_prequit(), ro_msg_save_desktop(), ro_pageinfo_init(), ro_pageinfo_open(), ro_path_to_nsurl(), ro_print_ack(), ro_print_error(), ro_toolbar_attach(), ro_toolbar_click(), ro_toolbar_create(), ro_toolbar_get_help_suffix(), ro_toolbar_process(), ro_toolbar_rebuild(), ro_toolbar_redraw(), ro_uri_message_received(), ro_url_broadcast(), ro_url_load(), ro_url_message_received(), theme_install_callback(), and theme_install_start().

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

◆ schedule_run()

bool schedule_run ( void  )

Process events up to current time.

Process scheduled callbacks up to current time.

Returns
The number of miliseconds until the next scheduled event.

Definition at line 137 of file schedule.c.

Variable Documentation

◆ current_menu_open

bool current_menu_open
extern

Whether a menu is currently open.

Definition at line 98 of file menus.c.

Referenced by ro_gui_menu_closed(), ro_gui_menu_create(), ro_gui_menu_get_checksum(), and ro_gui_menu_refresh().

◆ current_menu_window

wimp_w current_menu_window
extern

◆ dialog_entry

wimp_w dialog_entry

Definition at line 58 of file gui.h.

◆ dialog_entry_add

bool dialog_entry_add

Definition at line 65 of file gui.h.

◆ dialog_folder

wimp_w dialog_folder

Definition at line 58 of file gui.h.

◆ dialog_folder_add

bool dialog_folder_add
extern

◆ dialog_info

wimp_w dialog_info
extern

Definition at line 75 of file dialog.c.

Referenced by ro_gui_dialog_init(), and ro_gui_iconbar_initialise().

◆ dialog_objinfo

wimp_w dialog_objinfo

Definition at line 57 of file gui.h.

◆ dialog_openurl

wimp_w dialog_openurl

Definition at line 57 of file gui.h.

◆ dialog_pageinfo

wimp_w dialog_pageinfo

Definition at line 56 of file gui.h.

◆ dialog_print

wimp_w dialog_print

Definition at line 59 of file gui.h.

◆ dialog_saveas

wimp_w dialog_saveas

Definition at line 56 of file gui.h.

◆ dialog_search

wimp_w dialog_search

Definition at line 59 of file gui.h.

◆ dialog_theme_install

wimp_w dialog_theme_install

Definition at line 59 of file gui.h.

Referenced by ro_gui_dialog_init().

◆ dialog_tooltip

wimp_w dialog_tooltip

Definition at line 57 of file gui.h.

◆ dialog_url_complete

wimp_w dialog_url_complete

Definition at line 58 of file gui.h.

◆ dialog_warning

wimp_w dialog_warning

Definition at line 57 of file gui.h.

◆ dialog_zoom

wimp_w dialog_zoom

Definition at line 56 of file gui.h.

◆ gui_current_drag_type

ro_gui_drag_type gui_current_drag_type
extern

◆ gui_redraw_debug

bool gui_redraw_debug
extern

◆ gui_sprites

osspriteop_area* gui_sprites
extern

Sprite area containing pointer and hotlist sprites.

Definition at line 118 of file gui.c.

Referenced by gui_init(), gui_quit(), gui_window_set_pointer(), ro_gui_dialog_create(), and ro_gui_dialog_open_url_init().

◆ hotlist_insert

bool hotlist_insert

Definition at line 65 of file gui.h.

◆ NETSURF_DIR

const char* NETSURF_DIR
extern

Definition at line 110 of file gui.c.

Referenced by gui_init(), ro_gui_options_image_initialise(), and ro_msg_save_desktop().

◆ no_font_blending

bool no_font_blending
extern

◆ os_alpha_sprite_supported

bool os_alpha_sprite_supported
extern

Definition at line 98 of file gui.c.

Referenced by gui_init(), and image_redraw().

◆ os_version

int os_version
extern

◆ print_active

bool print_active
extern

Definition at line 81 of file print.c.

Referenced by image_redraw_tinct(), nsfont_paint(), and print_document().

◆ print_text_black

bool print_text_black

Definition at line 66 of file gui.h.

◆ recent_search_menu

wimp_menu* recent_search_menu
extern

◆ riscos_done

bool riscos_done
extern

◆ riscos_download_table

struct gui_download_table* riscos_download_table
extern

Definition at line 1697 of file download.c.

Referenced by main().

◆ riscos_search_table

struct gui_search_table* riscos_search_table
extern

Definition at line 85 of file search.c.

Referenced by main().

◆ ro_gui_current_redraw_gui

struct gui_window* ro_gui_current_redraw_gui
extern

GUI window which is being redrawn.

Valid only during redraw.

Definition at line 124 of file window.c.

Referenced by print_document(), ro_gui_window_redraw(), and ro_gui_window_update_boxes().

◆ ro_plot_clip_rect

struct rect ro_plot_clip_rect
extern

Definition at line 42 of file plotters.c.

Referenced by ro_cw_redraw(), ro_gui_window__redraw_rect(), and ro_plot_clip().

◆ ro_plot_origin_x

int ro_plot_origin_x
extern

◆ ro_plot_origin_y

int ro_plot_origin_y
extern

◆ ro_plotters

const struct plotter_table ro_plotters
extern

◆ sched_active

bool sched_active
extern

Items have been scheduled.

Definition at line 50 of file schedule.c.

Referenced by riscos_poll(), riscos_schedule(), schedule_remove(), and schedule_run().

◆ sched_time

os_t sched_time
extern

Time of soonest scheduled event (valid only if sched_active is true).

Definition at line 52 of file schedule.c.

Referenced by riscos_poll(), riscos_schedule(), schedule_remove(), and schedule_run().

◆ task_handle

wimp_t task_handle
extern

RISC OS wimp task handle.

Definition at line 116 of file gui.c.

Referenced by gui_init(), gui_quit(), ro_gui_selection_claim_entity(), and ro_uri_launch().