NetSurf
Functions
box_textarea.h File Reference

Box tree treeview box replacement (interface). More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Box tree treeview box replacement (interface).

Definition in file box_textarea.h.

Function Documentation

◆ box_textarea_create_textarea()

bool box_textarea_create_textarea ( struct html_content html,
struct box box,
struct dom_node *  node 
)

Create textarea widget for a form element.

Parameters
htmlhtml content object
boxbox with gadget to be given textarea widget
nodeDOM 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_textarea_keypress()

nserror box_textarea_keypress ( struct html_content html,
struct box box,
uint32_t  key 
)

Handle form textarea keypress input.

Parameters
htmlhtml content object
boxbox with textarea widget
keykeypress
Returns
NSERROR_OK iff keypress handled

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().

Here is the call graph for this function:
Here is the caller graph for this function: