NetSurf
box_textarea.h
Go to the documentation of this file.
1/*
2 * Copyright 2013 Michael Drake <tlsa@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * Box tree treeview box replacement (interface).
22 */
23
24#ifndef NETSURF_HTML_BOX_TEXTAREA_H
25#define NETSURF_HTML_BOX_TEXTAREA_H
26
27struct dom_node;
28struct html_content;
29struct box;
30
31/**
32 * Create textarea widget for a form element
33 *
34 * \param html html content object
35 * \param box box with gadget to be given textarea widget
36 * \param node DOM node for form element
37 */
39 struct box *box, struct dom_node *node);
40
41
42/**
43 * Handle form textarea keypress input
44 *
45 * \param html html content object
46 * \param box box with textarea widget
47 * \param key keypress
48 * \return NSERROR_OK iff keypress handled
49 */
50nserror box_textarea_keypress(struct html_content *html, struct box *box, uint32_t key);
51
52#endif
bool box_textarea_create_textarea(struct html_content *html, struct box *box, struct dom_node *node)
Create textarea widget for a form element.
Definition: box_textarea.c:257
nserror box_textarea_keypress(struct html_content *html, struct box *box, uint32_t key)
Handle form textarea keypress input.
Definition: box_textarea.c:43
nserror
Enumeration of error codes.
Definition: errors.h:29
Node in box tree.
Definition: box.h:177
struct dom_node * node
DOM node that generated this box or NULL.
Definition: box.h:191
Data specific to CONTENT_HTML.
Definition: private.h:93