diff options
author | James Bursa <james@netsurf-browser.org> | 2004-07-17 13:00:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-07-17 13:00:38 +0000 |
commit | e4a6e982e599020060d8e43262d53ade0667f439 (patch) | |
tree | a3f76f00f0d2154834036e25b4747b322260ce19 /desktop | |
parent | b6782d609583900d14d51272075408072f2e501c (diff) | |
download | netsurf-e4a6e982e599020060d8e43262d53ade0667f439.tar.gz netsurf-e4a6e982e599020060d8e43262d53ade0667f439.tar.bz2 |
[project @ 2004-07-17 13:00:38 by bursa]
Simplify gui_window structure. Clean up various parts of the gui code.
svn path=/import/netsurf/; revision=1092
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.h | 8 | ||||
-rw-r--r-- | desktop/gui.h | 36 |
2 files changed, 21 insertions, 23 deletions
diff --git a/desktop/browser.h b/desktop/browser.h index 4f8443388..1a3427107 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -17,11 +17,11 @@ #include <time.h> #include "netsurf/utils/config.h" #include "netsurf/content/content.h" -#include "netsurf/desktop/gui.h" struct box; -struct history; struct form_successful_control; +struct gui_window; +struct history; /** Browser window data. */ struct browser_window @@ -41,8 +41,8 @@ struct browser_window /** User parameter for caret_callback. */ void *caret_p; - /** Platform specific window handle. */ - gui_window *window; + /** Platform specific window data. */ + struct gui_window *window; /** Busy indicator is active. */ bool throbbing; diff --git a/desktop/gui.h b/desktop/gui.h index 84ee43cb9..bef7f2362 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -15,7 +15,7 @@ struct gui_window; struct gui_download_window; -typedef struct gui_window gui_window; + typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET, GUI_POINTER_MENU, GUI_POINTER_UD, GUI_POINTER_LR, GUI_POINTER_LD, GUI_POINTER_RD, GUI_POINTER_CROSS, @@ -25,20 +25,20 @@ typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET, #include "netsurf/content/content.h" #include "netsurf/desktop/browser.h" -gui_window *gui_create_browser_window(struct browser_window *bw, +struct gui_window *gui_create_browser_window(struct browser_window *bw, struct browser_window *clone); -void gui_window_destroy(gui_window* g); -void gui_window_redraw(gui_window* g, unsigned long x0, unsigned long y0, - unsigned long x1, unsigned long y1); -void gui_window_redraw_window(gui_window* g); -void gui_window_update_box(gui_window *g, const union content_msg_data *data); -void gui_window_set_scroll(gui_window* g, unsigned long sx, unsigned long sy); -unsigned long gui_window_get_width(gui_window* g); -void gui_window_set_extent(gui_window* g, unsigned long width, unsigned long height); -void gui_window_set_status(gui_window* g, const char* text); +void gui_window_destroy(struct gui_window *g); +void gui_window_set_title(struct gui_window *g, const char *title); +void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1); +void gui_window_redraw_window(struct gui_window *g); +void gui_window_update_box(struct gui_window *g, + const union content_msg_data *data); +void gui_window_set_scroll(struct gui_window *g, int sx, int sy); +int gui_window_get_width(struct gui_window *g); +void gui_window_set_extent(struct gui_window *g, int width, int height); +void gui_window_set_status(struct gui_window *g, const char *text); void gui_window_set_pointer(gui_pointer_shape shape); -void gui_window_set_title(gui_window* g, char* title); -void gui_window_set_url(gui_window *g, char *url); +void gui_window_set_url(struct gui_window *g, const char *url); struct gui_download_window *gui_download_window_create(const char *url, const char *mime_type, struct fetch *fetch, @@ -50,21 +50,19 @@ void gui_download_window_error(struct gui_download_window *dw, void gui_download_window_done(struct gui_download_window *dw); void gui_init(int argc, char** argv); -void gui_window_clone_options(struct browser_window *new_bw, struct browser_window *old_bw); -void gui_window_default_options(struct browser_window *bw); void gui_multitask(void); void gui_poll(bool active); void gui_quit(void); -void gui_window_start_throbber(gui_window* g); -void gui_window_stop_throbber(gui_window* g); +void gui_window_start_throbber(struct gui_window *g); +void gui_window_stop_throbber(struct gui_window *g); void gui_gadget_combo(struct browser_window* bw, struct form_control* g, unsigned long mx, unsigned long my); -void gui_window_place_caret(gui_window *g, int x, int y, int height); +void gui_window_place_caret(struct gui_window *g, int x, int y, int height); void gui_launch_url(const char *url); -void gui_window_new_content(gui_window *g); +void gui_window_new_content(struct gui_window *g); #endif |