Trait ux::TransitionExt[][src]

pub trait TransitionExt: 'static {
    pub fn get_animatable(&self) -> Option<Animatable>;
pub fn get_interval(&self) -> Option<Interval>;
pub fn get_remove_on_complete(&self) -> bool;
pub fn set_animatable<P>(&self, animatable: Option<&P>)
    where
        P: IsA<Animatable>
;
pub fn set_from_value(&self, value: &Value);
pub fn set_interval<P>(&self, interval: Option<&P>)
    where
        P: IsA<Interval>
;
pub fn set_remove_on_complete(&self, remove_complete: bool);
pub fn set_to_value(&self, value: &Value);
pub fn connect_property_animatable_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_interval_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_remove_on_complete_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Trait containing all Transition methods.

Implementors

PropertyTransition, TransitionGroup, Transition

Required methods

pub 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.

pub 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

pub 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

pub fn set_animatable<P>(&self, animatable: Option<&P>) where
    P: IsA<Animatable>, 
[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

pub 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

pub fn set_interval<P>(&self, interval: Option<&P>) where
    P: IsA<Interval>, 
[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

pub 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

pub 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

pub fn connect_property_animatable_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_interval_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_remove_on_complete_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> TransitionExt for O where
    O: IsA<Transition>, 
[src]

Loading content...