Animation
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_animation_get_type ()" ) ]
[
Version ( deprecated =
true , deprecated_since =
"1.12" , since =
"1.0" ) ]
public class Animation :
Object,
Scriptable
Warning: Animation is deprecated since 1.12.
The Animation structure contains only private data and should be accessed using the provided functions.
Note:
Use the implicit animation on Actor
Content:
Properties:
- public Alpha alpha { get; set; }
The Alpha used by the
animation.
- public uint duration { get; set; }
The duration of the animation, expressed in milliseconds.
- public bool loop { get; set; }
Whether the animation should loop.
- public ulong mode { get; set; }
- public Object object { get; set; }
The Object to which the animation applies.
- public Timeline timeline { get; set; }
Creation methods:
Methods:
- public unowned Animation bind (string property_name, Value final)
Adds a single property with name property_name
to the
animation this.
- public unowned Animation bind_interval (string property_name, owned Interval interval)
Binds interval
to the property_name
of the
Object attached to this.
- public unowned Alpha get_alpha ()
Retrieves the Alpha
used by this.
- public uint get_duration ()
Retrieves the duration of this, in
milliseconds.
- public unowned Interval get_interval (string property_name)
Retrieves the Interval
associated to property_name
inside this.
- public bool get_loop ()
Retrieves whether this is looping.
- public ulong get_mode ()
Retrieves the animation mode of this
, as set by set_mode.
- public unowned Object get_object ()
Retrieves the Object attached to
this.
- public unowned Timeline get_timeline ()
- public bool has_property (string property_name)
Checks whether this is controlling
property_name
.
- public void set_alpha (Alpha alpha)
Sets alpha
as the
Alpha used by this.
- public void set_duration (uint msecs)
Sets the duration of this in
milliseconds.
- public void set_loop (bool loop)
Sets whether this should loop over
itself once finished.
- public void set_mode (ulong mode)
Sets the animation mode
of
this.
- public void set_object (Object object)
Attaches this to object
.
- public void set_timeline (Timeline? timeline)
- public void unbind_property (string property_name)
Removes property_name
from the list of animated
properties.
- public unowned Animation update (string property_name, Value final)
Updates the final
value of the interval for
property_name
- public void update_interval (string property_name, Interval interval)
Changes the interval
for property_name
.
Signals:
Inherited Members:
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
All known members inherited from interface Clutter.Scriptable