summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-28 23:41:07 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-28 23:41:07 +0000
commit73f7db2a75a7cee2add50973e8861b767f5bb650 (patch)
treebc546b7a31ae7b7f95e83ae42d6568c4df23fdc4 /render/box.h
parentfd7078b1ad470c3de96d32c3699eb862259df990 (diff)
downloadnetsurf-73f7db2a75a7cee2add50973e8861b767f5bb650.tar.gz
netsurf-73f7db2a75a7cee2add50973e8861b767f5bb650.tar.bz2
[project @ 2003-09-28 23:41:06 by bursa]
Rewrite text and password inputs to stop using wimp icons. svn path=/import/netsurf/; revision=330
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/render/box.h b/render/box.h
index 0dad5400d..279463346 100644
--- a/render/box.h
+++ b/render/box.h
@@ -49,21 +49,15 @@ struct gui_gadget {
char *value;
char *initial_value;
struct form* form;
- union {
+ struct box *caret_inline_container;
+ struct box *caret_text_box;
+ int caret_char_offset;
+ unsigned int maxlength;
+ union {
struct {
char* value;
} hidden;
struct {
- unsigned int maxlength;
- char* text;
- int size;
- } textbox;
- struct {
- unsigned int maxlength;
- char* text;
- int size;
- } password;
- struct {
char* name;
char* value;
char* n;
@@ -84,11 +78,6 @@ struct gui_gadget {
int selected;
char* value;
} radio;
- struct {
- struct box *caret_inline_container;
- struct box *caret_text_box;
- int caret_char_offset;
- } textarea;
} data;
};
@@ -122,7 +111,8 @@ struct plugin_params {
struct box {
box_type type;
struct css_style * style;
- unsigned long x, y, width, height;
+ long x, y;
+ unsigned long width, height;
unsigned long min_width, max_width;
char * text;
unsigned int space : 1; /* 1 <=> followed by a space */