hildon 2.1.24 Reference Manual | ||||
---|---|---|---|---|
HildonRangeEditor; 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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----HildonRangeEditor
"higher" gint : Read / Write / Construct "lower" gint : Read / Write / Construct "max" gint : Read / Write / Construct "min" gint : Read / Write / Construct "separator" gchar* : Read / Write / Construct
"hildon-range-editor-entry-alignment" gint : Read "hildon-range-editor-separator-padding" gint : Read
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.
Example 16.
range_editor = hildon_range_editor_new (); hildon_range_editor_set_limits (editor, start, end ); hildon_range_editor_get_range (editor, &start, &end);
typedef struct _HildonRangeEditor HildonRangeEditor;
HildonRangeEditor
is deprecated and should not be used in newly-written code.
GtkWidget* hildon_range_editor_new_with_separator (const gchar *separator);
hildon_range_editor_new_with_separator
is deprecated and should not be used in newly-written code.
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);
hildon_range_editor_new
is deprecated and should not be used in newly-written code.
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);
hildon_range_editor_set_range
is deprecated and should not be used in newly-written code.
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);
hildon_range_editor_get_range
is deprecated and should not be used in newly-written code.
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);
hildon_range_editor_set_limits
is deprecated and should not be used in newly-written code.
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);
hildon_range_editor_set_lower
is deprecated and should not be used in newly-written code.
editor : |
|
value : |
void hildon_range_editor_set_higher (HildonRangeEditor *editor, gint value);
hildon_range_editor_set_higher
is deprecated and should not be used in newly-written code.
editor : |
|
value : |
gint hildon_range_editor_get_lower (HildonRangeEditor *editor);
hildon_range_editor_get_lower
is deprecated and should not be used in newly-written code.
editor : |
|
Returns : |
gint hildon_range_editor_get_higher (HildonRangeEditor *editor);
hildon_range_editor_get_higher
is deprecated and should not be used in newly-written code.
editor : |
|
Returns : |
void hildon_range_editor_set_min (HildonRangeEditor *editor, gint value);
hildon_range_editor_set_min
is deprecated and should not be used in newly-written code.
editor : |
|
value : |
void hildon_range_editor_set_max (HildonRangeEditor *editor, gint value);
hildon_range_editor_set_max
is deprecated and should not be used in newly-written code.
editor : |
|
value : |
gint hildon_range_editor_get_min (HildonRangeEditor *editor);
hildon_range_editor_get_min
is deprecated and should not be used in newly-written code.
editor : |
|
Returns : |
gint hildon_range_editor_get_max (HildonRangeEditor *editor);
hildon_range_editor_get_max
is deprecated and should not be used in newly-written code.
editor : |
|
Returns : |
void hildon_range_editor_set_separator (HildonRangeEditor *editor, const gchar *separator);
hildon_range_editor_set_separator
is deprecated and should not be used in newly-written code.
editor : |
|
separator : |
const gchar* hildon_range_editor_get_separator (HildonRangeEditor *editor);
hildon_range_editor_get_separator
is deprecated and should not be used in newly-written code.
editor : |
|
Returns : |
"higher"
property"higher" gint : Read / Write / Construct
Current value in the entry presenting higher end of selected range. Default: 999
Default value: 999
"lower"
property"lower" gint : Read / Write / Construct
Current value in the entry presenting lower end of selected range. Default: -999
Default value: -999
"max"
property"max" gint : Read / Write / Construct
Maximum value in a range. Default: 999
Default value: 999
"min"
property"min" gint : Read / Write / Construct
Minimum value in a range. Default: -999
Default value: -999