diff options
author | Phil Mellor <phil@monkeyson.info> | 2002-12-30 02:06:03 +0000 |
---|---|---|
committer | Phil Mellor <phil@monkeyson.info> | 2002-12-30 02:06:03 +0000 |
commit | 33a91eb2febbc2e28581a17207d01a972c898504 (patch) | |
tree | c11e52273bc16d0988f41c1483bf9da502a01933 /render/box.h | |
parent | 50fc20c2d4883b399fcee8c7a2905605304d9e40 (diff) | |
download | netsurf-33a91eb2febbc2e28581a17207d01a972c898504.tar.gz netsurf-33a91eb2febbc2e28581a17207d01a972c898504.tar.bz2 |
[project @ 2002-12-30 02:06:03 by monkeyson]
Started support for img tag - doesn't attempt to fetch/render images yet.
Combo boxes in forms.
svn path=/import/netsurf/; revision=72
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/render/box.h b/render/box.h index 05f7ffeb8..e978662ad 100644 --- a/render/box.h +++ b/render/box.h @@ -1,5 +1,5 @@ /** - * $Id: box.h,v 1.13 2002/12/29 22:27:35 monkeyson Exp $ + * $Id: box.h,v 1.14 2002/12/30 02:06:03 monkeyson Exp $ */ #ifndef _NETSURF_RENDER_BOX_H_ @@ -27,9 +27,16 @@ struct column { unsigned long min, max, width; }; +struct formoption { + int selected; + char* value; + char* text; + struct formoption* next; +}; + struct gui_gadget { enum { GADGET_HIDDEN = 0, GADGET_TEXTBOX, GADGET_RADIO, GADGET_OPTION, - GADGET_COMBO, GADGET_LIST, GADGET_TEXTAREA, GADGET_ACTIONBUTTON } type; + GADGET_SELECT, GADGET_TEXTAREA, GADGET_ACTIONBUTTON } type; union { struct { int maxlength; @@ -39,9 +46,22 @@ struct gui_gadget { struct { char* label; } actionbutt; + struct { + int numitems; + struct formoption* items; + int size; + int multiple; + } select; } data; }; +struct img { + int width; + int height; + char* alt; + char* src; +}; + struct box { box_type type; xmlNode * node; @@ -62,6 +82,7 @@ struct box { struct column *col; struct font_data *font; struct gui_gadget* gadget; + struct img* img; }; #define UNKNOWN_WIDTH ULONG_MAX @@ -74,7 +95,8 @@ struct box { void xml_to_box(xmlNode * n, struct css_style * parent_style, struct css_stylesheet * stylesheet, struct css_selector ** selector, unsigned int depth, struct box * parent, struct box * inline_container, - const char *href, struct font_set *fonts); + const char *href, struct font_set *fonts, + struct gui_gadget* current_select, struct formoption* current_option); void box_dump(struct box * box, unsigned int depth); void box_free(struct box *box); |