v_sim.Animation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
animation is running |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.Animation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a #_VisuAnimation.
- classmethod new(obj, property)¶
- Parameters:
obj (
GObject.Object) – aGObject.Objectobject.property (
str) – a property name.
- Returns:
a new
v_sim.Animationobject.- Return type:
Create an animation for property of obj.
New in version 3.8.
- abort()¶
Stop the current animation.
New in version 3.8.
- animate(tick)¶
-
Update the property animated by self to the value it should take at tick.
New in version 3.8.
- getFrom()¶
- Returns:
a location to store the initial value of self.
- Return type:
from_:
GObject.Value
Retrieves the initial value of self. The animation should be running for this value to be defined.
New in version 3.8.
- getTo()¶
- Returns:
a location to store the final value of self.
- Return type:
to:
GObject.Value
Retrieves the final value of self. The animation should be running for this value to be defined.
New in version 3.8.
- isRunning()¶
-
Inquires if self is currently running.
New in version 3.8.
- start(to, tick, duration, loop, type)¶
- Parameters:
to (
GObject.Value) – a final value.tick (
int) – the current clock time.duration (
int) – a duration in micro-seconds.loop (
bool) – a boolean.type (
v_sim.AnimationType) – a type.
- Returns:
Trueif the animation is actually started.- Return type:
Starts self, to go to the value to from its current value following type evolution. tick is the current clock time and the animation is scheduled to last for duration. If loop is true, when the animation reaches to it restarts again from the initial value. Use
v_sim.Animation.abort() to stop it.New in version 3.8.