view src/form.hh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <>
date Thu, 23 Jun 2011 19:24:11 +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__ */