hildon 2.1.24 Reference Manual | ||||
---|---|---|---|---|
HildonControlbarHildonControlbar — A widget that allows increasing or decreasing a value within a pre-defined range. |
HildonControlbar; GtkWidget* hildon_controlbar_new (void); void hildon_controlbar_set_value (HildonControlbar *self, gint value); gint hildon_controlbar_get_value (HildonControlbar *self); gint hildon_controlbar_get_max (HildonControlbar *self); gint hildon_controlbar_get_min (HildonControlbar *self); void hildon_controlbar_set_max (HildonControlbar *self, gint max); void hildon_controlbar_set_min (HildonControlbar *self, gint min); void hildon_controlbar_set_range (HildonControlbar *self, gint min, gint max);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkRange +----GtkScale +----HildonControlbar
HildonControlbar is a horizontally positioned range widget that is visually divided into blocks and supports setting a minimum and maximum value for the range.
Example 7. HildonControlbar example
GtkWidget *cbar = hildon_controlbar_new(); hildon_controlbar_set_max (HILDON_CONTROLBAR (cbar), 12); hildon_controlbar_set_value (HILDON_CONTROLBAR (cbar), 6);
typedef struct _HildonControlbar HildonControlbar;
HildonControlbar
is deprecated and should not be used in newly-written code.
GtkWidget* hildon_controlbar_new (void);
hildon_controlbar_new
is deprecated and should not be used in newly-written code.
Creates a new HildonControlbar widget.
Returns : | a GtkWidget pointer of newly created control bar widget |
void hildon_controlbar_set_value (HildonControlbar *self, gint value);
hildon_controlbar_set_value
is deprecated and should not be used in newly-written code.
Set the current value of the control bar to the specified value.
self : |
pointer to HildonControlbar |
value : |
value in range of >= 0 && < G_MAX_INT |
gint hildon_controlbar_get_value (HildonControlbar *self);
hildon_controlbar_get_value
is deprecated and should not be used in newly-written code.
self : |
pointer to HildonControlbar |
Returns : | current value as gint |
gint hildon_controlbar_get_max (HildonControlbar *self);
hildon_controlbar_get_max
is deprecated and should not be used in newly-written code.
self : |
a pointer to HildonControlbar |
Returns : | maximum value of control bar |
gint hildon_controlbar_get_min (HildonControlbar *self);
hildon_controlbar_get_min
is deprecated and should not be used in newly-written code.
self : |
a pointer to HildonControlbar |
Returns : | minimum value of controlbar |
void hildon_controlbar_set_max (HildonControlbar *self, gint max);
hildon_controlbar_set_max
is deprecated and should not be used in newly-written code.
Set the control bar's maximum to the given value.
If the new maximum is smaller than current value, the value will be adjusted so that it equals the new maximum.
self : |
pointer to HildonControlbar |
max : |
maximum value to set. The value needs to be greater than 0. |
void hildon_controlbar_set_min (HildonControlbar *self, gint min);
hildon_controlbar_set_min
is deprecated and should not be used in newly-written code.
Set the control bar's minimum to the given value.
If the new minimum is smaller than current value, the value will be adjusted so that it equals the new minimum.
self : |
pointer to HildonControlbar |
min : |
minimum value to set. The value needs to be greater than or equal to 0. |
void hildon_controlbar_set_range (HildonControlbar *self, gint min, gint max);
hildon_controlbar_set_range
is deprecated and should not be used in newly-written code.
Set the controlbars range to the given value
If the new maximum is smaller than current value, the value will be adjusted so that it equals the new maximum.
If the new minimum is smaller than current value, the value will be adjusted so that it equals the new minimum.
self : |
pointer to HildonControlbar |
min : |
Minimum value to set. The value needs to be greater than or equal to 0. |
max : |
maximum value to set. The value needs to be greater than 0. |
"end-reached"
signalvoid user_function (HildonControlbar *hildoncontrolbar, gboolean arg1, gpointer user_data) : Run First
hildoncontrolbar : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |