NetSurf
Data Structures | Functions
form.h File Reference

Form handling public interface. More...

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

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

Detailed Description

Form handling public interface.

Definition in file form.h.

Function Documentation

◆ form_control_bounding_rect()

nserror form_control_bounding_rect ( struct form_control control,
struct rect r 
)

Get a form control bounding rectangle.

Parameters
[in]controlThe form control
[out]rThe rectangle to place the bounds in.
Returns
NSERROR_OK on success or error code.

Definition at line 1865 of file form.c.

References form_control::box, box_bounds(), and NSERROR_OK.

Here is the call graph for this function:

◆ form_control_get_name()

char * form_control_get_name ( struct form_control control)

Get a form control name.

Parameters
controlThe form control
Returns
The form control name

Definition at line 1858 of file form.c.

References form_control::name.

◆ form_select_get_option()

struct form_option * form_select_get_option ( struct form_control control,
int  item 
)

get a form select menus option.

Parameters
controlThe form control.
itemThe index of the menu entry to return.
Returns
The form option at that index.

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

Here is the caller graph for this function:

◆ form_select_process_selection()

nserror form_select_process_selection ( struct form_control control,
int  item 
)

Process a selection from a form select menu.

Parameters
controlform control with menu.
itemindex 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().

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