NetSurf
|
Box tree treeview box replacement (interface). More...
Go to the source code of this file.
Functions | |
bool | box_textarea_create_textarea (struct html_content *html, struct box *box, struct dom_node *node) |
Create textarea widget for a form element. More... | |
nserror | box_textarea_keypress (struct html_content *html, struct box *box, uint32_t key) |
Handle form textarea keypress input. More... | |
Box tree treeview box replacement (interface).
Definition in file box_textarea.h.
bool box_textarea_create_textarea | ( | struct html_content * | html, |
struct box * | box, | ||
struct dom_node * | node | ||
) |
Create textarea widget for a form element.
html | html content object |
box | box with gadget to be given textarea widget |
node | DOM node for form element |
Definition at line 257 of file box_textarea.c.
References plot_font_style::background, textarea_setup::border_col, textarea_setup::border_width, box_textarea_callback(), colour_to_bw_furthest, form_control::data, form_control::disabled, plot_font_style::family, FONTF_NONE, plot_font_style::foreground, box::gadget, form_textarea_data::gadget, GADGET_PASSWORD, GADGET_TEXTAREA, GADGET_TEXTBOX, textarea_setup::height, form_control::node, NS_TRANSPARENT, textarea_setup::pad_bottom, textarea_setup::pad_left, textarea_setup::pad_right, textarea_setup::pad_top, PLOT_FONT_FAMILY_SANS_SERIF, PLOT_STYLE_SCALE, textarea_setup::selected_bg, textarea_setup::selected_text, textarea_setup::text, text(), textarea_create(), TEXTAREA_DEFAULT, TEXTAREA_MULTILINE, TEXTAREA_PASSWORD, TEXTAREA_READONLY, textarea_set_text(), form_control::type, and textarea_setup::width.
Referenced by box_input_text().
nserror box_textarea_keypress | ( | struct html_content * | html, |
struct box * | box, | ||
uint32_t | key | ||
) |
Handle form textarea keypress input.
html | html content object |
box | box with textarea widget |
key | keypress |
Definition at line 43 of file box_textarea.c.
References form_control::box, html_content::bw, content_get_url(), form_control::data, form_control::form, form_submit(), box::gadget, GADGET_PASSWORD, GADGET_TEXTAREA, GADGET_TEXTBOX, form_control::next, NS_KEY_CR, NS_KEY_NL, NS_KEY_SHIFT_TAB, NS_KEY_TAB, NSERROR_INVALID, NSERROR_OK, form_control::prev, form_control::ta, textarea_keypress(), textarea_set_caret(), and form_control::type.
Referenced by html_keypress().