Scale with two sliders that can be locked. More...
Data Structures | |
struct | _GaminggearXyScalesClass |
struct | _GaminggearXyScales |
Macros | |
#define | GAMINGGEAR_XY_SCALES_TYPE (gaminggear_xy_scales_get_type()) |
#define | GAMINGGEAR_XY_SCALES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GAMINGGEAR_XY_SCALES_TYPE, GaminggearXyScalesClass)) |
#define | IS_GAMINGGEAR_XY_SCALES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GAMINGGEAR_XY_SCALES_TYPE)) |
#define | GAMINGGEAR_XY_SCALES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GAMINGGEAR_XY_SCALES_TYPE, GaminggearXyScales)) |
#define | IS_GAMINGGEAR_XY_SCALES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GAMINGGEAR_XY_SCALES_TYPE)) |
Typedefs | |
typedef struct _GaminggearXyScalesClass | GaminggearXyScalesClass |
typedef struct _GaminggearXyScales | GaminggearXyScales |
typedef struct _GaminggearXyScalesPrivate | GaminggearXyScalesPrivate |
Functions | |
GType | gaminggear_xy_scales_get_type (void) |
GtkWidget * | gaminggear_xy_scales_new (gdouble min, gdouble max, gdouble step) |
Creates new xy scale. More... | |
gdouble | gaminggear_xy_scales_get_x_value (GaminggearXyScales *scales) |
Get the value for X. More... | |
void | gaminggear_xy_scales_set_x_value (GaminggearXyScales *scales, gdouble value) |
Set the value for X. More... | |
gdouble | gaminggear_xy_scales_get_y_value (GaminggearXyScales *scales) |
Get the value for Y. More... | |
void | gaminggear_xy_scales_set_y_value (GaminggearXyScales *scales, gdouble value) |
Set the value for Y. More... | |
gboolean | gaminggear_xy_scales_get_linked (GaminggearXyScales *scales) |
Get the state of the link indicator. More... | |
void | gaminggear_xy_scales_set_linked (GaminggearXyScales *scales, gboolean value) |
Set the state of the link indicator. More... | |
void | gaminggear_xy_scales_set_digits (GaminggearXyScales *scales, guint digits) |
Set digits on spin button. More... | |
Scale with two sliders that can be locked.
#define GAMINGGEAR_XY_SCALES | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST((obj), GAMINGGEAR_XY_SCALES_TYPE, GaminggearXyScales)) |
#define GAMINGGEAR_XY_SCALES_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST((klass), GAMINGGEAR_XY_SCALES_TYPE, GaminggearXyScalesClass)) |
#define GAMINGGEAR_XY_SCALES_TYPE (gaminggear_xy_scales_get_type()) |
#define IS_GAMINGGEAR_XY_SCALES | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj), GAMINGGEAR_XY_SCALES_TYPE)) |
#define IS_GAMINGGEAR_XY_SCALES_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE((klass), GAMINGGEAR_XY_SCALES_TYPE)) |
typedef struct _GaminggearXyScales GaminggearXyScales |
typedef struct _GaminggearXyScalesClass GaminggearXyScalesClass |
typedef struct _GaminggearXyScalesPrivate GaminggearXyScalesPrivate |
gboolean gaminggear_xy_scales_get_linked | ( | GaminggearXyScales * | scales | ) |
Get the state of the link indicator.
scales | A xy scale. |
value | Returns TRUE if X and Y are linked, FALSE else. |
GType gaminggear_xy_scales_get_type | ( | void | ) |
gdouble gaminggear_xy_scales_get_x_value | ( | GaminggearXyScales * | scales | ) |
Get the value for X.
scales | A xy scale. |
value | The actual value. |
gdouble gaminggear_xy_scales_get_y_value | ( | GaminggearXyScales * | scales | ) |
Get the value for Y.
scales | A xy scale. |
value | The actual value. |
GtkWidget* gaminggear_xy_scales_new | ( | gdouble | min, |
gdouble | max, | ||
gdouble | step | ||
) |
Creates new xy scale.
Adds marks with distance step.
min | The minimal value. |
max | The maximal value. |
step | Step increment. |
widget | A new xy scale. |
void gaminggear_xy_scales_set_digits | ( | GaminggearXyScales * | scales, |
guint | digits | ||
) |
Set digits on spin button.
scales | A xy scale. |
digits | The new amount of digits to show in the spin button. |
void gaminggear_xy_scales_set_linked | ( | GaminggearXyScales * | scales, |
gboolean | value | ||
) |
Set the state of the link indicator.
scales | A xy scale. |
value | The new state. |
void gaminggear_xy_scales_set_x_value | ( | GaminggearXyScales * | scales, |
gdouble | value | ||
) |
Set the value for X.
scales | A xy scale. |
value | The new value. |
void gaminggear_xy_scales_set_y_value | ( | GaminggearXyScales * | scales, |
gdouble | value | ||
) |
Set the value for Y.
scales | A xy scale. |
value | The new value. |