summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
authorPhil Mellor <phil@monkeyson.info>2002-12-29 22:27:35 +0000
committerPhil Mellor <phil@monkeyson.info>2002-12-29 22:27:35 +0000
commit50fc20c2d4883b399fcee8c7a2905605304d9e40 (patch)
tree3f21c3c55f30504832a90da14785c42f8c0e4781 /render/box.h
parent0eec3d6d4ffbcfefd9593298530632c8ccf90760 (diff)
downloadnetsurf-50fc20c2d4883b399fcee8c7a2905605304d9e40.tar.gz
netsurf-50fc20c2d4883b399fcee8c7a2905605304d9e40.tar.bz2
[project @ 2002-12-29 22:27:35 by monkeyson]
Font anti-alias colours corrected. Begin displaying form elements - text, password, submit, reset svn path=/import/netsurf/; revision=71
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/render/box.h b/render/box.h
index ad5290d34..05f7ffeb8 100644
--- a/render/box.h
+++ b/render/box.h
@@ -1,5 +1,5 @@
/**
- * $Id: box.h,v 1.12 2002/12/27 17:28:19 bursa Exp $
+ * $Id: box.h,v 1.13 2002/12/29 22:27:35 monkeyson Exp $
*/
#ifndef _NETSURF_RENDER_BOX_H_
@@ -27,6 +27,21 @@ struct column {
unsigned long min, max, width;
};
+struct gui_gadget {
+ enum { GADGET_HIDDEN = 0, GADGET_TEXTBOX, GADGET_RADIO, GADGET_OPTION,
+ GADGET_COMBO, GADGET_LIST, GADGET_TEXTAREA, GADGET_ACTIONBUTTON } type;
+ union {
+ struct {
+ int maxlength;
+ char* text;
+ int size;
+ } textbox;
+ struct {
+ char* label;
+ } actionbutt;
+ } data;
+};
+
struct box {
box_type type;
xmlNode * node;
@@ -46,6 +61,7 @@ struct box {
struct box * next_float;
struct column *col;
struct font_data *font;
+ struct gui_gadget* gadget;
};
#define UNKNOWN_WIDTH ULONG_MAX