NetSurf
|
Form control. More...
#include <form_internal.h>
Data Fields | |
void * | node |
Corresponding DOM node. More... | |
struct dom_string * | node_value |
The last value sync'd with the DOM. More... | |
bool | syncing |
Set if a DOM sync is in-progress. More... | |
struct html_content * | html |
HTML content containing control. More... | |
form_control_type | type |
Type of control. More... | |
struct form * | form |
Containing form. More... | |
char * | name |
Control name. More... | |
char * | value |
Current value of control. More... | |
char * | initial_value |
Initial value of control. More... | |
char * | last_synced_value |
The last value sync'd to the DOM. More... | |
bool | disabled |
Whether control is disabled. More... | |
struct box * | box |
Box for control. More... | |
unsigned int | length |
Number of characters in control. More... | |
unsigned int | maxlength |
Maximum characters permitted. More... | |
bool | selected |
Whether control is selected. More... | |
union { | |
struct { | |
int mx | |
int my | |
} image | |
struct { | |
int num_items | |
struct form_option * items | |
struct form_option * last_item | |
bool multiple | |
int num_selected | |
struct form_option * current | |
Currently selected item, if num_selected == 1. More... | |
struct form_select_menu * menu | |
} select | |
struct { | |
struct textarea * ta | |
struct dom_string * initial | |
struct form_textarea_data data | |
} text | |
input type=text or textarea More... | |
} | data |
struct form_control * | prev |
Previous control in this form. More... | |
struct form_control * | next |
Next control in this form. More... | |
Form control.
Definition at line 73 of file form_internal.h.
struct box* form_control::box |
Box for control.
Definition at line 89 of file form_internal.h.
Referenced by box_button(), box_construct_element(), box_input(), box_select(), box_textarea(), box_textarea_callback(), box_textarea_keypress(), form__select_process_selection(), form_control_bounding_rect(), form_open_select_menu(), form_radio_set(), form_redraw_select_menu(), form_select_menu_callback(), form_select_mouse_drag_end(), html__set_file_gadget_filename(), html_redraw(), and mouse_action_select_menu().
struct form_option* form_control::current |
Currently selected item, if num_selected == 1.
Definition at line 106 of file form_internal.h.
struct form_textarea_data form_control::data |
Definition at line 112 of file form_internal.h.
Referenced by box_select(), box_textarea_create_textarea(), box_textarea_keypress(), form__select_process_selection(), form_add_option(), form_clip_inside_select_menu(), form_free_control(), form_free_select_menu(), form_gadget_sync_with_dom(), form_open_select_menu(), form_redraw_select_menu(), form_select_get_dimensions(), form_select_get_option(), form_select_menu_clicked(), form_select_menu_scroll_callback(), form_select_mouse_action(), form_select_mouse_drag_end(), form_submit(), gadget_mouse_action(), html_drop_file_at_point(), html_redraw(), html_redraw_box(), html_scroll_at_point(), html_set_selection(), layout_block_context(), mouse_action_drag_textarea(), and parse_select_element().
union { ... } form_control::data |
bool form_control::disabled |
Whether control is disabled.
Definition at line 87 of file form_internal.h.
Referenced by box_textarea_create_textarea().
struct form* form_control::form |
Containing form.
Definition at line 81 of file form_internal.h.
Referenced by box_textarea_keypress(), form_add_control(), form_free_control(), form_radio_set(), gadget_mouse_action(), get_mouse_action_node(), and mouse_action_drag_none().
struct html_content* form_control::html |
HTML content containing control.
Definition at line 77 of file form_internal.h.
Referenced by box_button(), box_input(), box_select(), box_textarea(), box_textarea_callback(), form_radio_set(), form_select_process_selection(), and html_redraw().
struct { ... } form_control::image |
struct dom_string* form_control::initial |
Definition at line 111 of file form_internal.h.
char* form_control::initial_value |
Initial value of control.
Definition at line 85 of file form_internal.h.
Referenced by form_free_control(), invent_fake_gadget(), and parse_input_element().
struct form_option* form_control::items |
Definition at line 102 of file form_internal.h.
Referenced by layout_line(), and layout_minmax_line().
struct form_option * form_control::last_item |
Definition at line 102 of file form_internal.h.
char* form_control::last_synced_value |
The last value sync'd to the DOM.
Definition at line 86 of file form_internal.h.
Referenced by form_free_control(), form_gadget_sync_with_dom(), and parse_input_element().
unsigned int form_control::length |
Number of characters in control.
Definition at line 91 of file form_internal.h.
Referenced by parse_input_element().
unsigned int form_control::maxlength |
Maximum characters permitted.
Definition at line 92 of file form_internal.h.
Referenced by parse_input_element().
struct form_select_menu* form_control::menu |
Definition at line 107 of file form_internal.h.
bool form_control::multiple |
Definition at line 103 of file form_internal.h.
int form_control::mx |
Definition at line 98 of file form_internal.h.
int form_control::my |
Definition at line 98 of file form_internal.h.
char* form_control::name |
Control name.
Definition at line 83 of file form_internal.h.
Referenced by box_select(), form_control_get_name(), form_free_control(), form_radio_set(), invent_fake_gadget(), parse_button_element(), parse_input_element(), parse_select_element(), and parse_textarea_element().
struct form_control* form_control::next |
Next control in this form.
Definition at line 117 of file form_internal.h.
Referenced by box_select(), box_textarea_keypress(), form_add_control(), form_free(), form_free_control(), form_radio_set(), and html_forms_get_control_for_node().
void* form_control::node |
Corresponding DOM node.
Definition at line 74 of file form_internal.h.
Referenced by box_textarea_create_textarea(), convert_special_elements(), form_dom_to_data(), form_gadget_sync_with_dom(), form_gadget_update_value(), form_new_control(), form_radio_set(), gadget_mouse_action(), html__set_file_gadget_filename(), html_forms_get_control_for_node(), and invent_fake_gadget().
struct dom_string* form_control::node_value |
The last value sync'd with the DOM.
Definition at line 75 of file form_internal.h.
Referenced by form_free_control(), form_gadget_sync_with_dom(), and parse_input_element().
int form_control::num_items |
Definition at line 101 of file form_internal.h.
int form_control::num_selected |
Definition at line 104 of file form_internal.h.
struct form_control* form_control::prev |
Previous control in this form.
Definition at line 116 of file form_internal.h.
Referenced by box_textarea_keypress(), and form_add_control().
struct { ... } form_control::select |
Referenced by html_redraw(), layout_line(), layout_minmax_line(), and parse_select_element().
bool form_control::selected |
Whether control is selected.
Definition at line 94 of file form_internal.h.
Referenced by form_radio_set(), gadget_mouse_action(), html_redraw_box(), and parse_input_element().
bool form_control::syncing |
Set if a DOM sync is in-progress.
Definition at line 76 of file form_internal.h.
Referenced by form_gadget_sync_with_dom().
struct textarea* form_control::ta |
Definition at line 110 of file form_internal.h.
Referenced by box_textarea_keypress(), and parse_textarea_element().
struct { ... } form_control::text |
input type=text or textarea
form_control_type form_control::type |
Type of control.
Definition at line 79 of file form_internal.h.
Referenced by box_input(), box_textarea_create_textarea(), box_textarea_keypress(), browser_window_callback(), form_add_option(), form_free_control(), form_gadget_sync_with_dom(), form_gadget_update_value(), form_new_control(), form_radio_set(), gadget_mouse_action(), get_pointer_shape(), html_drop_file_at_point(), html_get_contextual_content(), html_redraw_box(), html_scroll_at_point(), layout_block_context(), layout_float_find_dimensions(), layout_line(), layout_minmax_block(), layout_minmax_line(), mouse_action_drag_textarea(), and parse_input_element().
char* form_control::value |
Current value of control.
Definition at line 84 of file form_internal.h.
Referenced by box_input(), form_free_control(), form_gadget_sync_with_dom(), form_gadget_update_value(), html_redraw_file(), invent_fake_gadget(), parse_button_element(), and parse_input_element().