Trait animate::TransitionExt [−][src]
pub trait TransitionExt: 'static {
fn get_animatable(&self) -> Option<Animatable>;
fn get_interval(&self) -> Option<Interval>;
fn get_remove_on_complete(&self) -> bool;
fn set_animatable<P: IsA<Animatable>>(&self, animatable: Option<&P>);
fn set_from_value(&self, value: &Value);
fn set_interval<P: IsA<Interval>>(&self, interval: Option<&P>);
fn set_remove_on_complete(&self, remove_complete: bool);
fn set_to_value(&self, value: &Value);
fn connect_property_animatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_interval_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_property_remove_on_complete_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Trait containing all Transition methods.
Implementors
Required methods
fn get_animatable(&self) -> Option<Animatable>[src]
Retrieves the Animatable set using TransitionExt::set_animatable.
Returns
a Animatable, or None; the returned
animatable is owned by the Transition, and it should not be freed
directly.
fn get_interval(&self) -> Option<Interval>[src]
Retrieves the interval set using TransitionExt::set_interval
Returns
a Interval, or None; the returned
interval is owned by the Transition and it should not be freed
directly
fn get_remove_on_complete(&self) -> bool[src]
Retrieves the value of the Transition:remove-on-complete property.
Returns
true if the self should be detached when complete,
and false otherwise
fn set_animatable<P: IsA<Animatable>>(&self, animatable: Option<&P>)[src]
Sets the Transition:animatable property.
The self will acquire a reference to the animatable instance,
and will call the TransitionClass.attached() virtual function.
If an existing Animatable is attached to self, the
reference will be released, and the TransitionClass.detached()
virtual function will be called.
animatable
a Animatable, or None
fn set_from_value(&self, value: &Value)[src]
Sets the initial value of the transition.
This is a convenience function that will either create the
Interval used by self, or will update it if
the Transition:interval is already set.
This function will copy the contents of value, so it is
safe to call gobject::Value::unset after it returns.
If self already has a Transition:interval set,
then value must hold the same type, or a transformable type,
as the interval’s Interval:value-type property.
This function is meant to be used by language bindings.
value
a gobject::Value with the initial value of the transition
fn set_interval<P: IsA<Interval>>(&self, interval: Option<&P>)[src]
Sets the Transition:interval property using interval.
The self will acquire a reference on the interval, sinking
the floating flag on it if necessary.
interval
a Interval, or None
fn set_remove_on_complete(&self, remove_complete: bool)[src]
Sets whether self should be detached from the Animatable
set using TransitionExt::set_animatable when the
Timeline::completed signal is emitted.
remove_complete
whether to detach self when complete
fn set_to_value(&self, value: &Value)[src]
Sets the final value of the transition.
This is a convenience function that will either create the
Interval used by self, or will update it if
the Transition:interval is already set.
This function will copy the contents of value, so it is
safe to call gobject::Value::unset after it returns.
If self already has a Transition:interval set,
then value must hold the same type, or a transformable type,
as the interval’s Interval:value-type property.
This function is meant to be used by language bindings.
value
a gobject::Value with the final value of the transition
fn connect_property_animatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_interval_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_remove_on_complete_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Transition>> TransitionExt for O[src]
fn get_animatable(&self) -> Option<Animatable>[src]
fn get_interval(&self) -> Option<Interval>[src]
fn get_remove_on_complete(&self) -> bool[src]
fn set_animatable<P: IsA<Animatable>>(&self, animatable: Option<&P>)[src]
fn set_from_value(&self, value: &Value)[src]
fn set_interval<P: IsA<Interval>>(&self, interval: Option<&P>)[src]
fn set_remove_on_complete(&self, remove_complete: bool)[src]
fn set_to_value(&self, value: &Value)[src]
fn connect_property_animatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_interval_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_remove_on_complete_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId