[][src]Struct qt_core::QParallelAnimationGroup

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

The QParallelAnimationGroup class provides a parallel group of animations.

C++ class: QParallelAnimationGroup.

C++ documentation:

The QParallelAnimationGroup class provides a parallel group of animations.

QParallelAnimationGroup--a container for animations--starts all its animations when it is started itself, i.e., runs all animations in parallel. The animation group finishes when the longest lasting animation has finished.

You can treat QParallelAnimationGroup as any other QAbstractAnimation, e.g., pause, resume, or add it to other animation groups.

QParallelAnimationGroup *group = new QParallelAnimationGroup; group->addAnimation(anim1); group->addAnimation(anim2);

group->start();

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

Methods

impl QParallelAnimationGroup[src]

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

Reimplemented from QAbstractAnimation::duration().

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

C++ documentation:

Reimplemented from QAbstractAnimation::duration().

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

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

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QParallelAnimationGroup>
[src]

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

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

C++ documentation:

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

pub unsafe fn new_0a() -> CppBox<QParallelAnimationGroup>[src]

The QParallelAnimationGroup class provides a parallel group of animations.

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

C++ documentation:

The QParallelAnimationGroup class provides a parallel group of animations.

QParallelAnimationGroup--a container for animations--starts all its animations when it is started itself, i.e., runs all animations in parallel. The animation group finishes when the longest lasting animation has finished.

You can treat QParallelAnimationGroup as any other QAbstractAnimation, e.g., pause, resume, or add it to other animation groups.

QParallelAnimationGroup *group = new QParallelAnimationGroup; group->addAnimation(anim1); group->addAnimation(anim2);

group->start();

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

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

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

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QParallelAnimationGroup::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: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

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

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

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

Methods from Deref<Target = QAnimationGroup>

pub unsafe fn add_animation(
    &mut self,
    animation: impl CastInto<MutPtr<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) -> MutPtr<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(&mut 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<MutPtr<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(
    &mut self,
    index: c_int,
    animation: impl CastInto<MutPtr<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(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*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(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

pub unsafe fn remove_animation(
    &mut self,
    animation: impl CastInto<MutPtr<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(
    &mut self,
    index: c_int
) -> MutPtr<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 Deref for QParallelAnimationGroup[src]

type Target = QAnimationGroup

The resulting type after dereferencing.

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

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

impl DerefMut for QParallelAnimationGroup[src]

fn deref_mut(&mut self) -> &mut QAnimationGroup[src]

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

impl StaticUpcast<QAnimationGroup> for QParallelAnimationGroup[src]

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

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QParallelAnimationGroup>
) -> MutPtr<QAnimationGroup>
[src]

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

impl StaticUpcast<QAbstractAnimation> for QParallelAnimationGroup[src]

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

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QParallelAnimationGroup>
) -> MutPtr<QAbstractAnimation>
[src]

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

impl StaticUpcast<QObject> for QParallelAnimationGroup[src]

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

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QParallelAnimationGroup>
) -> MutPtr<QObject>
[src]

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

impl StaticDowncast<QParallelAnimationGroup> for QAnimationGroup[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAnimationGroup>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl StaticDowncast<QParallelAnimationGroup> for QAbstractAnimation[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractAnimation>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl StaticDowncast<QParallelAnimationGroup> for QObject[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QObject>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl DynamicCast<QParallelAnimationGroup> for QAnimationGroup[src]

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

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAnimationGroup>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl DynamicCast<QParallelAnimationGroup> for QAbstractAnimation[src]

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

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAbstractAnimation>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl DynamicCast<QParallelAnimationGroup> for QObject[src]

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

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QObject>
) -> MutPtr<QParallelAnimationGroup>
[src]

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

impl CppDeletable for QParallelAnimationGroup[src]

unsafe fn delete(&mut self)[src]

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

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

C++ documentation:

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

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