TimedAnimation

A time-based class@Animation.

adw.timed_animation.TimedAnimation implements a simple animation interpolating the given value from property@TimedAnimation:value-from to property@TimedAnimation:value-to over property@TimedAnimation:duration milliseconds using the curve described by property@TimedAnimation:easing.

If property@TimedAnimation:reverse is set to TRUE, adw.timed_animation.TimedAnimation will instead animate from property@TimedAnimation:value-to to property@TimedAnimation:value-from, and the easing curve will be inverted.

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

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.widget.Widget widget, double from, double to, uint duration, adw.animation_target.AnimationTarget target)

Creates a new adw.timed_animation.TimedAnimation on widget to animate target from from to to.

Members

Functions

getAlternate
bool getAlternate()

Gets whether self changes direction on every iteration.

getDuration
uint getDuration()

Gets the duration of self.

getEasing
adw.types.Easing getEasing()

Gets the easing function self uses.

getRepeatCount
uint getRepeatCount()

Gets the number of times self will play.

getReverse
bool getReverse()

Gets whether self plays backwards.

getValueFrom
double getValueFrom()

Gets the value self will animate from.

getValueTo
double getValueTo()

Gets the value self will animate to.

self
TimedAnimation self()

Returns this, for use in with statements.

setAlternate
void setAlternate(bool alternate)

Sets whether self changes direction on every iteration.

setDuration
void setDuration(uint duration)

Sets the duration of self.

setEasing
void setEasing(adw.types.Easing easing)

Sets the easing function self will use.

setRepeatCount
void setRepeatCount(uint repeatCount)

Sets the number of times self will play.

setReverse
void setReverse(bool reverse)

Sets whether self plays backwards.

setValueFrom
void setValueFrom(double value)

Sets the value self will animate from.

setValueTo
void setValueTo(double value)

Sets the value self will animate to.

Properties

alternate
bool alternate [@property getter]

Get alternate property.

alternate
bool alternate [@property setter]

Set alternate property.

duration
uint duration [@property getter]

Get duration property.

duration
uint duration [@property setter]

Set duration property.

easing
adw.types.Easing easing [@property getter]

Get easing property.

easing
adw.types.Easing easing [@property setter]

Set easing property.

gType
GType gType [@property getter]
repeatCount
uint repeatCount [@property getter]

Get repeatCount property.

repeatCount
uint repeatCount [@property setter]

Set repeatCount property.

reverse
bool reverse [@property getter]

Get reverse property.

reverse
bool reverse [@property setter]

Set reverse property.

valueFrom
double valueFrom [@property getter]

Get valueFrom property.

valueFrom
double valueFrom [@property setter]

Set valueFrom property.

valueTo
double valueTo [@property getter]

Get valueTo property.

valueTo
double valueTo [@property setter]

Set valueTo property.

Static functions

getGType
GType getGType()

Inherited Members

From Animation

getGType
GType getGType()
gType
GType gType [@property getter]
self
Animation self()

Returns this, for use in with statements.

followEnableAnimationsSetting
bool followEnableAnimationsSetting [@property getter]

Get followEnableAnimationsSetting property.

followEnableAnimationsSetting
bool followEnableAnimationsSetting [@property setter]

Set followEnableAnimationsSetting property.

state
adw.types.AnimationState state [@property getter]

Get state property.

target
adw.animation_target.AnimationTarget target [@property getter]

Get target property.

target
adw.animation_target.AnimationTarget target [@property setter]

Set target property.

value
double value [@property getter]

Get value property.

getFollowEnableAnimationsSetting
bool getFollowEnableAnimationsSetting()

Gets whether self should be skipped when animations are globally disabled.

getState
adw.types.AnimationState getState()

Gets the current value of self.

getTarget
adw.animation_target.AnimationTarget getTarget()

Gets the target self animates.

getValue
double getValue()

Gets the current value of self.

getWidget
gtk.widget.Widget getWidget()

Gets the widget self was created for.

pause
void pause()

Pauses a playing animation for self.

play
void play()

Starts the animation for self.

reset
void reset()

Resets the animation for self.

resume
void resume()

Resumes a paused animation for self.

setFollowEnableAnimationsSetting
void setFollowEnableAnimationsSetting(bool setting)

Sets whether to skip self when animations are globally disabled.

setTarget
void setTarget(adw.animation_target.AnimationTarget target)

Sets the target self animates to target.

skip
void skip()

Skips the animation for self.

connectDone
ulong connectDone(T callback, Flag!"After" after)

Connect to Done signal.