NetSurf
|
Go to the source code of this file.
Macros | |
#define | SBUF8_TO_LBUF8(sbuf, lbuf) |
#define | RECT_TO_GRECT(r, g) |
#define | BY_WINDOM_HANDLE 0x0 |
#define | BY_GEM_HANDLE 0x1 |
Typedefs | |
typedef int(* | scan_process_callback) (int pid, void *data) |
Functions | |
struct gui_window * | find_guiwin_by_aes_handle (short handle) |
bool | is_process_running (const char *name) |
void | gem_set_cursor (MFORM_EX *cursor) |
void | dbg_grect (const char *str, GRECT *r) |
void | dbg_pxy (const char *str, short *pxy) |
void | dbg_rect (const char *str, int *pxy) |
const char * | file_select (const char *title, const char *name) |
Show default file selector. More... | |
long | nkc_to_input_key (short nkc, long *ucs4_out) |
Convert NKC to netsurf input key code and/or to ucs4 (depends on keycode). More... | |
void | die (const char *const error) __attribute__((noreturn)) |
Cause an abnormal program termination. More... | |
nserror | atari_warn_user (const char *warning, const char *detail) |
Warn the user of an event. More... | |
#define RECT_TO_GRECT | ( | r, | |
g | |||
) |
#define SBUF8_TO_LBUF8 | ( | sbuf, | |
lbuf | |||
) |
nserror atari_warn_user | ( | const char * | warning, |
const char * | detail | ||
) |
Warn the user of an event.
[in] | warning | A warning looked up in the message translation table |
[in] | detail | Additional text to be displayed or NULL. |
Definition at line 56 of file misc.c.
References messages_get(), and NSERROR_OK.
Referenced by atari_about_show(), atari_treeview_create(), context_popup(), gui_download_window_create(), main(), menu_new_win(), menu_open_file(), read_locales(), toolbar_home_click(), and toolbar_key_input().
void die | ( | const char *const | error | ) |
const char * file_select | ( | const char * | title, |
const char * | name | ||
) |
Show default file selector.
title | The selector title. |
name | Default file name |
Definition at line 363 of file misc.c.
References path(), and PATH_MAX.
Referenced by handle_filesystem_select_button(), menu_open_file(), and menu_save_page().
struct gui_window * find_guiwin_by_aes_handle | ( | short | handle | ) |
Definition at line 77 of file misc.c.
References gui_window::next, gui_window::root, s_gui_win_root::win, and window_list.
void gem_set_cursor | ( | MFORM_EX * | cursor | ) |
Definition at line 196 of file misc.c.
References mform_ex_s::flags, MFORM_EX_FLAG_USERFORM, mform_ex_s::number, and mform_ex_s::tree.
Referenced by gui_init(), gui_window_set_pointer(), handle_event(), and on_mbutton_event().
bool is_process_running | ( | const char * | name | ) |
Definition at line 186 of file misc.c.
References is_process_running_callback_data::found, proc_running_callback(), and scan_process_list().
long nkc_to_input_key | ( | short | nkc, |
long * | ucs4_out | ||
) |
Convert NKC to netsurf input key code and/or to ucs4 (depends on keycode).
[in] | nkc | atari normalized key code |
[out] | ucs4_out | The ucs4 converted keycode |
Definition at line 213 of file misc.c.
References atari_to_ucs4(), NS_KEY_COPY_SELECTION, NS_KEY_CR, NS_KEY_CUT_SELECTION, NS_KEY_DELETE_LEFT, NS_KEY_DELETE_RIGHT, NS_KEY_DOWN, NS_KEY_ESCAPE, NS_KEY_LEFT, NS_KEY_LINE_END, NS_KEY_LINE_START, NS_KEY_NL, NS_KEY_PAGE_DOWN, NS_KEY_PAGE_UP, NS_KEY_PASTE, NS_KEY_RIGHT, NS_KEY_SELECT_ALL, NS_KEY_SHIFT_TAB, NS_KEY_TAB, NS_KEY_TEXT_START, NS_KEY_UNDO, and NS_KEY_UP.
Referenced by on_content_keypress(), on_keybd_event(), and toolbar_key_input().