Packages
clutter-1.0
Clutter
Animator
duration
timeline
Animator
@set
compute_value
get_duration
get_keys
get_timeline
property_get_ease_in
property_get_interpolation
property_set_ease_in
property_set_interpolation
remove_key
set_duration
set_key
set_timeline
start
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
Animator
Object Hierarchy:
Description:
public
class
Animator
:
Object
,
Scriptable
The
Animator
structure contains only private data
Namespace:
Clutter
Package:
clutter-1.0
Content:
Properties:
public
uint
duration
{
set
;
get
; }
The duration of the
Timeline
used by the
Animator
to drive the animation
public
Timeline
timeline
{
set
;
get
; }
The
Timeline
used by the
Animator
to drive the animation
Creation methods:
public
Animator
()
Creates a new
Animator
instance
Methods:
public
bool
compute_value
(
Object
object,
string
property_name,
double
progress,
Value
value)
Compute the value for a managed property at a given progress.
public
uint
get_duration
()
Retrieves the current duration of an animator
public
List
<
unowned
AnimatorKey
>
get_keys
(
Object
? object,
string
? property_name,
double
progress)
Returns a list of pointers to opaque structures with accessor functions that describe the keys added to an animator.
public
weak
Timeline
get_timeline
()
Get the timeline hooked up for driving the
Animator
public
bool
property_get_ease_in
(
Object
object,
string
property_name)
Checks if a property value is to be eased into the animation.
public
Interpolation
property_get_interpolation
(
Object
object,
string
property_name)
Get the interpolation used by animator for a property on a particular object.
public
void
property_set_ease_in
(
Object
object,
string
property_name,
bool
ease_in)
Sets whether a property value is to be eased into the animation.
public
void
property_set_interpolation
(
Object
object,
string
property_name,
Interpolation
interpolation)
Set the interpolation method to use,
LINEAR
causes the values to linearly change between the values, and
CUBIC
causes the values to smoothly change between the values.
public
void
remove_key
(
Object
? object,
string
? property_name,
double
progress)
Removes all keys matching the conditions specificed in the arguments.
public
void
@set
(
void
* first_object,
string
first_property_name,
uint
first_mode, ...)
Adds multiple keys to a
Animator
, specifying the value a given property should have at a given progress of the animation.
public
void
set_duration
(
uint
duration)
Runs the timeline of the
Animator
with a duration in msecs as specified.
public
weak
Animator
set_key
(
Object
object,
string
property_name,
uint
mode,
double
progress,
Value
value)
Sets a single key in the
Animator
for the
property_name
of
object
at
progress
.
public
void
set_timeline
(
Timeline
timeline)
Sets an external timeline that will be used for driving the animation
public
weak
Timeline
start
()
Start the ClutterAnimator, this is a thin wrapper that rewinds and starts the animators current timeline.
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count
All known members inherited from interface Clutter.Scriptable
get_id
parse_custom_node
set_custom_property
set_id