#include "gntwidget.h"
#include "gnt.h"
#include "gntlabel.h"
Go to the source code of this file.
Data Structures | |
struct | _GntSlider |
struct | _GntSliderClass |
Defines | |
#define | GNT_TYPE_SLIDER (gnt_slider_get_gtype()) |
#define | GNT_SLIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_SLIDER, GntSlider)) |
#define | GNT_SLIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_SLIDER, GntSliderClass)) |
#define | GNT_IS_SLIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_SLIDER)) |
#define | GNT_IS_SLIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_SLIDER)) |
#define | GNT_SLIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_SLIDER, GntSliderClass)) |
#define | GNT_SLIDER_FLAGS(obj) (GNT_SLIDER(obj)->priv.flags) |
#define | GNT_SLIDER_SET_FLAGS(obj, flags) (GNT_SLIDER_FLAGS(obj) |= flags) |
#define | GNT_SLIDER_UNSET_FLAGS(obj, flags) (GNT_SLIDER_FLAGS(obj) &= ~(flags)) |
#define | gnt_hslider_new(max, min) gnt_slider_new(FALSE, max, min) |
#define | gnt_vslider_new(max, min) gnt_slider_new(TRUE, max, min) |
Typedefs | |
typedef struct _GntSlider | GntSlider |
typedef struct _GntSliderPriv | GntSliderPriv |
typedef struct _GntSliderClass | GntSliderClass |
Functions | |
G_BEGIN_DECLS GType | gnt_slider_get_gtype (void) |
GntWidget * | gnt_slider_new (gboolean orient, int max, int min) |
Create a new slider. | |
void | gnt_slider_set_range (GntSlider *slider, int max, int min) |
Set the range of the slider. | |
void | gnt_slider_set_step (GntSlider *slider, int step) |
Sets the amount of change at each step. | |
void | gnt_slider_set_small_step (GntSlider *slider, int step) |
Sets the amount of change a small step. | |
void | gnt_slider_set_large_step (GntSlider *slider, int step) |
Sets the amount of change a large step. | |
int | gnt_slider_advance_step (GntSlider *slider, int steps) |
Advance the slider forward or backward. | |
void | gnt_slider_set_value (GntSlider *slider, int value) |
Set the current value for the slider. | |
int | gnt_slider_get_value (GntSlider *slider) |
Get the current value for the slider. | |
void | gnt_slider_reflect_label (GntSlider *slider, GntLabel *label) |
Update a label with the value of the slider whenever the value changes. |
Definition in file gntslider.h.
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 |
G_BEGIN_DECLS GType gnt_slider_get_gtype | ( | void | ) |
int gnt_slider_get_value | ( | GntSlider * | slider | ) |
Get the current value for the slider.
slider | The slider |
GntWidget* gnt_slider_new | ( | gboolean | orient, | |
int | max, | |||
int | min | |||
) |
Create a new slider.
orient | A vertical slider is created if TRUE , otherwise the slider is horizontal. | |
max | The maximum value for the slider | |
min | The minimum value for the slider |
void gnt_slider_reflect_label | ( | GntSlider * | slider, | |
GntLabel * | label | |||
) |
Update a label with the value of the slider whenever the value changes.
slider | The slider | |
label | The label to update |
void gnt_slider_set_large_step | ( | GntSlider * | slider, | |
int | step | |||
) |
Sets the amount of change a large step.
slider | The slider | |
step | The amount for a large step (for the slider) |
void gnt_slider_set_range | ( | GntSlider * | slider, | |
int | max, | |||
int | min | |||
) |
Set the range of the slider.
slider | The slider | |
max | The maximum value | |
min | The minimum value |
void gnt_slider_set_small_step | ( | GntSlider * | slider, | |
int | step | |||
) |
Sets the amount of change a small step.
slider | The slider | |
step | The amount for a small step (for the slider) |
void gnt_slider_set_step | ( | GntSlider * | slider, | |
int | step | |||
) |
Sets the amount of change at each step.
slider | The slider | |
step | The amount for each step |
void gnt_slider_set_value | ( | GntSlider * | slider, | |
int | value | |||
) |
Set the current value for the slider.
slider | The slider | |
value | The current value |