cf::ui::components::ICFAnimationGroup¶
Animation group for combining multiple animations. More...
#include <animation_group.h>
Inherits from cf::ui::components::ICFAbstractAnimation, QObject
Public Types¶
| Name | |
|---|---|
| enum class | Mode { Parallel, Sequential} Animation group execution mode. |
Public Functions¶
| Name | |
|---|---|
| Q_ENUM(Mode ) | |
| ICFAnimationGroup(QObject * parent =nullptr) | |
| void | addAnimation(cf::WeakPtr< ICFAbstractAnimation > animation) Adds an animation to the group. |
| void | removeAnimation(cf::WeakPtr< ICFAbstractAnimation > animation) Removes an animation from the group. |
Additional inherited members¶
Public Types inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| enum class | State { Idle, Running, Paused, Finished} Animation states. |
| enum class | Direction { Forward, Backward} Animation playback direction. |
Public Signals inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| void | started() Signal emitted when animation starts. |
| void | paused() Signal emitted when animation is paused. |
| void | stopped() Signal emitted when animation stops. |
| void | reversed() Signal emitted when animation reverses direction. |
| void | finished() Signal emitted when animation finishes. |
| void | progressChanged(float progress) Signal emitted when animation progress changes. |
Public Functions inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| ICFAbstractAnimation(QObject * parent =nullptr) | |
| virtual void | start(Direction dir =Direction::Forward) =0 Starts the animation in the specified direction. |
| virtual void | pause() =0 Pauses the animation. |
| virtual void | stop() =0 Stops the animation and resets to initial state. |
| virtual void | reverse() =0 Reverses the animation direction. |
| virtual bool | tick(int dt) =0 Updates the animation state. |
| virtual cf::WeakPtr< ICFAbstractAnimation > | GetWeakPtr() =0 Gets a weak pointer to this animation. |
| bool | getEnabled() const Gets the enabled state of the animation. |
| void | setTargetFps(float fps) Set the target FPS for this animation. |
| int | calculateInterval() const Calculate the timer interval based on target FPS. |
Protected Functions inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| void | setEnabled(bool enabled) Sets the enabled state of the animation. |
Protected Attributes inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| QTimer * | driven_internal_timer |
| float | m_progress |
| State | m_state |
| float | targetFps_ Target FPS for this animation (default 60.0f) |
Friends inherited from cf::ui::components::ICFAbstractAnimation
| Name | |
|---|---|
| class | ICFAnimationManagerFactory(ICFAnimationManagerFactory ) |
Detailed Description¶
Animation group for combining multiple animations.
Since: 0.1
Groups can run animations in parallel or sequential mode.
Public Types Documentation¶
enum Mode¶
| Enumerator | Value | Description |
|---|---|---|
| Parallel | ||
| Sequential |
Animation group execution mode.
Since: 0.1
Public Functions Documentation¶
function Q_ENUM¶
function ICFAnimationGroup¶
function addAnimation¶
Adds an animation to the group.
Parameters:
- animation WeakPtr to the animation to add.
Exceptions:
- None
Since: 0.1
Note: None
Warning: None
function removeAnimation¶
Removes an animation from the group.
Parameters:
- animation WeakPtr to the animation to remove.
Exceptions:
- None
Since: 0.1
Note: None
Warning: None
Updated on 2026-03-09 at 10:14:00 +0000