1.66 <AdwTimedAnimation>

Class: <AdwTimedAnimation>

It derives from <AdwAnimation>.

A time-based Animation.

<AdwTimedAnimation> implements a simple animation interpolating the given value from TimedAnimation:value-from to TimedAnimation:value-to over TimedAnimation:duration milliseconds using the curve described by TimedAnimation:easing.

If TimedAnimation:reverse is set to TRUE, <AdwTimedAnimation> will instead animate from TimedAnimation:value-to to TimedAnimation:value-from, and the easing curve will be inverted.

The animation can repeat a certain amount of times, or endlessly, depending on the TimedAnimation:repeat-count value. If TimedAnimation:alternate is set to TRUE, it will also change the direction every other iteration.

Properties

Property: timed-animation:alternate self

Whether the animation changes direction on every iteration.

Its value is a boolean.

Set it with (set! (timed-animation:alternate self) value).

Property: timed-animation:duration self

Duration of the animation, in milliseconds.

Describes how much time the animation will take.

If the animation repeats more than once, describes the duration of one iteration.

Its value is an unsigned 32-bit integer.

Set it with (set! (timed-animation:duration self) value).

Property: timed-animation:easing self

Easing function used in the animation.

Describes the curve the value is interpolated on.

See Easing for the description of specific easing functions.

Its value is a <AdwEasing> (or, to set it, one of its symbols).

Set it with (set! (timed-animation:easing self) value).

Property: timed-animation:repeat-count self

Number of times the animation will play.

If set to 0, the animation will repeat endlessly.

Its value is an unsigned 32-bit integer.

Set it with (set! (timed-animation:repeat-count self) value).

Property: timed-animation:reverse self

Whether the animation plays backwards.

Its value is a boolean.

Set it with (set! (timed-animation:reverse self) value).

Property: timed-animation:value-from self

The value to animate from.

The animation will start at this value and end at TimedAnimation:value-to.

If TimedAnimation:reverse is TRUE, the animation will end at this value instead.

Its value is a real number.

Set it with (set! (timed-animation:value-from self) value).

Property: timed-animation:value-to self

The value to animate to.

The animation will start at TimedAnimation:value-from and end at this value.

If TimedAnimation:reverse is TRUE, the animation will start at this value instead.

Its value is a real number.

Set it with (set! (timed-animation:value-to self) value).

Procedures

Method: timed-animation:get-alternate? self ⇒ %return
Method: get-alternate? self ⇒ %return

Gets whether self changes direction on every iteration.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: a boolean.

whether self alternates

Method: timed-animation:get-duration self ⇒ %return
Method: get-duration self ⇒ %return

Gets the duration of self.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: an unsigned 32-bit integer.

the duration of self, in milliseconds

Method: timed-animation:get-easing self ⇒ %return
Method: get-easing self ⇒ %return

Gets the easing function self uses.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: a <AdwEasing>.

the easing function self uses

Method: timed-animation:get-repeat-count self ⇒ %return
Method: get-repeat-count self ⇒ %return

Gets the number of times self will play.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: an unsigned 32-bit integer.

the number of times self will play

Method: timed-animation:get-reverse? self ⇒ %return
Method: get-reverse? self ⇒ %return

Gets whether self plays backwards.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: a boolean.

whether self plays backwards

Method: timed-animation:get-value-from self ⇒ %return
Method: get-value-from self ⇒ %return

Gets the value self will animate from.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: a real number.

the value to animate from

Method: timed-animation:get-value-to self ⇒ %return
Method: get-value-to self ⇒ %return

Gets the value self will animate to.

self

Passed: a <AdwTimedAnimation>.

a timed animation

%return

Returned: a real number.

the value to animate to

Procedure: timed-animation:new widget from to duration target ⇒ %return

Creates a new <AdwTimedAnimation> on widget to animate target from from to to.

widget

Passed: a <GtkWidget>.

a widget to create animation on

from

Passed: a real number.

a value to animate from

to

Passed: a real number.

a value to animate to

duration

Passed: an unsigned 32-bit integer.

a duration for the animation

target

Passed: a <AdwAnimationTarget>.

a target value to animate

%return

Returned: a <AdwAnimation>.

the newly created animation

Method: timed-animation:set-alternate self alternate
Method: set-alternate self alternate

Sets whether self changes direction on every iteration.

self

Passed: a <AdwTimedAnimation>.

a timed animation

alternate

Passed: a boolean.

whether self alternates

Method: timed-animation:set-duration self duration
Method: set-duration self duration

Sets the duration of self.

If the animation repeats more than once, sets the duration of one iteration.

self

Passed: a <AdwTimedAnimation>.

a timed animation

duration

Passed: an unsigned 32-bit integer.

the duration to use, in milliseconds

Method: timed-animation:set-easing self easing
Method: set-easing self easing

Sets the easing function self will use.

See Easing for the description of specific easing functions.

self

Passed: a <AdwTimedAnimation>.

a timed animation

easing

Passed: a <AdwEasing>, or one of its symbols.

the easing function to use

Method: timed-animation:set-repeat-count self repeat-count
Method: set-repeat-count self repeat-count

Sets the number of times self will play.

If set to 0, self will repeat endlessly.

self

Passed: a <AdwTimedAnimation>.

a timed animation

repeat-count

Passed: an unsigned 32-bit integer.

the number of times self will play

Method: timed-animation:set-reverse self reverse
Method: set-reverse self reverse

Sets whether self plays backwards.

self

Passed: a <AdwTimedAnimation>.

a timed animation

reverse

Passed: a boolean.

whether self plays backwards

Method: timed-animation:set-value-from self value
Method: set-value-from self value

Sets the value self will animate from.

The animation will start at this value and end at TimedAnimation:value-to.

If TimedAnimation:reverse is TRUE, the animation will end at this value instead.

self

Passed: a <AdwTimedAnimation>.

a timed animation

value

Passed: a real number.

the value to animate from

Method: timed-animation:set-value-to self value
Method: set-value-to self value

Sets the value self will animate to.

The animation will start at TimedAnimation:value-from and end at this value.

If TimedAnimation:reverse is TRUE, the animation will start at this value instead.

self

Passed: a <AdwTimedAnimation>.

a timed animation

value

Passed: a real number.

the value to animate to