Smallbox

Smallbox — Small input box.

Synopsis

gboolean            smallbox_x                          (gchar *title,
                                                         struct box_desc *d);
gboolean            smallbox_x2                         (gchar *title,
                                                         struct box_desc2 *d);
gchar*              smallbox                            (gchar *title,
                                                         gchar *labeltext,
                                                         gchar *dval);

Description

Functions to create a simple inputbox offering multiple selections or an input field.

Details

smallbox_x ()

gboolean            smallbox_x                          (gchar *title,
                                                         struct box_desc *d);

Small and simple text input box to query for text input.

title :

Box title.

d :

Array of box content descriptions (Query text and default value).

Returns :

TRUE if a value was entered and confirmed, FALSE otherwise.

smallbox_x2 ()

gboolean            smallbox_x2                         (gchar *title,
                                                         struct box_desc2 *d);

Small and simple text input box to query for text input offering a defined set of values to select from or to enter own text.

title :

Box title.

d :

Aray of box content descriptions containing query text, default value and a list of predefined values.

Returns :

TRUE if a value was entered and confirmed, FALSE otherwise.

smallbox ()

gchar*              smallbox                            (gchar *title,
                                                         gchar *labeltext,
                                                         gchar *dval);

This function displays an input dialog box to query a user for text input.

title :

Dialog title

labeltext :

Query text displayed inside the box.

dval :

Default value

Returns :

Entered text if user taps OK, NULL otherwise.