hildon 2.1.42 Reference Manual | ||||
---|---|---|---|---|
HildonSeekbar; GtkWidget* hildon_seekbar_new (void); gint hildon_seekbar_get_total_time (HildonSeekbar *seekbar); void hildon_seekbar_set_total_time (HildonSeekbar *seekbar, gint time); gint hildon_seekbar_get_position (HildonSeekbar *seekbar); void hildon_seekbar_set_position (HildonSeekbar *seekbar, gint time); void hildon_seekbar_set_fraction (HildonSeekbar *seekbar, guint fraction); guint hildon_seekbar_get_fraction (HildonSeekbar *seekbar);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkRange +----GtkScale +----HildonSeekbar
"fraction" gdouble : Read / Write "position" gdouble : Read / Write "total-time" gdouble : Read / Write
HildonSeekbar allows seeking in media with a range widget. It supports for setting or getting the length (total time) of the media, the position within it and the fraction (maximum position in a stream/the amount currently downloaded). The position is clamped between zero and the total time, or zero and the fraction in case of a stream.
typedef struct _HildonSeekbar HildonSeekbar;
HildonSeekbar
is deprecated and should not be used in newly-written code.
GtkWidget* hildon_seekbar_new (void);
hildon_seekbar_new
is deprecated and should not be used in newly-written code.
Create a new HildonSeekbar widget.
Returns : | a GtkWidget pointer of HildonSeekbar widget |
gint hildon_seekbar_get_total_time (HildonSeekbar *seekbar);
hildon_seekbar_get_total_time
is deprecated and should not be used in newly-written code.
seekbar : |
pointer to HildonSeekbar widget |
Returns : | total playing time of media in seconds. |
void hildon_seekbar_set_total_time (HildonSeekbar *seekbar, gint time);
hildon_seekbar_set_total_time
is deprecated and should not be used in newly-written code.
Set total playing time of media in seconds.
seekbar : |
pointer to HildonSeekbar widget |
time : |
integer greater than zero |
gint hildon_seekbar_get_position (HildonSeekbar *seekbar);
hildon_seekbar_get_position
is deprecated and should not be used in newly-written code.
Get current position in stream in seconds.
seekbar : |
pointer to HildonSeekbar widget |
Returns : | current position in stream in seconds |
void hildon_seekbar_set_position (HildonSeekbar *seekbar, gint time);
hildon_seekbar_set_position
is deprecated and should not be used in newly-written code.
Set current position in stream in seconds.
seekbar : |
pointer to HildonSeekbar widget |
time : |
time within range of >= 0 && < G_MAXINT |
void hildon_seekbar_set_fraction (HildonSeekbar *seekbar, guint fraction);
hildon_seekbar_set_fraction
is deprecated and should not be used in newly-written code.
Set current fraction value of the range. It should be between the minimal and maximal values of the range in seekbar.
seekbar : |
pointer to HildonSeekbar widget |
fraction : |
the new position of the progress indicator |
guint hildon_seekbar_get_fraction (HildonSeekbar *seekbar);
hildon_seekbar_get_fraction
is deprecated and should not be used in newly-written code.
Get current fraction value of the rage.
seekbar : |
pointer to HildonSeekbar widget |
Returns : | current fraction |