NetSurf
Data Structures | Typedefs | Functions | Variables
gui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bbox_s
 

Typedefs

typedef struct bbox_s bbox_t
 

Functions

void win32_run (void)
 Run the win32 message loop with scheduling. More...
 
void win32_set_quit (bool q)
 cause the main message loop to exit More...
 
nserror win32_warning (const char *warning, const char *detail)
 Warn the user of an event. More...
 
nserror win32_report_nserror (nserror error, const char *detail)
 Warn the user of an unexpected nserror. More...
 
nserror nsw32_add_dialog (HWND hwndDlg)
 add a modeless dialog to the special handling list More...
 
nserror nsw32_del_dialog (HWND hwndDlg)
 remove a modeless dialog from the special handling list More...
 

Variables

HINSTANCE hinst
 win32 application instance handle. More...
 
char * G_config_path
 path to where all user config files are held. More...
 
char ** G_resource_pathv
 resource search path vector. More...
 

Typedef Documentation

◆ bbox_t

typedef struct bbox_s bbox_t

Function Documentation

◆ nsw32_add_dialog()

nserror nsw32_add_dialog ( HWND  hwndDlg)

add a modeless dialog to the special handling list

Definition at line 63 of file gui.c.

References dlglist, dialog_list_entry::hwnd, dialog_list_entry::next, NSERROR_NOMEM, and NSERROR_OK.

◆ nsw32_del_dialog()

nserror nsw32_del_dialog ( HWND  hwndDlg)

remove a modeless dialog from the special handling list

Definition at line 79 of file gui.c.

References dlglist, dialog_list_entry::hwnd, dialog_list_entry::next, NSERROR_NOT_FOUND, NSERROR_OK, and NSLOG.

◆ win32_report_nserror()

nserror win32_report_nserror ( nserror  error,
const char *  detail 
)

Warn the user of an unexpected nserror.

Parameters
[in]errorThe nserror to report
[in]detailAdditional text to be displayed or NULL.
Returns
NSERROR_OK on success or error code if there was a faliure displaying the message to the user.

Definition at line 187 of file gui.c.

References messages_get_errorcode(), and NSERROR_OK.

Referenced by nsws_window_command(), and nsws_window_go().

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

◆ win32_run()

void win32_run ( void  )

Run the win32 message loop with scheduling.

Definition at line 130 of file gui.c.

References handle_dialog_message(), NSERROR_OK, NSLOG, schedule_run(), and win32_quit.

Referenced by WinMain().

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

◆ win32_set_quit()

void win32_set_quit ( bool  q)

cause the main message loop to exit

Definition at line 124 of file gui.c.

References win32_quit.

Referenced by nsws_window_event_callback().

Here is the caller graph for this function:

◆ win32_warning()

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

Warn the user of an event.

Parameters
[in]warningA warning looked up in the message translation table
[in]detailAdditional text to be displayed or NULL.
Returns
NSERROR_OK on success or error code if there was a faliure displaying the message to the user.

Definition at line 173 of file gui.c.

References messages_get(), and NSERROR_OK.

Referenced by gui_download_window_create(), nsw32_about_dialog_init(), nsws_prefs_font_prepare(), nsws_window_command(), and WinMain().

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

Variable Documentation

◆ G_config_path

char* G_config_path
extern

path to where all user config files are held.

Definition at line 51 of file gui.c.

Referenced by nsw32_option_init(), nsws_prefs_save(), and set_defaults().

◆ G_resource_pathv

char** G_resource_pathv
extern

resource search path vector.

Definition at line 48 of file gui.c.

Referenced by nsw32_get_resource_url(), nsw32_option_init(), and set_defaults().

◆ hinst

HINSTANCE hinst
extern

win32 application instance handle.

This handle is set in the main windows entry point.

Definition at line 45 of file gui.c.

Referenced by nsw32_about_dialog_init(), nsw32_cookies_present(), nsws_download_window_up(), nsws_prefs_dialog_init(), nsws_window_command(), win32_window_create(), and WinMain().