NetSurf
|
Form handling public interface. More...
Go to the source code of this file.
Data Structures | |
struct | form_option |
Option in a select. More... | |
Functions | |
nserror | form_select_process_selection (struct form_control *control, int item) |
Process a selection from a form select menu. More... | |
struct form_option * | form_select_get_option (struct form_control *control, int item) |
get a form select menus option. More... | |
char * | form_control_get_name (struct form_control *control) |
Get a form control name. More... | |
nserror | form_control_bounding_rect (struct form_control *control, struct rect *r) |
Get a form control bounding rectangle. More... | |
Form handling public interface.
Definition in file form.h.
nserror form_control_bounding_rect | ( | struct form_control * | control, |
struct rect * | r | ||
) |
Get a form control bounding rectangle.
[in] | control | The form control |
[out] | r | The rectangle to place the bounds in. |
Definition at line 1865 of file form.c.
References form_control::box, box_bounds(), and NSERROR_OK.
char * form_control_get_name | ( | struct form_control * | control | ) |
Get a form control name.
control | The form control |
Definition at line 1858 of file form.c.
References form_control::name.
struct form_option * form_select_get_option | ( | struct form_control * | control, |
int | item | ||
) |
get a form select menus option.
control | The form control. |
item | The index of the menu entry to return. |
Definition at line 1844 of file form.c.
References form_control::data, and form_option::next.
Referenced by gui_window_create_form_select_menu(), and ro_gui_window_prepare_form_select_menu().
nserror form_select_process_selection | ( | struct form_control * | control, |
int | item | ||
) |
Process a selection from a form select menu.
control | form control with menu. |
item | index of item selected from the menu. |
Definition at line 1834 of file form.c.
References form__select_process_selection(), and form_control::html.
Referenced by nsgtk_select_menu_clicked(), and ro_gui_window_process_form_select_menu().