view src/form.hh @ 2048:5060d415a85a

clickable menu items (even those introducing submenus) MUST have callbacks I clicked on the "Panel size" item itself instead of any of the options in its submenu, and: Segfault!
author corvid <>
date Thu, 26 May 2011 02:51:18 +0000
parents 6d6bfabeb1b4
line wrap: on
line source
#ifndef __FORM_HH__
#define __FORM_HH__

#include "url.h"

 * Typedefs

typedef enum {
} DilloHtmlMethod;

typedef enum {
} DilloHtmlEnc;

 * Classes

class DilloHtmlForm;
class DilloHtmlInput;
class DilloHtml;

 * Form API

DilloHtmlForm *a_Html_form_new(DilloHtml *html,
                               DilloHtmlMethod method,
                               const DilloUrl *action,
                               DilloHtmlEnc enc,
                               const char *charset, bool enabled);

void a_Html_form_delete(DilloHtmlForm* form);
void a_Html_input_delete(DilloHtmlInput* input);
void a_Html_form_submit2(void *v_form);
void a_Html_form_reset2(void *v_form);
void a_Html_form_display_hiddens2(void *v_form, bool display);

 * Form parsing functions

void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_form(DilloHtml *html, int TagIdx);
void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_textarea(DilloHtml *html, int TagIdx);
void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_select(DilloHtml *html, int TagIdx);
void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize);
void Html_tag_close_button(DilloHtml *html, int TagIdx);

#endif /* __FORM_HH__ */