FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::EditorController::CanvasContext Struct Reference

Bundles per-frame canvas state used during rendering and input handling. More...

#include <EditorController.h>

Public Member Functions

 CanvasContext (AppSettings &settings)
 Creates a canvas context bound to application settings.

Public Attributes

class Frame * Frame
 Frame currently being rendered and edited.
class Frame * PreviousFrame
 Previous frame used for preview rendering.
uint64_t Index = 0
 Timeline index of the active frame.
ToolManager * ToolManager
 Tool state used for painting.
AnimationPlayer * Player
 Player attached to the current project.
UniquePtr< Grid > Grid
 Optional grid overlay for the canvas.
int PixelScale = 8
 Screen-space size of one pixel.
ImVec2 LastMousePos
 Last mouse position used for stroke interpolation.
ImVec2 LastHoverMousePos
 Last hovered mouse position over the canvas.
AppSettings & Settings
 Application settings affecting canvas behavior.

Detailed Description

Bundles per-frame canvas state used during rendering and input handling.

Constructor & Destructor Documentation

◆ CanvasContext()

FuncDoodle::EditorController::CanvasContext::CanvasContext ( AppSettings & settings)
inline

Creates a canvas context bound to application settings.

Parameters
settingsSettings reference used while editing.

Member Data Documentation

◆ Frame

class Frame* FuncDoodle::EditorController::CanvasContext::Frame
Initial value:
=
nullptr

Frame currently being rendered and edited.

◆ Grid

UniquePtr<Grid> FuncDoodle::EditorController::CanvasContext::Grid
Initial value:
=
nullptr

Optional grid overlay for the canvas.

◆ Index

uint64_t FuncDoodle::EditorController::CanvasContext::Index = 0

Timeline index of the active frame.

◆ LastHoverMousePos

ImVec2 FuncDoodle::EditorController::CanvasContext::LastHoverMousePos
Initial value:
= {
-1, -1}

Last hovered mouse position over the canvas.

◆ LastMousePos

ImVec2 FuncDoodle::EditorController::CanvasContext::LastMousePos
Initial value:
= {-1,
-1}

Last mouse position used for stroke interpolation.

◆ PixelScale

int FuncDoodle::EditorController::CanvasContext::PixelScale = 8

Screen-space size of one pixel.

◆ Player

AnimationPlayer* FuncDoodle::EditorController::CanvasContext::Player
Initial value:
=
nullptr

Player attached to the current project.

◆ PreviousFrame

class Frame* FuncDoodle::EditorController::CanvasContext::PreviousFrame
Initial value:
=
nullptr

Previous frame used for preview rendering.

◆ Settings

AppSettings& FuncDoodle::EditorController::CanvasContext::Settings

Application settings affecting canvas behavior.

◆ ToolManager

ToolManager* FuncDoodle::EditorController::CanvasContext::ToolManager
Initial value:
=
nullptr

Tool state used for painting.


The documentation for this struct was generated from the following file: