From ddb2b9871649a38eec0a3e2465fe433fc82186e4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 9 Sep 2003 19:25:28 +0000 Subject: [project @ 2003-09-09 19:25:28 by jmb] Forms: [input type=image] support, passwords are now displayed as asterisks svn path=/import/netsurf/; revision=275 --- render/box.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index a00daee48..002bb0601 100644 --- a/render/box.h +++ b/render/box.h @@ -40,7 +40,8 @@ struct formoption { struct gui_gadget { enum { GADGET_HIDDEN = 0, GADGET_TEXTBOX, GADGET_RADIO, GADGET_CHECKBOX, - GADGET_SELECT, GADGET_TEXTAREA, GADGET_ACTIONBUTTON } type; + GADGET_SELECT, GADGET_TEXTAREA, GADGET_ACTIONBUTTON, + GADGET_IMAGE, GADGET_PASSWORD } type; char* name; struct form* form; union { @@ -52,11 +53,23 @@ struct gui_gadget { char* text; int size; } textbox; + struct { + unsigned int maxlength; + char* text; + int size; + } password; struct { char* butttype; char* label; int pressed; } actionbutt; + struct { + char* name; + char* value; + char* n; + int width, height; + int mx, my; + } image; struct { int numitems; struct formoption* items; -- cgit v1.2.3