TimedAnimation
Object Hierarchy:
Adw.TimedAnimation
Adw.TimedAnimation
Adw.TimedAnimation
Adw.Animation
Adw.Animation
Adw.Animation->Adw.TimedAnimation
GLib.Object
GLib.Object
GLib.Object->Adw.Animation
Description:
[
CCode ( type_id =
"adw_timed_animation_get_type ()" ) ]
public sealed class TimedAnimation :
Animation
A time-based [class@Animation].
`AdwTimedAnimation` 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`, `AdwTimedAnimation` 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.
Content:
Properties:
public bool alternate { get ; set construct ; }
Whether the animation changes direction on every iteration.
public uint duration { get ; set construct ; }
Duration of the animation, in milliseconds.
public Easing easing { get ; set construct ; }
Easing function used in the animation.
public uint repeat_count { get ; set construct ; }
Number of times the animation will play.
public bool reverse { get ; set construct ; }
Whether the animation plays backwards.
public double value_from { get ; set construct ; }
The value to animate from.
public double value_to { get ; set construct ; }
The value to animate to.
Creation methods:
Methods:
public bool get_alternate ()
Gets whether this changes direction
on every iteration.
public uint get_duration ()
Gets the duration of this .
public Easing get_easing ()
Gets the easing function this uses.
public uint get_repeat_count ()
Gets the number of times this will
play.
public bool get_reverse ()
Gets whether this plays backwards.
public double get_value_from ()
Gets the value this will animate
from.
public double get_value_to ()
Gets the value this will animate to.
public void set_alternate (bool alternate)
Sets whether this changes direction
on every iteration.
public void set_duration (uint duration)
Sets the duration of this .
public void set_easing (Easing easing)
Sets the easing function this will
use.
public void set_repeat_count (uint repeat_count)
Sets the number of times this will
play.
public void set_reverse (bool reverse)
Sets whether this plays backwards.
public void set_value_from (double value)
Sets the value this will animate
from.
public void set_value_to (double value)
Sets the value this will animate to.
Inherited Members:
All known members inherited from class Adw.Animation
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref