libdom
Loading...
Searching...
No Matches
html_input_element.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2012 Daniel Silverstone <dsilvers@netsurf-browser.org>
6 */
7
8#ifndef dom_internal_html_input_element_h_
9#define dom_internal_html_input_element_h_
10
12
13#include "html/html_element.h"
14
27
28/* Create a dom_html_input_element object */
30 struct dom_html_element_create_params *params,
31 struct dom_html_input_element **ele);
32
33/* Initialise a dom_html_input_element object */
35 struct dom_html_element_create_params *params,
36 struct dom_html_input_element *ele);
37
38/* Finalise a dom_html_input_element object */
40
41/* Destroy a dom_html_input_element object */
43
44/* The protected virtual functions */
46 dom_string *name, dom_string *value,
47 dom_string **parsed);
50 dom_node_internal **copy);
51
52#define DOM_HTML_INPUT_ELEMENT_PROTECT_VTABLE \
53 _dom_html_input_element_parse_attribute
54
55#define DOM_NODE_PROTECT_VTABLE_HTML_INPUT_ELEMENT \
56 _dom_virtual_html_input_element_destroy, \
57 _dom_html_input_element_copy
58
59/* Internal function for bindings */
60
63
64/* Helper functions*/
68#define dom_html_input_element_copy_internal(o, n) \
69 _dom_html_input_element_copy_internal( \
70 (dom_html_input_element *) (o), \
71 (dom_html_input_element *) (n))
72
73#endif
74
dom_exception
Definition exceptions.h:24
void _dom_html_input_element_destroy(struct dom_html_input_element *ele)
Definition html_input_element.c:94
dom_exception _dom_html_input_element_copy(dom_node_internal *old, dom_node_internal **copy)
Definition html_input_element.c:306
dom_exception _dom_html_input_element_set_form(dom_html_input_element *input, dom_html_form_element *form)
Definition html_input_element.c:455
dom_exception _dom_html_input_element_initialise(struct dom_html_element_create_params *params, struct dom_html_input_element *ele)
Definition html_input_element.c:59
dom_exception _dom_html_input_element_parse_attribute(dom_element *ele, dom_string *name, dom_string *value, dom_string **parsed)
Definition html_input_element.c:268
dom_exception _dom_html_input_element_create(struct dom_html_element_create_params *params, struct dom_html_input_element **ele)
Definition html_input_element.c:34
void _dom_virtual_html_input_element_destroy(dom_node_internal *node)
Definition html_input_element.c:300
dom_exception _dom_html_input_element_copy_internal(dom_html_input_element *old, dom_html_input_element *new)
Definition html_input_element.c:327
void _dom_html_input_element_finalise(struct dom_html_input_element *ele)
Definition html_input_element.c:79
Definition element.h:29
Definition html_element.h:28
Definition html_element.h:22
Definition html_form_element.h:17
Definition html_input_element.h:15
bool checked_set
Definition html_input_element.h:25
dom_string * default_value
Definition html_input_element.h:22
bool default_checked_set
Definition html_input_element.h:21
struct dom_html_element base
Definition html_input_element.h:16
bool checked
Definition html_input_element.h:24
bool default_checked
Definition html_input_element.h:20
struct dom_html_form_element * form
Definition html_input_element.h:18
bool default_value_set
Definition html_input_element.h:23
Definition node.h:54
Definition string.h:19