hildon-libs 0.14.11 Reference Manual |
---|
HildonNumberEditorHildonNumberEditor — A widget used to enter a number within a pre-defined range |
enum HildonNumberEditorErrorType; GtkWidget* hildon_number_editor_new (gint min, gint max); void hildon_number_editor_set_range (HildonNumberEditor *editor, gint min, gint max); gint hildon_number_editor_get_value (HildonNumberEditor *editor); void hildon_number_editor_set_value (HildonNumberEditor *editor, gint value);
HildonNumberEditor is used to enter a number from a specific range. There are two buttons to scroll the value in number field. Manual input is also possible.
number_editor = hildon_number_editor_new (-250, 500); hildon_number_editor_set_range (number_editor, 0, 100);
typedef enum { MAXIMUM_VALUE_EXCEED, MINIMUM_VALUE_EXCEED, ERRONEOUS_VALUE } HildonNumberEditorErrorType;
GtkWidget* hildon_number_editor_new (gint min, gint max);
Creates new number editor
min : |
minimum accepted value |
max : |
maximum accepted value |
Returns : | a new HildonNumberEditor widget |
void hildon_number_editor_set_range (HildonNumberEditor *editor, gint min, gint max);
Sets accepted number range for editor
editor : |
a HildonNumberEditor widget |
min : |
minimum accepted value |
max : |
maximum accepted value |
gint hildon_number_editor_get_value (HildonNumberEditor *editor);
editor : |
pointer to HildonNumberEditor |
Returns : | current NumberEditor value |
<< Editors | HildonRangeEditor >> |