hildon-libs 0.14.11 Reference Manual |
---|
HildonRangeEditorHildonRangeEditor — A widget is used to ask bounds of a range |
#define HILDON_RANGE_EDITOR_TYPE GtkWidget* hildon_range_editor_new_with_separator (const gchar *separator); GtkWidget* hildon_range_editor_new (void); void hildon_range_editor_set_range (HildonRangeEditor *editor, gint start, gint end); void hildon_range_editor_get_range (HildonRangeEditor *editor, gint *start, gint *end); void hildon_range_editor_set_limits (HildonRangeEditor *editor, gint start, gint end); void hildon_range_editor_set_lower (HildonRangeEditor *editor, gint value); void hildon_range_editor_set_higher (HildonRangeEditor *editor, gint value); gint hildon_range_editor_get_lower (HildonRangeEditor *editor); gint hildon_range_editor_get_higher (HildonRangeEditor *editor); void hildon_range_editor_set_min (HildonRangeEditor *editor, gint value); void hildon_range_editor_set_max (HildonRangeEditor *editor, gint value); gint hildon_range_editor_get_min (HildonRangeEditor *editor); gint hildon_range_editor_get_max (HildonRangeEditor *editor); void hildon_range_editor_set_separator (HildonRangeEditor *editor, const gchar *separator); const gchar* hildon_range_editor_get_separator (HildonRangeEditor *editor);
HidlonRangeEditor allows entering a pair of integers, e.g. the lower and higher bounds of a range. A minimum and maximum can also be set for the bounds.
range_editor = hildon_range_editor_new()
;
hildon_range_editor_set_limits( editor, start, end );
hildon_range_editor_get_range( editor, &start, &end );
#define HILDON_RANGE_EDITOR_TYPE HILDON_TYPE_RANGE_EDITOR
HILDON_RANGE_EDITOR_TYPE
is deprecated and should not be used in newly-written code. use HILDON_TYPE_RANGE_EDITOR instead
GtkWidget* hildon_range_editor_new_with_separator (const gchar *separator);
HildonRangeEditor contains two Gtk entries that accept numbers. A separator is displayed between two entries. CHECKME: Use '-' as a separator in the case of null separator?
separator : |
a string that is shown between the numbers |
Returns : | pointer to a new HildonRangeEditor widget
|
GtkWidget* hildon_range_editor_new (void);
HildonRangeEditor contains two GtkEntrys that accept numbers and minus.
Returns : | pointer to a new HildonRangeEditor widget
|
void hildon_range_editor_set_range (HildonRangeEditor *editor, gint start, gint end);
Sets a range to the editor. (The current value)
Sets the range of the HildonRangeEditor
widget.
editor : |
the HildonRangeEditor widget |
start : |
range's start value |
end : |
range's end value |
void hildon_range_editor_get_range (HildonRangeEditor *editor, gint *start, gint *end);
Gets the range of the HildonRangeEditor
widget.
editor : |
the HildonRangeEditor widget |
start : |
ranges start value |
end : |
ranges end value |
void hildon_range_editor_set_limits (HildonRangeEditor *editor, gint start, gint end);
Sets the range of the HildonRangeEditor
widget.
editor : |
the HildonRangeEditor widget |
start : |
minimum acceptable value (default: no limit) |
end : |
maximum acceptable value (default: no limit) |
void hildon_range_editor_set_lower (HildonRangeEditor *editor, gint value);
editor : |
|
value : |
void hildon_range_editor_set_higher (HildonRangeEditor *editor, gint value);
editor : |
|
value : |
gint hildon_range_editor_get_lower (HildonRangeEditor *editor);
editor : |
|
Returns : |
gint hildon_range_editor_get_higher (HildonRangeEditor *editor);
editor : |
|
Returns : |
void hildon_range_editor_set_min (HildonRangeEditor *editor, gint value);
editor : |
|
value : |
void hildon_range_editor_set_max (HildonRangeEditor *editor, gint value);
editor : |
|
value : |
gint hildon_range_editor_get_min (HildonRangeEditor *editor);
editor : |
|
Returns : |
gint hildon_range_editor_get_max (HildonRangeEditor *editor);
editor : |
|
Returns : |
void hildon_range_editor_set_separator (HildonRangeEditor *editor, const gchar *separator);
editor : |
|
separator : |
<< HildonNumberEditor | HildonTimeEditor >> |