summaryrefslogtreecommitdiff
path: root/desktop/browser.h
diff options
context:
space:
mode:
authorPhil Mellor <phil@monkeyson.info>2002-12-30 22:56:30 +0000
committerPhil Mellor <phil@monkeyson.info>2002-12-30 22:56:30 +0000
commit20ea5ea00fce47a834421d87d800226a5b7441cd (patch)
tree81d2f6bf5cee5d048d74a9e9b7e52c5b67a6bbfb /desktop/browser.h
parent8cce8f76b46c4b8298db1c4bdf5c4d1cfe43c25c (diff)
downloadnetsurf-20ea5ea00fce47a834421d87d800226a5b7441cd.tar.gz
netsurf-20ea5ea00fce47a834421d87d800226a5b7441cd.tar.bz2
[project @ 2002-12-30 22:56:30 by monkeyson]
Forms are now interactive - user can manipulate checkbox, radio, text, textarea, select elements. svn path=/import/netsurf/; revision=76
Diffstat (limited to 'desktop/browser.h')
-rw-r--r--desktop/browser.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index 50fc3faf7..9da3b1811 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -1,5 +1,5 @@
/**
- * $Id: browser.h,v 1.4 2002/11/02 22:28:05 bursa Exp $
+ * $Id: browser.h,v 1.5 2002/12/30 22:56:30 monkeyson Exp $
*/
#ifndef _NETSURF_DESKTOP_BROWSER_H_
@@ -60,6 +60,7 @@ struct content
int selected; /* 0 = unselected, 1 = selected */
} text_selection;
struct font_set* fonts;
+ struct page_elements elements;
} html;
} data;
struct fetch* main_fetch;
@@ -124,7 +125,8 @@ struct browser_action
enum { act_UNKNOWN,
act_MOUSE_AT, act_MOUSE_CLICK, act_START_NEW_SELECTION,
act_ALTER_SELECTION, act_CLEAR_SELECTION,
- act_FOLLOW_LINK, act_FOLLOW_LINK_NEW_WINDOW
+ act_FOLLOW_LINK, act_FOLLOW_LINK_NEW_WINDOW,
+ act_GADGET_SELECT
} type;
union {
struct {
@@ -132,9 +134,21 @@ struct browser_action
int y;
action_buttons buttons;
} mouse;
+ struct {
+ struct gui_gadget* g;
+ int item;
+ } gadget_select;
} data;
};
+struct box_selection
+{
+ struct box* box;
+ int actual_x;
+ int actual_y;
+ int plot_index;
+};
+
/* public functions */
struct browser_window* create_browser_window(int flags, int width, int height);