[][src]Struct qt_core::QAnimationGroup

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

The QAnimationGroup class is an abstract base class for groups of animations.

C++ class: QAnimationGroup.

C++ documentation:

The QAnimationGroup class is an abstract base class for groups of animations.

An animation group is a container for animations (subclasses of QAbstractAnimation). A group is usually responsible for managing the state of its animations, i.e., it decides when to start, stop, resume, and pause them. Currently, Qt provides two such groups: QParallelAnimationGroup and QSequentialAnimationGroup. Look up their class descriptions for details.

Since QAnimationGroup inherits from QAbstractAnimation, you can combine groups, and easily construct complex animation graphs. You can query QAbstractAnimation for the group it belongs to (using the group() function).

To start a top-level animation group, you simply use the start() function from QAbstractAnimation. By a top-level animation group, we think of a group that itself is not contained within another group. Starting sub groups directly is not supported, and may lead to unexpected behavior.

QAnimationGroup provides methods for adding and retrieving animations. Besides that, you can remove animations by calling removeAnimation(), and clear the animation group by calling clear(). You may keep track of changes in the group's animations by listening to QEvent::ChildAdded and QEvent::ChildRemoved events.

QAnimationGroup takes ownership of the animations it manages, and ensures that they are deleted when the animation group is deleted.

Methods

impl QAnimationGroup[src]

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 static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

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().

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 QAnimationGroup::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 QAnimationGroup::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractAnimation>

pub fn finished(&self) -> Signal<()>[src]

QAbstractAnimation emits this signal after the animation has stopped and has reached the end.

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

C++ documentation:

QAbstractAnimation emits this signal after the animation has stopped and has reached the end.

This signal is emitted after stateChanged().

See also stateChanged().

pub fn state_changed(&self) -> Signal<(State, State)>[src]

QAbstractAnimation emits this signal whenever the state of the animation has changed from oldState to newState. This signal is emitted after the virtual updateState() function is called.

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

C++ documentation:

QAbstractAnimation emits this signal whenever the state of the animation has changed from oldState to newState. This signal is emitted after the virtual updateState() function is called.

Note: Notifier signal for property state.

See also updateState().

pub fn current_loop_changed(&self) -> Signal<(c_int,)>[src]

QAbstractAnimation emits this signal whenever the current loop changes. currentLoop is the current loop.

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

C++ documentation:

QAbstractAnimation emits this signal whenever the current loop changes. currentLoop is the current loop.

Note: Notifier signal for property currentLoop.

See also currentLoop() and loopCount().

pub fn direction_changed(&self) -> Signal<(Direction,)>[src]

QAbstractAnimation emits this signal whenever the direction has been changed. newDirection is the new direction.

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

C++ documentation:

QAbstractAnimation emits this signal whenever the direction has been changed. newDirection is the new direction.

Note: Notifier signal for property direction.

See also direction.

pub fn slot_start(&self) -> Receiver<(DeletionPolicy,)>[src]

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

Returns a built-in Qt slot QAbstractAnimation::start that can be passed to qt_core::Signal::connect.

C++ documentation:

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

pub fn slot_pause(&self) -> Receiver<()>[src]

Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().

Returns a built-in Qt slot QAbstractAnimation::pause that can be passed to qt_core::Signal::connect.

C++ documentation:

Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().

See also start(), state(), and resume().

pub fn slot_resume(&self) -> Receiver<()>[src]

Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.

Returns a built-in Qt slot QAbstractAnimation::resume that can be passed to qt_core::Signal::connect.

C++ documentation:

Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.

See also start(), pause(), and state().

pub fn slot_set_paused(&self) -> Receiver<(bool,)>[src]

If paused is true, the animation is paused. If paused is false, the animation is resumed.

Returns a built-in Qt slot QAbstractAnimation::setPaused that can be passed to qt_core::Signal::connect.

C++ documentation:

If paused is true, the animation is paused. If paused is false, the animation is resumed.

See also state(), pause(), and resume().

pub fn slot_stop(&self) -> Receiver<()>[src]

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

Returns a built-in Qt slot QAbstractAnimation::stop that can be passed to qt_core::Signal::connect.

C++ documentation:

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

If the animation stops by itself after reaching the end (i.e., currentLoopTime() == duration() and currentLoop() > loopCount() - 1), the finished() signal is emitted.

See also start() and state().

pub fn slot_set_current_time(&self) -> Receiver<(c_int,)>[src]

This property holds the current time and progress of the animation

