AyatanaIdo3.Timeline¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Animation Duration |
||
r/w |
Frames per second for the timeline |
||
r/w |
Whether the timeline loops or not |
||
r/w |
|
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AyatanaIdo3.Timeline(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod calculate_progress(linear_progress, progress_type)¶
- Parameters:
linear_progress (
float
) – The progress from 0.0 (start) to 1.0 (end)progress_type (
AyatanaIdo3.TimelineProgressType
) – The progress transform to apply
- Returns:
the progress position using the provided transform.
- Return type:
Transform a linear progress position using the given transform.
- classmethod new(duration)¶
- Parameters:
duration (
int
) – duration in milliseconds for the timeline- Returns:
the newly created
AyatanaIdo3.Timeline
- Return type:
Creates a new
AyatanaIdo3.Timeline
with the specified number of frames.
- classmethod new_for_screen(duration, screen)¶
- Parameters:
duration (
int
) – duration in milliseconds for the timelinescreen (
Gdk.Screen
) –xlib.Screen
to start on.
- Returns:
the newly created
AyatanaIdo3.Timeline
- Return type:
Creates a new
AyatanaIdo3.Timeline
with the specified number of frames on the given screen.
- get_direction()¶
- Returns:
direction
- Return type:
Returns the direction of the timeline.
- get_loop()¶
-
Returns whether the timeline loops to the beginning when it has reached the end.
- get_progress()¶
- Returns:
The progress from 0.0 (start) to 1.0 (end)
- Return type:
Get the progress on the timeline.
- get_screen()¶
- Returns:
The
Gdk.Screen
this timeline is running on.- Return type:
Get the screen this timeline is running on.
- is_running()¶
-
Returns whether the timeline is running or not.
- pause()¶
Pauses the timeline.
- rewind()¶
Rewinds the timeline.
- set_direction(direction)¶
- Parameters:
direction (
AyatanaIdo3.TimelineDirection
) – direction
Sets the direction of the timeline.
- set_duration(duration)¶
- Parameters:
duration (
int
) – Duration in milliseconds.
Set the animation duration.
- set_fps(fps)¶
- Parameters:
fps (
int
) – frames per second
Sets the number of frames per second that the timeline will play.
- set_loop(loop)¶
-
Sets whether the timeline loops to the beginning when it has reached the end.
- set_progress(progress)¶
- Parameters:
progress (
float
) – The progress from 0.0 (start) to 1.0 (end)
Set the progress on the timeline.
- set_screen(screen)¶
- Parameters:
screen (
Gdk.Screen
) – AGdk.Screen
to use
Set the screen the timeline is running on.
- start()¶
Runs the timeline from the current frame.
- do_finished() virtual¶
- do_paused() virtual¶
- do_started() virtual¶
Signal Details¶
- AyatanaIdo3.Timeline.signals.finished(timeline)¶
- Signal Name:
finished
- Flags:
- Parameters:
timeline (
AyatanaIdo3.Timeline
) – The object which received the signal
The
::paused
signal is emitted when the timeline finishes.
- AyatanaIdo3.Timeline.signals.frame(timeline, progress)¶
- Signal Name:
frame
- Flags:
- Parameters:
timeline (
AyatanaIdo3.Timeline
) – The object which received the signalprogress (
float
) – The progress position for this frame from 0.0 (start) to 1.0 (end).
The
::frame
signal is emitted when a frame should be drawn.
- AyatanaIdo3.Timeline.signals.paused(timeline)¶
- Signal Name:
paused
- Flags:
- Parameters:
timeline (
AyatanaIdo3.Timeline
) – The object which received the signal
The
::paused
signal is emitted when the timeline pauses.
- AyatanaIdo3.Timeline.signals.started(timeline)¶
- Signal Name:
started
- Flags:
- Parameters:
timeline (
AyatanaIdo3.Timeline
) – The object which received the signal
The
::started
signal is emitted when the timeline starts.
Property Details¶
- AyatanaIdo3.Timeline.props.duration¶
-
Animation Duration
- AyatanaIdo3.Timeline.props.fps¶
-
Frames per second for the timeline
- AyatanaIdo3.Timeline.props.loop¶
-
Whether the timeline loops or not
- AyatanaIdo3.Timeline.props.screen¶
- Name:
screen
- Type:
- Default Value:
- Flags:
xlib.Screen
to get the settings from