MxAdjustment

## MxAdjustment MxAdjustment — A GObject representing an adjustable bounded value |

## Synopsis

    struct              MxAdjustment;
    MxAdjustment *      mx_adjustment_new                   (void);
    MxAdjustment *      mx_adjustment_new_with_values       (gdouble value,
                                                             gdouble lower,
                                                             gdouble upper,
                                                             gdouble step_increment,
                                                             gdouble page_increment,
                                                             gdouble page_size);
    gdouble             mx_adjustment_get_value             (MxAdjustment *adjustment);
    void                mx_adjustment_set_value             (MxAdjustment *adjustment,
                                                             gdouble value);
    gdouble             mx_adjustment_get_lower             (MxAdjustment *adjustment);
    void                mx_adjustment_set_lower             (MxAdjustment *adjustment,
                                                             gdouble lower);
    gdouble             mx_adjustment_get_upper             (MxAdjustment *adjustment);
    void                mx_adjustment_set_upper             (MxAdjustment *adjustment,
                                                             gdouble upper);
    gdouble             mx_adjustment_get_step_increment    (MxAdjustment *adjustment);
    void                mx_adjustment_set_step_increment    (MxAdjustment *adjustment,
                                                             gdouble increment);
    gdouble             mx_adjustment_get_page_increment    (MxAdjustment *adjustment);
    void                mx_adjustment_set_page_increment    (MxAdjustment *adjustment,
                                                             gdouble increment);
    gdouble             mx_adjustment_get_page_size         (MxAdjustment *adjustment);
    void                mx_adjustment_set_page_size         (MxAdjustment *adjustment,
                                                             gdouble page_size);
    void                mx_adjustment_set_values            (MxAdjustment *adjustment,
                                                             gdouble value,
                                                             gdouble lower,
                                                             gdouble upper,
                                                             gdouble step_increment,
                                                             gdouble page_increment,
                                                             gdouble page_size);
    void                mx_adjustment_get_values            (MxAdjustment *adjustment,
                                                             gdouble *value,
                                                             gdouble *lower,
                                                             gdouble *upper,
                                                             gdouble *step_increment,
                                                             gdouble *page_increment,
                                                             gdouble *page_size);
    void                mx_adjustment_interpolate           (MxAdjustment *adjustment,
                                                             gdouble value,
                                                             guint duration,
                                                             gulong mode);
    void                mx_adjustment_interpolate_relative  (MxAdjustment *adjustment,
                                                             gdouble offset,
                                                             guint duration,
                                                             gulong mode);
    gboolean            mx_adjustment_get_elastic           (MxAdjustment *adjustment);
    void                mx_adjustment_set_elastic           (MxAdjustment *adjustment,
                                                             gboolean elastic);

## Object Hierarchy

      GObject
       +----MxAdjustment

## Properties

      "elastic"                  gboolean              : Read / Write / Construct
      "lower"                    gdouble               : Read / Write / Construct
      "page-increment"           gdouble               : Read / Write / Construct
      "page-size"                gdouble               : Read / Write / Construct
      "step-increment"           gdouble               : Read / Write / Construct
      "upper"                    gdouble               : Read / Write / Construct
      "value"                    gdouble               : Read / Write / Construct

## Signals

      "changed"                                        : Run Last

## Description

The MxAdjustment object represents a range of values bounded between a minimum and maximum, together with step and page increments and a page size.

## Details

### struct MxAdjustment

    struct MxAdjustment;

Class for handling an interval between to values. The contents of the MxAdjustment are private and should be accessed using the public API.

### mx_adjustment_new ()

    MxAdjustment *      mx_adjustment_new                   (void);

Create a new MxAdjustment

Returns : | a newly allocated MxAdjustment

### mx_adjustment_new_with_values ()

    MxAdjustment *      mx_adjustment_new_with_values       (gdouble value,
                                                             gdouble lower,
                                                             gdouble upper,
                                                             gdouble step_increment,
                                                             gdouble page_increment,
                                                             gdouble page_size);

Create a new MxAdjustment with the properties set to the values specified.

`value` : | A gdouble
`lower` : | A gdouble
`upper` : | A gdouble
`step_increment` : | A gdouble
`page_increment` : | A gdouble
`page_size` : | A gdouble
Returns : | a newly allocated MxAdjustment

### mx_adjustment_get_value ()

    gdouble             mx_adjustment_get_value             (MxAdjustment *adjustment);

Get the current value of the "value" property

`adjustment` : | An MxAdjustment
Returns : | the current value of the "value" property

### mx_adjustment_set_value ()

    void                mx_adjustment_set_value             (MxAdjustment *adjustment,
                                                             gdouble value);

Set the value of the "value" property.

`adjustment` : | An MxAdjustment
`value` : | A gdouble

### mx_adjustment_get_lower ()

    gdouble             mx_adjustment_get_lower             (MxAdjustment *adjustment);

Get the value of the "lower" property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "lower" property.

### mx_adjustment_set_lower ()

    void                mx_adjustment_set_lower             (MxAdjustment *adjustment,
                                                             gdouble lower);

Set the value of the "lower" property.

`adjustment` : | A MxAdjustment
`lower` : | A gdouble

### mx_adjustment_get_upper ()

    gdouble             mx_adjustment_get_upper             (MxAdjustment *adjustment);

Get the value of the "upper" property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "upper" property.

### mx_adjustment_set_upper ()

    void                mx_adjustment_set_upper             (MxAdjustment *adjustment,
                                                             gdouble upper);

Set the value of the "upper" property.

`adjustment` : | A MxAdjustment
`upper` : | A gdouble

### mx_adjustment_get_step_increment ()

    gdouble             mx_adjustment_get_step_increment    (MxAdjustment *adjustment);

Get the value of the MxAdjustment:step-increment property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "step-increment" property.

### mx_adjustment_set_step_increment ()

    void                mx_adjustment_set_step_increment    (MxAdjustment *adjustment,
                                                             gdouble increment);

Set the value of the "step-increment" property.

`adjustment` : | A MxAdjustment
`increment` : | A gdouble

### mx_adjustment_get_page_increment ()

    gdouble             mx_adjustment_get_page_increment    (MxAdjustment *adjustment);

Get the value of the MxAdjustment:page-increment property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "page-increment" property.

### mx_adjustment_set_page_increment ()

    void                mx_adjustment_set_page_increment    (MxAdjustment *adjustment,
                                                             gdouble increment);

Set the value of the "page-increment" property.

`adjustment` : | A MxAdjustment
`increment` : | A gdouble

### mx_adjustment_get_page_size ()

    gdouble             mx_adjustment_get_page_size         (MxAdjustment *adjustment);

Get the value of the "page-size" property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "page-size" property.

### mx_adjustment_set_page_size ()

    void                mx_adjustment_set_page_size         (MxAdjustment *adjustment,
                                                             gdouble page_size);

Set the "page-size" property.

`adjustment` : | A MxAdjustment
`page_size` : | A gdouble

### mx_adjustment_set_values ()

    void                mx_adjustment_set_values            (MxAdjustment *adjustment,
                                                             gdouble value,
                                                             gdouble lower,
                                                             gdouble upper,
                                                             gdouble step_increment,
                                                             gdouble page_increment,
                                                             gdouble page_size);

Set the various properties of MxAdjustment.

`adjustment` : | A MxAdjustment
`value` : | A gdouble
`lower` : | A gdouble
`upper` : | A gdouble
`step_increment` : | A gdouble
`page_increment` : | A gdouble
`page_size` : | A gdouble

### mx_adjustment_get_values ()

    void                mx_adjustment_get_values            (MxAdjustment *adjustment,
                                                             gdouble *value,
                                                             gdouble *lower,
                                                             gdouble *upper,
                                                             gdouble *step_increment,
                                                             gdouble *page_increment,
                                                             gdouble *page_size);

Get the various properties of MxAdjustment.

`adjustment` : | A MxAdjustment
`value` : | A gdouble
`lower` : | A gdouble
`upper` : | A gdouble
`step_increment` : | A gdouble
`page_increment` : | A gdouble
`page_size` : | A gdouble

### mx_adjustment_interpolate ()

    void                mx_adjustment_interpolate           (MxAdjustment *adjustment,
                                                             gdouble value,
                                                             guint duration,
                                                             gulong mode);

Interpolate "value" to the new value specified by `value`, using the mode and duration given.

`adjustment` : | A MxAdjustment
`value` : | A gdouble
`duration` : | duration in milliseconds
`mode` : | A ClutterAnimationMode

### mx_adjustment_interpolate_relative ()

    void                mx_adjustment_interpolate_relative  (MxAdjustment *adjustment,
                                                             gdouble offset,
                                                             guint duration,
                                                             gulong mode);

Interpolate the value of "value" to a new value calculated from `offset`.

`adjustment` : | A MxAdjustment
`offset` : | A gdouble
`duration` : | duration in milliseconds
`mode` : | A ClutterAnimationMode

### mx_adjustment_get_elastic ()

    gboolean            mx_adjustment_get_elastic           (MxAdjustment *adjustment);

Get the value of the "elastic" property.

`adjustment` : | A MxAdjustment
Returns : | the current value of the "elastic" property.

### mx_adjustment_set_elastic ()

    void                mx_adjustment_set_elastic           (MxAdjustment *adjustment,
                                                             gboolean elastic);

Set the value of the "elastic" property.

`adjustment` : | A MxAdjustment
`elastic` : | A gboolean

## Property Details

### The `"elastic"` property

      "elastic"                  gboolean              : Read / Write / Construct

Make interpolation behave in an 'elastic' way and stop clamping value.

Default value: FALSE

### The `"lower"` property

      "lower"                    gdouble               : Read / Write / Construct

Lower bound.

Default value: 0

### The `"page-increment"` property

      "page-increment"           gdouble               : Read / Write / Construct

Page increment.

Allowed values: >= 0

Default value: 0

### The `"page-size"` property

      "page-size"                gdouble               : Read / Write / Construct

Page size.

Allowed values: >= 0

Default value: 0

### The `"step-increment"` property

      "step-increment"           gdouble               : Read / Write / Construct

Step increment.

Allowed values: >= 0

Default value: 0

### The `"upper"` property

      "upper"                    gdouble               : Read / Write / Construct

Upper bound.

Default value: 0

### The `"value"` property

      "value"                    gdouble               : Read / Write / Construct

Current value.

Default value: 0

## Signal Details

### The `"changed"` signal

    void                user_function                      (MxAdjustment *arg0,
                                                            gpointer      user_data)      : Run Last

Emitted when any of the adjustment values have changed

`user_data` : | user data set when the signal handler was connected.