Returns a built-in Qt slot QAbstractAnimation::setCurrentTime that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the current time and progress of the animation

This property describes the animation's current time. You can change the current time by calling setCurrentTime, or you can call start() and let the animation run, setting the current time automatically as the animation progresses.

The animation's current time starts at 0, and ends at totalDuration().

Access functions:

int currentTime() const
void setCurrentTime(int msecs)

See also loopCount and currentLoopTime().

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

This property holds the current loop of the animation

Calls C++ function: int QAbstractAnimation::currentLoop() const.

C++ documentation:

This property holds the current loop of the animation

This property describes the current loop of the animation. By default, the animation's loop count is 1, and so the current loop will always be 0. If the loop count is 2 and the animation runs past its duration, it will automatically rewind and restart at current time 0, and current loop 1, and so on.

When the current loop changes, QAbstractAnimation emits the currentLoopChanged() signal.

Access functions:

int currentLoop() const

Notifier signal:

void currentLoopChanged(int currentLoop)

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

Returns the current time inside the current loop. It can go from 0 to duration().

Calls C++ function: int QAbstractAnimation::currentLoopTime() const.

C++ documentation:

Returns the current time inside the current loop. It can go from 0 to duration().

See also duration() and currentTime.

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

This property holds the current time and progress of the animation

Calls C++ function: int QAbstractAnimation::currentTime() const.

C++ documentation:

This property holds the current time and progress of the animation

This property describes the animation's current time. You can change the current time by calling setCurrentTime, or you can call start() and let the animation run, setting the current time automatically as the animation progresses.

The animation's current time starts at 0, and ends at totalDuration().

Access functions:

int currentTime() const
void setCurrentTime(int msecs)

See also loopCount and currentLoopTime().

pub unsafe fn direction(&self) -> Direction[src]

This property holds the direction of the animation when it is in Running state.

Calls C++ function: QAbstractAnimation::Direction QAbstractAnimation::direction() const.

C++ documentation:

This property holds the direction of the animation when it is in Running state.

This direction indicates whether the time moves from 0 towards the animation duration, or from the value of the duration and towards 0 after start() has been called.

By default, this property is set to Forward.

Access functions:

Direction direction() const
void setDirection(Direction direction)

Notifier signal:

void directionChanged(QAbstractAnimation::Direction newDirection)

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

This property holds the duration of the animation.

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

C++ documentation:

This property holds the duration of the animation.

If the duration is -1, it means that the duration is undefined. In this case, loopCount is ignored.

Access functions:

virtual int duration() const = 0

pub unsafe fn group(&self) -> MutPtr<QAnimationGroup>[src]

If this animation is part of a QAnimationGroup, this function returns a pointer to the group; otherwise, it returns 0.

Calls C++ function: QAnimationGroup* QAbstractAnimation::group() const.

C++ documentation:

If this animation is part of a QAnimationGroup, this function returns a pointer to the group; otherwise, it returns 0.

See also QAnimationGroup::addAnimation().

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

This property holds the loop count of the animation

Calls C++ function: int QAbstractAnimation::loopCount() const.

C++ documentation:

This property holds the loop count of the animation

This property describes the loop count of the animation as an integer. By default this value is 1, indicating that the animation should run once only, and then stop. By changing it you can let the animation loop several times. With a value of 0, the animation will not run at all, and with a value of -1, the animation will loop forever until stopped. It is not supported to have loop on an animation that has an undefined duration. It will only run once.

Access functions:

int loopCount() const
void setLoopCount(int loopCount)

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

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

pub unsafe fn pause(&mut self)[src]

Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().

Calls C++ function: [slot] void QAbstractAnimation::pause().

C++ documentation:

Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().

See also start(), state(), and resume().

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 QAbstractAnimation::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* QAbstractAnimation::qt_metacast(const char* arg1).

pub unsafe fn resume(&mut self)[src]

Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.

Calls C++ function: [slot] void QAbstractAnimation::resume().

C++ documentation:

Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.

See also start(), pause(), and state().

pub unsafe fn set_current_time(&mut self, msecs: c_int)[src]

This property holds the current time and progress of the animation

Calls C++ function: [slot] void QAbstractAnimation::setCurrentTime(int msecs).

C++ documentation:

This property holds the current time and progress of the animation

This property describes the animation's current time. You can change the current time by calling setCurrentTime, or you can call start() and let the animation run, setting the current time automatically as the animation progresses.

The animation's current time starts at 0, and ends at totalDuration().

Access functions:

int currentTime() const
void setCurrentTime(int msecs)

See also loopCount and currentLoopTime().

pub unsafe fn set_direction(&mut self, direction: Direction)[src]

This property holds the direction of the animation when it is in Running state.

Calls C++ function: void QAbstractAnimation::setDirection(QAbstractAnimation::Direction direction).

C++ documentation:

This property holds the direction of the animation when it is in Running state.

This direction indicates whether the time moves from 0 towards the animation duration, or from the value of the duration and towards 0 after start() has been called.

By default, this property is set to Forward.

Access functions:

Direction direction() const
void setDirection(Direction direction)

Notifier signal:

void directionChanged(QAbstractAnimation::Direction newDirection)

pub unsafe fn set_loop_count(&mut self, loop_count: c_int)[src]

This property holds the loop count of the animation

Calls C++ function: void QAbstractAnimation::setLoopCount(int loopCount).

C++ documentation:

This property holds the loop count of the animation

This property describes the loop count of the animation as an integer. By default this value is 1, indicating that the animation should run once only, and then stop. By changing it you can let the animation loop several times. With a value of 0, the animation will not run at all, and with a value of -1, the animation will loop forever until stopped. It is not supported to have loop on an animation that has an undefined duration. It will only run once.

Access functions:

int loopCount() const
void setLoopCount(int loopCount)

pub unsafe fn set_paused(&mut self, arg1: bool)[src]

If paused is true, the animation is paused. If paused is false, the animation is resumed.

Calls C++ function: [slot] void QAbstractAnimation::setPaused(bool arg1).

C++ documentation:

If paused is true, the animation is paused. If paused is false, the animation is resumed.

See also state(), pause(), and resume().

pub unsafe fn start_1a(&mut self, policy: DeletionPolicy)[src]

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

Calls C++ function: [slot] void QAbstractAnimation::start(QAbstractAnimation::DeletionPolicy policy = …).

C++ documentation:

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

pub unsafe fn start_0a(&mut self)[src]

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

Calls C++ function: [slot] void QAbstractAnimation::start().

C++ documentation:

Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.

If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.

If the animation is already running, this function does nothing.

See also stop() and state().

pub unsafe fn state(&self) -> State[src]

state of the animation.

Calls C++ function: QAbstractAnimation::State QAbstractAnimation::state() const.

C++ documentation:

state of the animation.

This property describes the current state of the animation. When the animation state changes, QAbstractAnimation emits the stateChanged() signal.

Access functions:

State state() const

Notifier signal:

void stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

pub unsafe fn stop(&mut self)[src]

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

Calls C++ function: [slot] void QAbstractAnimation::stop().

C++ documentation:

Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.

If the animation stops by itself after reaching the end (i.e., currentLoopTime() == duration() and currentLoop() > loopCount() - 1), the finished() signal is emitted.

See also start() and state().

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

Returns the total and effective duration of the animation, including the loop count.

Calls C++ function: int QAbstractAnimation::totalDuration() const.

C++ documentation:

Returns the total and effective duration of the animation, including the loop count.

See also duration() and currentTime.

Trait Implementations

impl Deref for QAnimationGroup[src]

type Target = QAbstractAnimation

The resulting type after dereferencing.

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

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

impl DerefMut for QAnimationGroup[src]

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

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

impl StaticUpcast<QAbstractAnimation> for QAnimationGroup[src]

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

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

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

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

impl StaticUpcast<QObject> for QAnimationGroup[src]

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

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

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

Calls C++ function: QObject* static_cast<QObject*>(QAnimationGroup* 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<QAnimationGroup> for QSequentialAnimationGroup[src]

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

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

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

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

impl StaticDowncast<QAnimationGroup> for QAbstractAnimation[src]

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

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

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

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

impl StaticDowncast<QAnimationGroup> for QObject[src]

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

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

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

Calls C++ function: QAnimationGroup* static_cast<QAnimationGroup*>(QObject* 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<QSequentialAnimationGroup> for QAnimationGroup[src]

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

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

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

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

impl DynamicCast<QAnimationGroup> for QAbstractAnimation[src]

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

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

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

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

impl DynamicCast<QAnimationGroup> for QObject[src]

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

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

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

Calls C++ function: QAnimationGroup* dynamic_cast<QAnimationGroup*>(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<QSequentialAnimationGroup> for QAnimationGroup[src]

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

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

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

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

impl CppDeletable for QAnimationGroup[src]

unsafe fn delete(&mut self)[src]

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

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

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]