An object holding an interval of two values

`<clutter-interval>`

is a simple object that can hold two values
defining an interval. `<clutter-interval>`

can hold any value that
can be enclosed inside a `<gvalue>`

.

Once a `<clutter-interval>`

for a specific `<g-type>`

has been
instantiated the `<"value-type">`

property cannot be changed
anymore.

`<clutter-interval>`

starts with a floating reference; this means
that any object taking a reference on a `<clutter-interval>`

instance should also take ownership of the interval by using
`g-object-ref-sink`

.

`<clutter-interval>`

is used by `<clutter-animation>`

to
define the interval of values that an implicit animation should tween
over.

`<clutter-interval>`

can be subclassed to override the validation
and value computation.

`<clutter-interval>`

is available since Clutter 1.0

— Function: **clutter-interval-new-with-values** (`gtype ``initial ``final `` ⇒ `(`ret `

`<gtype>`

) (`<gvalue>`

) (`<gvalue>`

)`<clutter-interval>`

)Creates a new

`<clutter-interval>`

of typegtype, betweeninitialandfinal.This function is useful for language bindings.

gtype- the type of the values in the interval
initial- a
`<gvalue>`

holding the initial value of the intervalfinal- a
`<gvalue>`

holding the final value of the intervalret- the newly created
`<clutter-interval>`

Since 1.0

— Function: **clutter-interval-clone** (`self `` ⇒ `(`ret `

— Method:**clone**

`<clutter-interval>`

)`<clutter-interval>`

)— Method:

Creates a copy of

interval.

interval- a
`<clutter-interval>`

ret- the newly created
`<clutter-interval>`

.Since 1.0

— Function: **clutter-interval-get-value-type** (`self `` ⇒ `(`ret `

— Method:**get-value-type**

`<clutter-interval>`

)`<gtype>`

)— Method:

Retrieves the

`<g-type>`

of the values insideinterval.

interval- a
`<clutter-interval>`

ret- the type of the value, or G_TYPE_INVALID
Since 1.0

— Function: **clutter-interval-set-initial-value** (`self ``value `

— Method:**set-initial-value**

`<clutter-interval>`

) (`<gvalue>`

)— Method:

Sets the initial value of

intervaltovalue. The value is copied inside the`<clutter-interval>`

.Rename to: clutter_interval_set_initial

interval- a
`<clutter-interval>`

value- a
`<gvalue>`

Since 1.0

— Function: **clutter-interval-get-initial-value** (`self `` ⇒ `(`ret `

— Method:**get-initial-value**

`<clutter-interval>`

)`<gvalue>`

)— Method:

Retrieves the initial value of

intervaland copies it intovalue.The passed

`<gvalue>`

must be initialized to the value held by the`<clutter-interval>`

.

interval- a
`<clutter-interval>`

value- a
`<gvalue>`

.Since 1.0

— Function: **clutter-interval-set-final-value** (`self ``value `

— Method:**set-final-value**

`<clutter-interval>`

) (`<gvalue>`

)— Method:

Sets the final value of

intervaltovalue. The value is copied inside the`<clutter-interval>`

.Rename to: clutter_interval_set_final

interval- a
`<clutter-interval>`

value- a
`<gvalue>`

Since 1.0

— Function: **clutter-interval-get-final-value** (`self `` ⇒ `(`ret `

— Method:**get-final-value**

`<clutter-interval>`

)`<gvalue>`

)— Method:

Retrieves the final value of

intervaland copies it intovalue.The passed

`<gvalue>`

must be initialized to the value held by the`<clutter-interval>`

.

interval- a
`<clutter-interval>`

value- a
`<gvalue>`

.Since 1.0

— Function: **clutter-interval-validate** (`self ``pspec `` ⇒ `(`ret `

— Method:**validate**

`<clutter-interval>`

) (`<gparam>`

)`bool`

)— Method:

Validates the initial and final values of

intervalagainst a`<gparam>`

.

interval- a
`<clutter-interval>`

pspec- a
`<gparam>`

ret- ‘
’ if the`#t`

`<clutter-interval>`

is valid, ‘’ otherwise`#f`

Since 1.0

— Function: **clutter-interval-compute** (`self ``factor `` ⇒ `(`ret `

— Method:**compute**

`<clutter-interval>`

) (`double`

)`<gvalue>`

)— Method:

Computes the value between the

intervalboundaries given the progressfactorUnlike

`clutter-interval-compute-value`

, this function will return a const pointer to the computed valueYou should use this function if you immediately pass the computed value to another function that makes a copy of it, like

`g-object-set-property`

interval- a
`<clutter-interval>`

factor- the progress factor, between 0 and 1
ret- a pointer to the computed value, or ‘
’ if the computation was not successfull.`#f`

Since 1.4