|
FuncDoodle
|
Responsible for registering keybinds for animations, rendering timeline, logs window, controls window, etc. More...
#include <Manager.h>
Public Member Functions | |
| AnimationManager (SharedPtr< ProjectFile > proj, AssetLoader *assetLoader, SharedPtr< EditorController > editorController, KeybindsRegistry &keybinds, AppSettings &settings) | |
| Creates an animation manager for a project and its UI state. | |
| ~AnimationManager () | |
| void | RegisterKeybinds () |
| Registers animation-specific keybinds. | |
| void | RenderTimeline (bool prevEnabled) |
| Renders the timeline UI. | |
| void | RenderControls () |
| Renders playback and frame-management controls. | |
| SharedPtr< ProjectFile > | Proj () const |
| Returns the currently managed project. | |
| void | SetProj (SharedPtr< ProjectFile > proj) |
| Replaces the active project and updates the player to match. | |
| void | ResetProjectState () |
| Clears renderer/player state derived from the active project. | |
| void | SetSettings (AppSettings &settings) |
| Rebinds the manager to a different settings object. | |
| AnimationPlayer * | Player () const |
| Returns the animation player. | |
| void | SetPlayer (AnimationPlayer *player) |
| Replaces the owned animation player. | |
| unsigned long | SelectedFrameI () const |
| Returns the selected frame index. | |
| Frame * | SelectedFrame () |
| Returns the selected frame object. | |
| const UniquePtr< FrameRenderer > & | GetFrameRenderer () const |
| Returns the primary frame renderer. | |
Static Public Member Functions | |
| static void | RenderLogs () |
| Renders animation-related log or debug output. | |
Private Attributes | |
| SharedPtr< ProjectFile > | m_Proj |
| unsigned long | m_SelectedFrame {0} |
| UniquePtr< FrameRenderer > | m_FrameRenderer |
| UniquePtr< FrameRenderer > | m_TimelineFrameRenderer |
| UniquePtr< ToolManager > | m_ToolManager |
| UniquePtr< AnimationPlayer > | m_Player |
| SharedPtr< EditorController > | m_EditorController |
| KeybindsRegistry & | m_Keybinds |
| AssetLoader * | m_AssetLoader |
| AppSettings & | m_Settings |
Responsible for registering keybinds for animations, rendering timeline, logs window, controls window, etc.
Manages animation playback and user interaction, including handling input bindings and coordinating UI elements such as the timeline, logs, and control panels. Keeps animation state in sync with the editor and ensures consistent behavior during playback and editing.
| FuncDoodle::AnimationManager::AnimationManager | ( | SharedPtr< ProjectFile > | proj, |
| AssetLoader * | assetLoader, | ||
| SharedPtr< EditorController > | editorController, | ||
| KeybindsRegistry & | keybinds, | ||
| AppSettings & | settings ) |
Creates an animation manager for a project and its UI state.
| proj | Active project to manage. |
| assetLoader | Asset loader used for icons and sounds. |
| editorController | Shared editor controller used by frame renderers. |
| keybinds | Registry containing animation-related keybinds. |
| settings | Mutable application settings. |
|
default |
|
inlinenodiscard |
Returns the primary frame renderer.
|
inlinenodiscard |
Returns the animation player.
|
inlinenodiscard |
Returns the currently managed project.
| void FuncDoodle::AnimationManager::RegisterKeybinds | ( | ) |
Registers animation-specific keybinds.
| void FuncDoodle::AnimationManager::RenderControls | ( | ) |
Renders playback and frame-management controls.
|
static |
Renders animation-related log or debug output.
| void FuncDoodle::AnimationManager::RenderTimeline | ( | bool | prevEnabled | ) |
Renders the timeline UI.
| prevEnabled | Whether previous-frame preview is enabled. |
| void FuncDoodle::AnimationManager::ResetProjectState | ( | ) |
Clears renderer/player state derived from the active project.
|
inline |
Returns the selected frame object.
|
inlinenodiscard |
Returns the selected frame index.
|
inline |
Replaces the owned animation player.
| player | New player instance to own. |
|
inline |
Replaces the active project and updates the player to match.
| proj | Project to manage. |
|
inline |
Rebinds the manager to a different settings object.
| settings | Settings reference to store. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |