/* This file was automatically generated. Do not edit! */ #define HtmlFree(A) Tcl_Free((char*)(A)) typedef union HtmlElement HtmlElement; void HtmlAppendArglist(Tcl_DString *str,HtmlElement *pElem); typedef struct HtmlWidget HtmlWidget; int HtmlControlSize(HtmlWidget *htmlPtr,HtmlElement *pElem); #define Html_EndOPTION 103 #define Html_OPTION 102 #define Html_EndSELECT 117 #define HTML_NewLine 0x02 /* type==Html_Space and ends with newline */ #define Html_Space 2 #define Html_Text 1 void HtmlScheduleRedraw(HtmlWidget *htmlPtr); #define RELAYOUT 0x000010 #define STY_Invisible 0x040 #define HTML_Visible 0x01 /* This element produces "ink" */ /*#define HtmlAlloc(A) ((void*)Tcl_Alloc(A))*/ void* HtmlAlloc(size_t); void HtmlTPCantHappen(const char *zFile,int line); #if defined(COVERAGE_TEST) # define CANT_HAPPEN HtmlTPCantHappen(__FILE__,__LINE__) #endif #if !(defined(COVERAGE_TEST)) # define CANT_HAPPEN #endif #define INPUT_TYPE_Applet 12 #define Html_EMBED 49 #define Html_IFRAME 75 #define Html_APPLET 9 #define INPUT_TYPE_TextArea 11 #define Html_TEXTAREA 133 #define INPUT_TYPE_Select 8 #define Html_SELECT 116 #if !defined(HAVE_STRICMP) # define stricmp strcasecmp #endif char *HtmlMarkupArg(HtmlElement *p,const char *tag,char *zDefault); #define Html_INPUT 77 #define INPUT_TYPE_Text 10 #define INPUT_TYPE_Submit 9 #define INPUT_TYPE_Reset 7 #define INPUT_TYPE_Radio 6 #define INPUT_TYPE_Password 5 #define INPUT_TYPE_Image 4 #define INPUT_TYPE_Hidden 3 #define INPUT_TYPE_File 2 #define INPUT_TYPE_Checkbox 1 #define INPUT_TYPE_Unknown 0 int HtmlUnlock(HtmlWidget *htmlPtr); #if defined(COVERAGE_TEST) extern int HtmlTPArray[2000]; # define TestPoint(X) {extern int HtmlTPArray[]; HtmlTPArray[X]++;} #endif #if !(defined(COVERAGE_TEST)) # define TestPoint(X) #endif void HtmlLock(HtmlWidget *htmlPtr); void HtmlDeleteControls(HtmlWidget *htmlPtr); int HtmlMapControls(HtmlWidget *htmlPtr); typedef struct HtmlBaseElement HtmlBaseElement; typedef struct HtmlStyle HtmlStyle; struct HtmlStyle { unsigned int font : 6; /* Font to use for display */ unsigned int color : 4; /* Foreground color */ signed int subscript : 4; /* Positive for , negative for */ unsigned int align : 2; /* Horizontal alignment */ unsigned int bgcolor : 4; /* Background color */ unsigned int flags : 12; /* the STY_ flags below */ }; typedef unsigned char Html_u8; typedef short Html_16; struct HtmlBaseElement { HtmlElement *pNext; /* Next input token in a list of them all */ HtmlElement *pPrev; /* Previous token in a list of them all */ HtmlStyle style; /* The rendering style for this token */ Html_u8 type; /* The token type. */ Html_u8 flags; /* The HTML_ flags below */ Html_16 count; /* Various uses, depending on "type" */ }; typedef struct HtmlTextElement HtmlTextElement; typedef int Html_32; struct HtmlTextElement { HtmlBaseElement base; /* All the base information */ Html_32 y; /* y coordinate where text should be rendered */ Html_16 x; /* x coordinate where text should be rendered */ Html_16 w; /* width of this token in pixels */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ Html_u8 spaceWidth; /* Width of one space in the current font */ char zText[1]; /* Text for this element. Null terminated */ }; typedef struct HtmlSpaceElement HtmlSpaceElement; struct HtmlSpaceElement { HtmlBaseElement base; /* All the base information */ Html_16 w; /* Width of a single space in current font */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ }; typedef struct HtmlMarkupElement HtmlMarkupElement; struct HtmlMarkupElement { HtmlBaseElement base; char **argv; }; typedef struct HtmlCell HtmlCell; struct HtmlCell { HtmlMarkupElement markup; Html_16 rowspan; /* Number of rows spanned by this cell */ Html_16 colspan; /* Number of columns spanned by this cell */ Html_16 x; /* X coordinate of left edge of border */ Html_16 w; /* Width of the border */ Html_32 y; /* Y coordinate of top of border indentation */ Html_32 h; /* Height of the border */ HtmlElement *pTable; /* Pointer back to the */ HtmlElement *pEnd; /* Element that ends this cell */ }; typedef struct HtmlTable HtmlTable; typedef unsigned short Html_u16; #define HTML_MAX_COLUMNS 40 struct HtmlTable { HtmlMarkupElement markup; Html_u8 borderWidth; /* Width of the border */ Html_u8 nCol; /* Number of columns */ Html_u16 nRow; /* Number of rows */ Html_32 y; /* top edge of table border */ Html_32 h; /* height of the table border */ Html_16 x; /* left edge of table border */ Html_16 w; /* width of the table border */ int minW[HTML_MAX_COLUMNS+1]; /* minimum width of each column */ int maxW[HTML_MAX_COLUMNS+1]; /* maximum width of each column */ }; typedef struct HtmlRef HtmlRef; struct HtmlRef { HtmlMarkupElement markup; HtmlElement *pOther; /* Pointer to some other Html element */ }; typedef struct HtmlLi HtmlLi; struct HtmlLi { HtmlMarkupElement markup; Html_u8 type; /* What type of list is this? */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ Html_16 cnt; /* Value for this element (if inside
    ) */ Html_16 x; /* X coordinate of the bullet */ Html_32 y; /* Y coordinate of the bullet */ }; typedef struct HtmlListStart HtmlListStart; struct HtmlListStart { HtmlMarkupElement markup; Html_u8 type; /* One of the LI_TYPE_ defines above */ Html_u8 compact; /* True if the COMPACT flag is present */ Html_u16 cnt; /* Next value for
      */ Html_u16 width; /* How much space to allow for indentation */ HtmlElement *pPrev; /* Next higher level list, or NULL */ }; typedef struct HtmlImageMarkup HtmlImageMarkup; typedef struct HtmlImage HtmlImage; struct HtmlImageMarkup { HtmlMarkupElement markup; Html_u8 align; /* Alignment. See IMAGE_ALIGN_ defines below */ Html_u8 textAscent; /* Ascent of text font in force at the */ Html_u8 textDescent; /* Descent of text font in force at the */ Html_u8 redrawNeeded; /* Need to redraw this image because the image ** content changed. */ Html_16 h; /* Actual height of the image */ Html_16 w; /* Actual width of the image */ Html_16 ascent; /* How far image extends above "y" */ Html_16 descent; /* How far image extends below "y" */ Html_16 x; /* X coordinate of left edge of the image */ Html_32 y; /* Y coordinate of image baseline */ char *zAlt; /* Alternative text */ HtmlImage *pImage; /* Corresponding HtmlImage structure */ HtmlElement *pNext; /* Next markup using the same HtmlImage structure */ }; typedef struct HtmlInput HtmlInput; struct HtmlInput { HtmlMarkupElement markup; HtmlElement *pForm; /* The
      to which this belongs */ HtmlElement *pNext; /* Next element in a list of all input elements */ Tk_Window tkwin; /* The window that implements this control */ HtmlWidget *htmlPtr; /* The whole widget. Needed by geometry callbacks */ HtmlElement *pEnd; /* End tag for