[][src]Struct qt_core::QSequentialAnimationGroup

#[repr(C)]pub struct QSequentialAnimationGroup { /* fields omitted */ }

The QSequentialAnimationGroup class provides a sequential group of animations.

C++ class: QSequentialAnimationGroup.

C++ documentation:

The QSequentialAnimationGroup class provides a sequential group of animations.

QSequentialAnimationGroup is a QAnimationGroup that runs its animations in sequence, i.e., it starts one animation after another has finished playing. The animations are played in the order they are added to the group (using addAnimation() or insertAnimation()). The animation group finishes when its last animation has finished.

At each moment there is at most one animation that is active in the group; it is returned by currentAnimation(). An empty group has no current animation.

A sequential animation group can be treated as any other animation, i.e., it can be started, stopped, and added to other groups. You can also call addPause() or insertPause() to add a pause to a sequential animation group.

QSequentialAnimationGroup *group = new QSequentialAnimationGroup;

group->addAnimation(anim1); group->addAnimation(anim2);

group->start();

In this example, anim1 and anim2 are two already set up QPropertyAnimations.

Methods

impl QSequentialAnimationGroup[src]

pub fn current_animation_changed(&self) -> Signal<(*mut QAbstractAnimation,)>[src]

QSequentialAnimationGroup emits this signal when currentAnimation has been changed. current is the current animation.

Returns a built-in Qt signal QSequentialAnimationGroup::currentAnimationChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

QSequentialAnimationGroup emits this signal when currentAnimation has been changed. current is the current animation.

Note: Notifier signal for property currentAnimation.

See also currentAnimation().

pub unsafe fn add_pause(&self, msecs: c_int) -> QPtr<QPauseAnimation>[src]

Adds a pause of msecs to this animation group. The pause is considered as a special type of animation, thus animationCount will be increased by one.

Calls C++ function: QPauseAnimation* QSequentialAnimationGroup::addPause(int msecs).

C++ documentation:

Adds a pause of msecs to this animation group. The pause is considered as a special type of animation, thus animationCount will be increased by one.

See also insertPause() and QAnimationGroup::addAnimation().

pub unsafe fn current_animation(&self) -> QPtr<QAbstractAnimation>[src]

Returns the animation in the current time.

Calls C++ function: QAbstractAnimation* QSequentialAnimationGroup::currentAnimation() const.

C++ documentation:

Returns the animation in the current time.

Access functions:

QAbstractAnimation *currentAnimation() const

Notifier signal:

void currentAnimationChanged(QAbstractAnimation *current)

pub unsafe fn duration(&self) -> c_int[src]

Reimplemented from QAbstractAnimation::duration().

Calls C++ function: virtual int QSequentialAnimationGroup::duration() const.

C++ documentation:

Reimplemented from QAbstractAnimation::duration().

pub unsafe fn insert_pause(
    &self,
    index: c_int,
    msecs: c_int
) -> QPtr<QPauseAnimation>
[src]

Inserts a pause of msecs milliseconds at index in this animation group.

Calls C++ function: QPauseAnimation* QSequentialAnimationGroup::insertPause(int index, int msecs).

C++ documentation:

Inserts a pause of msecs milliseconds at index in this animation group.

See also addPause() and QAnimationGroup::insertAnimation().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QSequentialAnimationGroup::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QSequentialAnimationGroup>
[src]

Constructs a QSequentialAnimationGroup. parent is passed to QObject's constructor.

Calls C++ function: [constructor] void QSequentialAnimationGroup::QSequentialAnimationGroup(QObject* parent = …).

C++ documentation:

Constructs a QSequentialAnimationGroup. parent is passed to QObject's constructor.

pub unsafe fn new_0a() -> QBox<QSequentialAnimationGroup>[src]

The QSequentialAnimationGroup class provides a sequential group of animations.

Calls C++ function: [constructor] void QSequentialAnimationGroup::QSequentialAnimationGroup().

C++ documentation:

The QSequentialAnimationGroup class provides a sequential group of animations.

