2002-09-11 18:24:02 +04:00
|
|
|
/**
|
2003-03-04 01:40:39 +03:00
|
|
|
* $Id: gui.h,v 1.4 2003/03/03 22:40:39 bursa Exp $
|
2002-09-11 18:24:02 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_GUI_H_
|
|
|
|
#define _NETSURF_RISCOS_GUI_H_
|
|
|
|
|
|
|
|
#include "oslib/wimp.h"
|
|
|
|
|
|
|
|
struct ro_gui_window;
|
|
|
|
typedef struct ro_gui_window gui_window;
|
|
|
|
|
2003-03-04 01:40:39 +03:00
|
|
|
unsigned long ro_x_units (unsigned long browser_units);
|
|
|
|
unsigned long ro_y_units (unsigned long browser_units);
|
|
|
|
unsigned long browser_x_units (unsigned long ro_units) ;
|
|
|
|
unsigned long browser_y_units (unsigned long ro_units) ;
|
2002-09-11 18:24:02 +04:00
|
|
|
|
|
|
|
struct ro_gui_window
|
|
|
|
{
|
|
|
|
gui_window_type type;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
wimp_w window;
|
|
|
|
wimp_w toolbar;
|
2002-10-15 14:41:12 +04:00
|
|
|
int toolbar_width;
|
2002-09-11 18:24:02 +04:00
|
|
|
struct browser_window* bw;
|
|
|
|
} browser;
|
|
|
|
} data;
|
|
|
|
|
|
|
|
char status[256];
|
|
|
|
char title[256];
|
|
|
|
char url[256];
|
|
|
|
gui_window* next;
|
|
|
|
|
2002-10-15 14:41:12 +04:00
|
|
|
int throbber;
|
|
|
|
float throbtime;
|
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
gui_safety redraw_safety;
|
|
|
|
enum { drag_NONE, drag_UNKNOWN, drag_BROWSER_TEXT_SELECTION } drag_status;
|
|
|
|
};
|
|
|
|
|
|
|
|
#include "netsurf/desktop/browser.h"
|
|
|
|
|
|
|
|
void ro_gui_window_click(gui_window* g, wimp_pointer* mouse);
|
|
|
|
//void ro_gui_window_mouse_at(gui_window* g, wimp_pointer* mouse);
|
|
|
|
void ro_gui_window_open(gui_window* g, wimp_open* open);
|
|
|
|
void ro_gui_window_redraw(gui_window* g, wimp_draw* redraw);
|
|
|
|
//void ro_gui_window_keypress(gui_window* g, wimp_key* key);
|
2002-12-31 01:56:30 +03:00
|
|
|
void gui_remove_gadget(struct gui_gadget* g);
|
2002-09-11 18:24:02 +04:00
|
|
|
|
|
|
|
#endif
|