Dazzle.Animation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The duration of the animation |
||
w/co |
An optional frame-clock to synchronize with. |
||
w/co |
The animation mode |
||
w/co |
The target of the animation |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The “tick” signal is emitted on each frame in the animation. |
Fields¶
- Inherited:
Class Details¶
- class Dazzle.Animation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod calculate_duration(monitor, from_value, to_value)¶
- Parameters:
monitor (
Gdk.Monitor
) –from_value (
float
) –to_value (
float
) –
- Return type:
- add_property(pspec, value)¶
- Parameters:
pspec (
GObject.ParamSpec
) – A #ParamSpec of target or aGtk.Widget
‘s parent.value (
GObject.Value
) – The new value for the property at the end of the animation.
Adds a new property to the set of properties to be animated during the lifetime of the animation.
Side effects: None.
- start()¶
Start the animation. When the animation stops, the internal reference will be dropped and the animation may be finalized.
Side effects: None.
Signal Details¶
- Dazzle.Animation.signals.tick(animation)¶
- Signal Name:
tick
- Flags:
- Parameters:
animation (
Dazzle.Animation
) – The object which received the signal
The “tick” signal is emitted on each frame in the animation.
Property Details¶
- Dazzle.Animation.props.duration¶
- Name:
duration
- Type:
- Default Value:
250
- Flags:
The “duration” property is the total number of milliseconds that the animation should run before being completed.
- Dazzle.Animation.props.frame_clock¶
- Name:
frame-clock
- Type:
- Default Value:
- Flags:
An optional frame-clock to synchronize with.
- Dazzle.Animation.props.mode¶
- Name:
mode
- Type:
- Default Value:
- Flags:
The “mode” property is the Alpha function that should be used to determine the offset within the animation based on the current offset in the animations duration.
- Dazzle.Animation.props.target¶
- Name:
target
- Type:
- Default Value:
- Flags:
The “target” property is the
GObject.Object
that should have its properties animated.