QSequentialAnimationGroup is a QAnimationGroup that runs its animations in sequence, i.e., it starts one animation after another has finished playing. The animations are played in the order they are added to the group (using addAnimation() or insertAnimation()). The animation group finishes when its last animation has finished.

At each moment there is at most one animation that is active in the group; it is returned by currentAnimation(). An empty group has no current animation.

A sequential animation group can be treated as any other animation, i.e., it can be started, stopped, and added to other groups. You can also call addPause() or insertPause() to add a pause to a sequential animation group.

QSequentialAnimationGroup *group = new QSequentialAnimationGroup;

group->addAnimation(anim1); group->addAnimation(anim2);

group->start();

In this example, anim1 and anim2 are two already set up QPropertyAnimations.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QSequentialAnimationGroup::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QSequentialAnimationGroup::qt_metacast(const char* arg1).

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QSequentialAnimationGroup::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QSequentialAnimationGroup::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAnimationGroup>

pub unsafe fn add_animation(
    &self,
    animation: impl CastInto<Ptr<QAbstractAnimation>>
)
[src]

Adds animation to this group. This will call insertAnimation with index equals to animationCount().

Calls C++ function: void QAnimationGroup::addAnimation(QAbstractAnimation* animation).

C++ documentation:

Adds animation to this group. This will call insertAnimation with index equals to animationCount().

Note: The group takes ownership of the animation.

See also removeAnimation().

pub unsafe fn animation_at(&self, index: c_int) -> QPtr<QAbstractAnimation>[src]

Returns a pointer to the animation at index in this group. This function is useful when you need access to a particular animation. index is between 0 and animationCount() - 1.

Calls C++ function: QAbstractAnimation* QAnimationGroup::animationAt(int index) const.

C++ documentation:

Returns a pointer to the animation at index in this group. This function is useful when you need access to a particular animation. index is between 0 and animationCount() - 1.

See also animationCount() and indexOfAnimation().

pub unsafe fn animation_count(&self) -> c_int[src]

Returns the number of animations managed by this group.

Calls C++ function: int QAnimationGroup::animationCount() const.

C++ documentation:

Returns the number of animations managed by this group.

See also indexOfAnimation(), addAnimation(), and animationAt().

pub unsafe fn clear(&self)[src]

Removes and deletes all animations in this animation group, and resets the current time to 0.

Calls C++ function: void QAnimationGroup::clear().

C++ documentation:

Removes and deletes all animations in this animation group, and resets the current time to 0.

See also addAnimation() and removeAnimation().

pub unsafe fn index_of_animation(
    &self,
    animation: impl CastInto<Ptr<QAbstractAnimation>>
) -> c_int
[src]

Returns the index of animation. The returned index can be passed to the other functions that take an index as an argument.

Calls C++ function: int QAnimationGroup::indexOfAnimation(QAbstractAnimation* animation) const.

C++ documentation:

Returns the index of animation. The returned index can be passed to the other functions that take an index as an argument.

See also insertAnimation(), animationAt(), and takeAnimation().

pub unsafe fn insert_animation(
    &self,
    index: c_int,
    animation: impl CastInto<Ptr<QAbstractAnimation>>
)
[src]

Inserts animation into this animation group at index. If index is 0 the animation is inserted at the beginning. If index is animationCount(), the animation is inserted at the end.

Calls C++ function: void QAnimationGroup::insertAnimation(int index, QAbstractAnimation* animation).

C++ documentation:

Inserts animation into this animation group at index. If index is 0 the animation is inserted at the beginning. If index is animationCount(), the animation is inserted at the end.

Note: The group takes ownership of the animation.

See also takeAnimation(), addAnimation(), indexOfAnimation(), and removeAnimation().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QAnimationGroup::metaObject() const.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QAnimationGroup::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QAnimationGroup::qt_metacast(const char* arg1).

pub unsafe fn remove_animation(
    &self,
    animation: impl CastInto<Ptr<QAbstractAnimation>>
)
[src]

Removes animation from this group. The ownership of animation is transferred to the caller.

Calls C++ function: void QAnimationGroup::removeAnimation(QAbstractAnimation* animation).

