libdom
Loading...
Searching...
No Matches
html_button_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_button_element_h_
9#define dom_internal_html_button_element_h_
10
12
13#include "html/html_element.h"
14
21
22/* Create a dom_html_button_element object */
24 struct dom_html_element_create_params *params,
25 struct dom_html_button_element **ele);
26
27/* Initialise a dom_html_button_element object */
29 struct dom_html_element_create_params *params,
30 struct dom_html_button_element *ele);
31
32/* Finalise a dom_html_button_element object */
34
35/* Destroy a dom_html_button_element object */
37
38/* The protected virtual functions */
40 dom_string *name, dom_string *value,
41 dom_string **parsed);
44 dom_node_internal **copy);
45
46#define DOM_HTML_BUTTON_ELEMENT_PROTECT_VTABLE \
47 _dom_html_button_element_parse_attribute
48
49#define DOM_NODE_PROTECT_VTABLE_HTML_BUTTON_ELEMENT \
50 _dom_virtual_html_button_element_destroy, \
51 _dom_html_button_element_copy
52
53/* Internal function for bindings */
54
57
58/* Helper functions*/
62#define dom_html_button_element_copy_internal(o, n) \
63 _dom_html_button_element_copy_internal( \
64 (dom_html_button_element *) (o), \
65 (dom_html_button_element *) (n))
66
67#endif
68
dom_exception
Definition exceptions.h:24
void _dom_virtual_html_button_element_destroy(dom_node_internal *node)
Definition html_button_element.c:139
dom_exception _dom_html_button_element_create(struct dom_html_element_create_params *params, struct dom_html_button_element **ele)
Definition html_button_element.c:34
dom_exception _dom_html_button_element_copy_internal(dom_html_button_element *old, dom_html_button_element *new)
Definition html_button_element.c:166
void _dom_html_button_element_destroy(struct dom_html_button_element *ele)
Definition html_button_element.c:83
dom_exception _dom_html_button_element_set_form(dom_html_button_element *button, dom_html_form_element *form)
Definition html_button_element.c:254
dom_exception _dom_html_button_element_parse_attribute(dom_element *ele, dom_string *name, dom_string *value, dom_string **parsed)
Definition html_button_element.c:125
dom_exception _dom_html_button_element_copy(dom_node_internal *old, dom_node_internal **copy)
Definition html_button_element.c:145
dom_exception _dom_html_button_element_initialise(struct dom_html_element_create_params *params, struct dom_html_button_element *ele)
Definition html_button_element.c:59
void _dom_html_button_element_finalise(struct dom_html_button_element *ele)
Definition html_button_element.c:73
Definition element.h:29
Definition html_button_element.h:15
struct dom_html_element base
Definition html_button_element.h:16
struct dom_html_form_element * form
Definition html_button_element.h:18
Definition html_element.h:28
Definition html_element.h:22
Definition html_form_element.h:17
Definition node.h:54
Definition string.h:19