Top |
#define | GNT_SLIDER_FLAGS() |
#define | GNT_SLIDER_SET_FLAGS() |
#define | GNT_SLIDER_UNSET_FLAGS() |
GType | gnt_slider_get_gtype () |
#define | gnt_hslider_new() |
#define | gnt_vslider_new() |
GntWidget * | gnt_slider_new () |
gboolean | gnt_slider_get_vertical () |
void | gnt_slider_set_range () |
void | gnt_slider_get_range () |
void | gnt_slider_set_step () |
int | gnt_slider_get_step () |
void | gnt_slider_set_small_step () |
int | gnt_slider_get_small_step () |
void | gnt_slider_set_large_step () |
int | gnt_slider_get_large_step () |
int | gnt_slider_advance_step () |
void | gnt_slider_set_value () |
int | gnt_slider_get_value () |
void | gnt_slider_reflect_label () |
#define GNT_SLIDER_FLAGS(obj) (GNT_SLIDER(obj)->priv.flags)
GNT_SLIDER_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_SLIDER_SET_FLAGS(obj, flags) (GNT_SLIDER_FLAGS(obj) |= flags)
GNT_SLIDER_SET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_SLIDER_UNSET_FLAGS(obj, flags) (GNT_SLIDER_FLAGS(obj) &= ~(flags))
GNT_SLIDER_UNSET_FLAGS
has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
GntWidget * gnt_slider_new (gboolean orient
,int max
,int min
);
Create a new slider.
orient |
A vertical slider is created if |
|
max |
The maximum value for the slider |
|
min |
The minimum value for the slider |
Since: 2.1.0
gboolean
gnt_slider_get_vertical (GntSlider *slider
);
Get whether the slider is vertical or not.
Since: 2.14.0
void gnt_slider_set_range (GntSlider *slider
,int max
,int min
);
Set the range of the slider.
Since: 2.1.0
void gnt_slider_get_range (GntSlider *slider
,int *max
,int *min
);
Get the range of the slider.
Since: 2.14.0
void gnt_slider_set_step (GntSlider *slider
,int step
);
Sets the amount of change at each step.
Since: 2.1.0
int
gnt_slider_get_step (GntSlider *slider
);
Gets the amount of change at each step.
Since: 2.14.0
void gnt_slider_set_small_step (GntSlider *slider
,int step
);
Sets the amount of change a small step.
Since: 2.2.0
int
gnt_slider_get_small_step (GntSlider *slider
);
Gets the amount of change for a small step.
Since: 2.14.0
void gnt_slider_set_large_step (GntSlider *slider
,int step
);
Sets the amount of change a large step.
Since: 2.2.0
int
gnt_slider_get_large_step (GntSlider *slider
);
Gets the amount of change for a large step.
Since: 2.14.0
int gnt_slider_advance_step (GntSlider *slider
,int steps
);
Advance the slider forward or backward.
slider |
The slider |
|
steps |
The number of amounts to change, positive to change forward, negative to change backward |
Since: 2.1.0
void gnt_slider_set_value (GntSlider *slider
,int value
);
Set the current value for the slider.
Since: 2.1.0
int
gnt_slider_get_value (GntSlider *slider
);
Get the current value for the slider.
Since: 2.1.0
struct GntSlider { GntWidget parent; gboolean GNTSEAL(vertical); int GNTSEAL(max); /* maximum value */ int GNTSEAL(min); /* minimum value */ int GNTSEAL(step); /* amount to change at each step */ int GNTSEAL(current); /* current value */ int GNTSEAL(smallstep); int GNTSEAL(largestep); };
Access to any fields is deprecated. See inline comments for replacements.
Since: 2.1.0