C++ documentation:

Removes animation from this group. The ownership of animation is transferred to the caller.

See also takeAnimation(), insertAnimation(), and addAnimation().

pub unsafe fn take_animation(&self, index: c_int) -> QPtr<QAbstractAnimation>[src]

Returns the animation at index and removes it from the animation group.

Calls C++ function: QAbstractAnimation* QAnimationGroup::takeAnimation(int index).

C++ documentation:

Returns the animation at index and removes it from the animation group.

Note: The ownership of the animation is transferred to the caller.

See also removeAnimation(), addAnimation(), insertAnimation(), and indexOfAnimation().

Trait Implementations

impl CppDeletable for QSequentialAnimationGroup[src]

unsafe fn delete(&self)[src]

Destroys the animation group. It will also destroy all its animations.

Calls C++ function: virtual [destructor] void QSequentialAnimationGroup::~QSequentialAnimationGroup().

C++ documentation:

Destroys the animation group. It will also destroy all its animations.

impl Deref for QSequentialAnimationGroup[src]

type Target = QAnimationGroup

The resulting type after dereferencing.

fn deref(&self) -> &QAnimationGroup[src]

Calls C++ function: QAnimationGroup* static_cast<QAnimationGroup*>(QSequentialAnimationGroup* ptr).

impl DynamicCast<QSequentialAnimationGroup> for QAnimationGroup[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAnimationGroup>
) -> Ptr<QSequentialAnimationGroup>
[src]

Calls C++ function: QSequentialAnimationGroup* dynamic_cast<QSequentialAnimationGroup*>(QAnimationGroup* ptr).

impl DynamicCast<QSequentialAnimationGroup> for QAbstractAnimation[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractAnimation>
) -> Ptr<QSequentialAnimationGroup>
[src]

Calls C++ function: QSequentialAnimationGroup* dynamic_cast<QSequentialAnimationGroup*>(QAbstractAnimation* ptr).

impl DynamicCast<QSequentialAnimationGroup> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QSequentialAnimationGroup>[src]

Calls C++ function: QSequentialAnimationGroup* dynamic_cast<QSequentialAnimationGroup*>(QObject* ptr).

impl StaticDowncast<QSequentialAnimationGroup> for QAnimationGroup[src]

unsafe fn static_downcast(
    ptr: Ptr<QAnimationGroup>
) -> Ptr<QSequentialAnimationGroup>
[src]

Calls C++ function: QSequentialAnimationGroup* static_cast<QSequentialAnimationGroup*>(QAnimationGroup* ptr).

impl StaticDowncast<QSequentialAnimationGroup> for QAbstractAnimation[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractAnimation>
) -> Ptr<QSequentialAnimationGroup>
[src]

Calls C++ function: QSequentialAnimationGroup* static_cast<QSequentialAnimationGroup*>(QAbstractAnimation* ptr).

impl StaticDowncast<QSequentialAnimationGroup> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QSequentialAnimationGroup>[src]

Calls C++ function: QSequentialAnimationGroup* static_cast<QSequentialAnimationGroup*>(QObject* ptr).

impl StaticUpcast<QAbstractAnimation> for QSequentialAnimationGroup[src]

unsafe fn static_upcast(
    ptr: Ptr<QSequentialAnimationGroup>
) -> Ptr<QAbstractAnimation>
[src]

Calls C++ function: QAbstractAnimation* static_cast<QAbstractAnimation*>(QSequentialAnimationGroup* ptr).

impl StaticUpcast<QAnimationGroup> for QSequentialAnimationGroup[src]

unsafe fn static_upcast(
    ptr: Ptr<QSequentialAnimationGroup>
) -> Ptr<QAnimationGroup>
[src]

Calls C++ function: QAnimationGroup* static_cast<QAnimationGroup*>(QSequentialAnimationGroup* ptr).

impl StaticUpcast<QObject> for QSequentialAnimationGroup[src]

unsafe fn static_upcast(ptr: Ptr<QSequentialAnimationGroup>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QSequentialAnimationGroup* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.