pub struct Transition(/* private fields */);
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Transition
impl Debug for Transition
Source§impl Display for Transition
impl Display for Transition
Source§impl Hash for Transition
impl Hash for Transition
Source§impl Ord for Transition
impl Ord for Transition
Source§fn cmp(&self, other: &Transition) -> Ordering
fn cmp(&self, other: &Transition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for Transition
impl<T: ObjectType> PartialEq<T> for Transition
Source§impl<T: ObjectType> PartialOrd<T> for Transition
impl<T: ObjectType> PartialOrd<T> for Transition
Source§impl StaticType for Transition
impl StaticType for Transition
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Transition
impl IsA<Timeline> for Transition
impl IsA<Transition> for KeyframeTransition
impl IsA<Transition> for PropertyTransition
impl IsA<Transition> for TransitionGroup
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl !Send for Transition
impl !Sync for Transition
impl Unpin for Transition
impl UnwindSafe for Transition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.fn get_type(&self) -> Type
fn get_object_class(&self) -> &ObjectClass
fn set_properties( &self, property_values: &[(&str, &dyn ToValue)], ) -> Result<(), BoolError>
fn set_property<'a, N>( &self, property_name: N, value: &dyn ToValue, ) -> Result<(), BoolError>
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
fn notify<'a, N>(&self, property_name: N)
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn connect<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn connect_local<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
unsafe fn connect_unsafe<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn emit<'a, N>( &self, signal_name: N, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>( &'a self, source_property: N, target: &'a O, target_property: M, ) -> BindingBuilder<'a>
fn ref_count(&self) -> u32
Source§impl<O> TimelineExt for O
impl<O> TimelineExt for O
Source§fn add_marker(&self, marker_name: &str, progress: f64)
fn add_marker(&self, marker_name: &str, progress: f64)
Adds a named marker that will be hit when the timeline has reached
the specified
progress
. Read moreSource§fn add_marker_at_time(&self, marker_name: &str, msecs: u32)
fn add_marker_at_time(&self, marker_name: &str, msecs: u32)
Adds a named marker that will be hit when the timeline has been
running for
msecs
milliseconds. Read moreSource§fn advance(&self, msecs: u32)
fn advance(&self, msecs: u32)
Advance timeline to the requested point. The point is given as a
time in milliseconds since the timeline started. Read more
Source§fn advance_to_marker(&self, marker_name: &str)
fn advance_to_marker(&self, marker_name: &str)
Source§fn get_auto_reverse(&self) -> bool
fn get_auto_reverse(&self) -> bool
Retrieves the value set by
TimelineExt::set_auto_reverse
. Read moreSource§fn get_cubic_bezier_progress(&self) -> Option<(Point, Point)>
fn get_cubic_bezier_progress(&self) -> Option<(Point, Point)>
Retrieves the control points for the cubic bezier progress mode. Read more
Source§fn get_current_repeat(&self) -> i32
fn get_current_repeat(&self) -> i32
Retrieves the current repeat for a timeline. Read more
Source§fn get_delta(&self) -> u32
fn get_delta(&self) -> u32
Retrieves the amount of time elapsed since the last
ClutterTimeline::new-frame signal. Read more
Source§fn get_direction(&self) -> TimelineDirection
fn get_direction(&self) -> TimelineDirection
Retrieves the direction of the timeline set with
TimelineExt::set_direction
. Read moreSource§fn get_duration(&self) -> u32
fn get_duration(&self) -> u32
Source§fn get_duration_hint(&self) -> i64
fn get_duration_hint(&self) -> i64
Retrieves the full duration of the
self
, taking into account the
current value of the Timeline:repeat-count
property. Read moreSource§fn get_elapsed_time(&self) -> u32
fn get_elapsed_time(&self) -> u32
Request the current time position of the timeline. Read more
Source§fn get_progress(&self) -> f64
fn get_progress(&self) -> f64
The position of the timeline in a normalized [-1, 2] interval. Read more
Source§fn get_progress_mode(&self) -> AnimationMode
fn get_progress_mode(&self) -> AnimationMode
Retrieves the progress mode set using
TimelineExt::set_progress_mode
or TimelineExt::set_progress_func
. Read moreSource§fn get_repeat_count(&self) -> i32
fn get_repeat_count(&self) -> i32
Retrieves the number set using
TimelineExt::set_repeat_count
. Read moreSource§fn get_step_progress(&self) -> Option<(i32, StepMode)>
fn get_step_progress(&self) -> Option<(i32, StepMode)>
Retrieves the parameters of the step progress mode used by
self
. Read moreSource§fn has_marker(&self, marker_name: &str) -> bool
fn has_marker(&self, marker_name: &str) -> bool
Checks whether
self
has a marker set with the given name. Read moreSource§fn is_playing(&self) -> bool
fn is_playing(&self) -> bool
Queries state of a
Timeline
. Read moreSource§fn list_markers(&self, msecs: i32) -> Vec<GString>
fn list_markers(&self, msecs: i32) -> Vec<GString>
Retrieves the list of markers at time
msecs
. If msecs
is a
negative integer, all the markers attached to self
will be
returned. Read moreSource§fn remove_marker(&self, marker_name: &str)
fn remove_marker(&self, marker_name: &str)
Source§fn rewind(&self)
fn rewind(&self)
Rewinds
Timeline
to the first frame if its direction is
TimelineDirection::Forward
and the last frame if it is
TimelineDirection::Backward
.Source§fn set_auto_reverse(&self, reverse: bool)
fn set_auto_reverse(&self, reverse: bool)
Sets whether
self
should reverse the direction after the
emission of the Timeline::completed
signal. Read moreSource§fn set_cubic_bezier_progress(&self, c_1: &Point, c_2: &Point)
fn set_cubic_bezier_progress(&self, c_1: &Point, c_2: &Point)
Sets the
Timeline:progress-mode
of self
to AnimationMode::CubicBezier
, and sets the two control
points for the cubic bezier. Read moreSource§fn set_delay(&self, msecs: u32)
fn set_delay(&self, msecs: u32)
Sets the delay, in milliseconds, before
self
should start. Read moreSource§fn set_direction(&self, direction: TimelineDirection)
fn set_direction(&self, direction: TimelineDirection)
Sets the direction of
self
, either TimelineDirection::Forward
or
TimelineDirection::Backward
. Read moreSource§fn set_duration(&self, msecs: u32)
fn set_duration(&self, msecs: u32)
Sets the duration of the timeline, in milliseconds. The speed
of the timeline depends on the ClutterTimeline:fps setting. Read more
Source§fn set_progress_func(
&self,
func: Option<Box<dyn Fn(&Timeline, f64, f64) -> f64>>,
)
fn set_progress_func( &self, func: Option<Box<dyn Fn(&Timeline, f64, f64) -> f64>>, )
Sets a custom progress function for
self
. The progress function will
be called by TimelineExt::get_progress
and will be used to compute
the progress value based on the elapsed time and the total duration of the
timeline. Read moreSource§fn set_progress_mode(&self, mode: AnimationMode)
fn set_progress_mode(&self, mode: AnimationMode)
Sets the progress function using a value from the
AnimationMode
enumeration. The mode
cannot be AnimationMode::CustomMode
or bigger than
AnimationMode::AnimationLast
. Read moreSource§fn set_repeat_count(&self, count: i32)
fn set_repeat_count(&self, count: i32)
Sets the number of times the
self
should repeat. Read moreSource§fn set_step_progress(&self, n_steps: i32, step_mode: StepMode)
fn set_step_progress(&self, n_steps: i32, step_mode: StepMode)
Sets the
Timeline:progress-mode
of the self
to AnimationMode::Steps
and provides the parameters of the step function. Read moreSource§fn connect_completed<F>(&self, f: F) -> SignalHandlerId
fn connect_completed<F>(&self, f: F) -> SignalHandlerId
The
Timeline::completed
signal is emitted when the timeline’s
elapsed time reaches the value of the Timeline:duration
property. Read moreSource§fn connect_marker_reached<F>(&self, f: F) -> SignalHandlerId
fn connect_marker_reached<F>(&self, f: F) -> SignalHandlerId
The ::marker-reached signal is emitted each time a timeline
reaches a marker set with
TimelineExt::add_marker_at_time
. This signal is detailed
with the name of the marker as well, so it is possible to connect
a callback to the ::marker-reached signal for a specific marker
with: Read moreSource§fn connect_new_frame<F>(&self, f: F) -> SignalHandlerId
fn connect_new_frame<F>(&self, f: F) -> SignalHandlerId
The ::new-frame signal is emitted for each timeline running
timeline before a new frame is drawn to give animations a chance
to update the scene. Read more
Source§fn connect_paused<F>(&self, f: F) -> SignalHandlerId
fn connect_paused<F>(&self, f: F) -> SignalHandlerId
The ::paused signal is emitted when
TimelineExt::pause
is invoked.Source§fn connect_started<F>(&self, f: F) -> SignalHandlerId
fn connect_started<F>(&self, f: F) -> SignalHandlerId
The ::started signal is emitted when the timeline starts its run.
This might be as soon as
TimelineExt::start
is invoked or
after the delay set in the ClutterTimeline:delay property has
expired.Source§fn connect_stopped<F>(&self, f: F) -> SignalHandlerId
fn connect_stopped<F>(&self, f: F) -> SignalHandlerId
The
Timeline::stopped
signal is emitted when the timeline
has been stopped, either because TimelineExt::stop
has been
called, or because it has been exhausted. Read morefn connect_property_auto_reverse_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_delay_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_direction_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_duration_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_progress_mode_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_repeat_count_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> TransitionExt for Owhere
O: IsA<Transition>,
impl<O> TransitionExt for Owhere
O: IsA<Transition>,
Source§fn get_animatable(&self) -> Option<Animatable>
fn get_animatable(&self) -> Option<Animatable>
Source§fn get_interval(&self) -> Option<Interval>
fn get_interval(&self) -> Option<Interval>
Retrieves the interval set using
TransitionExt::set_interval
Read moreSource§fn get_remove_on_complete(&self) -> bool
fn get_remove_on_complete(&self) -> bool
Retrieves the value of the
Transition:remove-on-complete
property. Read moreSource§fn set_animatable<P>(&self, animatable: Option<&P>)where
P: IsA<Animatable>,
fn set_animatable<P>(&self, animatable: Option<&P>)where
P: IsA<Animatable>,
Sets the
Transition:animatable
property. Read moreSource§fn set_from_value(&self, value: &Value)
fn set_from_value(&self, value: &Value)
Sets the initial value of the transition. Read more
Source§fn set_interval<P>(&self, interval: Option<&P>)
fn set_interval<P>(&self, interval: Option<&P>)
Source§fn set_remove_on_complete(&self, remove_complete: bool)
fn set_remove_on_complete(&self, remove_complete: bool)
Sets whether
self
should be detached from the Animatable
set using TransitionExt::set_animatable
when the
Timeline::completed
signal is emitted. Read moreSource§fn set_to_value(&self, value: &Value)
fn set_to_value(&self, value: &Value)
Sets the final value of the transition. Read more