HildonRangeEditor

HildonRangeEditor — A widget is used to ask bounds of a range

Synopsis




#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);

Description

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 );

Details

HILDON_RANGE_EDITOR_TYPE

#define HILDON_RANGE_EDITOR_TYPE HILDON_TYPE_RANGE_EDITOR

Warning

HILDON_RANGE_EDITOR_TYPE is deprecated and should not be used in newly-written code. use HILDON_TYPE_RANGE_EDITOR instead


hildon_range_editor_new_with_separator ()

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

hildon_range_editor_new ()

GtkWidget*  hildon_range_editor_new         (void);

HildonRangeEditor contains two GtkEntrys that accept numbers and minus.

Returns : pointer to a new HildonRangeEditor widget

hildon_range_editor_set_range ()

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

hildon_range_editor_get_range ()

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

hildon_range_editor_set_limits ()

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)

hildon_range_editor_set_lower ()

void        hildon_range_editor_set_lower   (HildonRangeEditor *editor,
                                             gint value);

editor :
value :

hildon_range_editor_set_higher ()

void        hildon_range_editor_set_higher  (HildonRangeEditor *editor,
                                             gint value);

editor :
value :

hildon_range_editor_get_lower ()

gint        hildon_range_editor_get_lower   (HildonRangeEditor *editor);

editor :
Returns :

hildon_range_editor_get_higher ()

gint        hildon_range_editor_get_higher  (HildonRangeEditor *editor);

editor :
Returns :

hildon_range_editor_set_min ()

void        hildon_range_editor_set_min     (HildonRangeEditor *editor,
                                             gint value);

editor :
value :

hildon_range_editor_set_max ()

void        hildon_range_editor_set_max     (HildonRangeEditor *editor,
                                             gint value);

editor :
value :

hildon_range_editor_get_min ()

gint        hildon_range_editor_get_min     (HildonRangeEditor *editor);

editor :
Returns :

hildon_range_editor_get_max ()

gint        hildon_range_editor_get_max     (HildonRangeEditor *editor);

editor :
Returns :

hildon_range_editor_set_separator ()

void        hildon_range_editor_set_separator
                                            (HildonRangeEditor *editor,
                                             const gchar *separator);

editor :
separator :

hildon_range_editor_get_separator ()

const gchar* hildon_range_editor_get_separator
                                            (HildonRangeEditor *editor);

editor :
Returns :