2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
2004-02-25 18:12:58 +03:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Interface to platform-specific gui functions.
|
2002-09-11 18:24:02 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_DESKTOP_GUI_H_
|
|
|
|
#define _NETSURF_DESKTOP_GUI_H_
|
|
|
|
|
2003-08-28 23:21:27 +04:00
|
|
|
struct gui_window;
|
|
|
|
typedef struct gui_window gui_window;
|
2003-07-18 03:01:02 +04:00
|
|
|
|
2003-11-06 22:41:41 +03:00
|
|
|
#include <stdbool.h>
|
2002-09-11 18:24:02 +04:00
|
|
|
#include "netsurf/desktop/browser.h"
|
|
|
|
|
2003-12-28 19:17:31 +03:00
|
|
|
bool gui_window_in_list(gui_window *g);
|
2003-08-28 23:21:27 +04:00
|
|
|
gui_window *gui_create_browser_window(struct browser_window *bw);
|
|
|
|
gui_window *gui_create_download_window(struct content *content);
|
2002-09-11 18:24:02 +04:00
|
|
|
void gui_window_destroy(gui_window* g);
|
|
|
|
void gui_window_show(gui_window* g);
|
|
|
|
void gui_window_hide(gui_window* g);
|
2003-03-04 01:40:39 +03:00
|
|
|
void gui_window_redraw(gui_window* g, unsigned long x0, unsigned long y0,
|
|
|
|
unsigned long x1, unsigned long y1);
|
2002-09-11 18:24:02 +04:00
|
|
|
void gui_window_redraw_window(gui_window* g);
|
2003-03-04 14:59:36 +03:00
|
|
|
void gui_window_set_scroll(gui_window* g, unsigned long sx, unsigned long sy);
|
2003-03-04 01:40:39 +03:00
|
|
|
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);
|
2003-01-11 20:33:31 +03:00
|
|
|
void gui_window_set_title(gui_window* g, char* title);
|
2003-12-26 03:17:55 +03:00
|
|
|
void gui_window_set_url(gui_window *g, char *url);
|
2002-09-11 18:24:02 +04:00
|
|
|
|
2003-08-28 23:21:27 +04:00
|
|
|
void gui_download_window_update_status(gui_window *g);
|
|
|
|
void gui_download_window_done(gui_window *g);
|
|
|
|
void gui_download_window_error(gui_window *g, const char *error);
|
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
void gui_init(int argc, char** argv);
|
|
|
|
void gui_multitask(void);
|
2003-11-06 22:41:41 +03:00
|
|
|
void gui_poll(bool active);
|
2003-11-08 02:51:13 +03:00
|
|
|
void gui_quit(void);
|
2002-09-11 18:24:02 +04:00
|
|
|
|
2002-10-15 14:41:12 +04:00
|
|
|
void gui_window_start_throbber(gui_window* g);
|
|
|
|
void gui_window_stop_throbber(gui_window* g);
|
|
|
|
|
2003-10-25 04:35:49 +04:00
|
|
|
void gui_gadget_combo(struct browser_window* bw, struct form_control* g, unsigned long mx, unsigned long my);
|
2003-06-02 03:02:56 +04:00
|
|
|
|
2003-09-23 01:55:08 +04:00
|
|
|
void gui_window_place_caret(gui_window *g, int x, int y, int height);
|
|
|
|
|
2004-02-25 18:12:58 +03:00
|
|
|
void warn_user(const char *warning);
|
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
#endif
|