libdom
Loading...
Searching...
No Matches
html_option_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 John-Mark Bell <jmb@netsurf-browser.org>
6 */
7
8#ifndef dom_internal_html_option_element_h_
9#define dom_internal_html_option_element_h_
10
12
13#include "html/html_element.h"
14
21
22/* Create a dom_html_option_element object */
24 struct dom_html_element_create_params *params,
25 struct dom_html_option_element **ele);
26
27/* Initialise a dom_html_option_element object */
29 struct dom_html_element_create_params *params,
30 struct dom_html_option_element *ele);
31
32/* Finalise a dom_html_option_element object */
34
35/* Destroy a dom_html_option_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_OPTION_ELEMENT_PROTECT_VTABLE \
47 _dom_html_option_element_parse_attribute
48
49#define DOM_NODE_PROTECT_VTABLE_HTML_OPTION_ELEMENT \
50 _dom_virtual_html_option_element_destroy, \
51 _dom_html_option_element_copy
52
53/* Helper functions*/
57#define dom_html_option_element_copy_internal(o, n) \
58 _dom_html_option_element_copy_internal( \
59 (dom_html_option_element *) (o), \
60 (dom_html_option_element *) (n))
61
62#endif
63
dom_exception
Definition exceptions.h:24
dom_exception _dom_html_option_element_copy(dom_node_internal *old, dom_node_internal **copy)
Definition html_option_element.c:448
void _dom_html_option_element_destroy(struct dom_html_option_element *ele)
Definition html_option_element.c:86
dom_exception _dom_html_option_element_parse_attribute(dom_element *ele, dom_string *name, dom_string *value, dom_string **parsed)
Definition html_option_element.c:418
dom_exception _dom_html_option_element_copy_internal(dom_html_option_element *old, dom_html_option_element *new)
Definition html_option_element.c:469
dom_exception _dom_html_option_element_initialise(struct dom_html_element_create_params *params, struct dom_html_option_element *ele)
Definition html_option_element.c:61
dom_exception _dom_html_option_element_create(struct dom_html_element_create_params *params, struct dom_html_option_element **ele)
Definition html_option_element.c:36
void _dom_html_option_element_finalise(struct dom_html_option_element *ele)
Definition html_option_element.c:76
void _dom_virtual_html_option_element_destroy(dom_node_internal *node)
Definition html_option_element.c:442
Definition element.h:29
Definition html_element.h:28
Definition html_element.h:22
Definition html_option_element.h:15
struct dom_html_element base
Definition html_option_element.h:16
bool default_selected_set
Definition html_option_element.h:19
bool default_selected
Definition html_option_element.h:18
Definition node.h:54
Definition string.h:19