Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Attributes | List of all members
UndoSaveState Struct Reference

This is the main undo/redo state structure which is meant to populate whatever states that needs to be stored temporarily. More...

#include <undoredomanager.h>

+ Collaboration diagram for UndoSaveState:
Collaboration graph
[legend]

Public Attributes

UndoRedoRecordType recordType = UndoRedoRecordType::INVALID
 
int layerId = 0
 
int currentFrameIndex = 0
 
Layer::LAYER_TYPE layerType = Layer::UNDEFINED
 
std::unique_ptr< KeyFrame > keyframe
 
SelectionSaveState selectionState = {}
 
UserSaveState userState = {}
 

Detailed Description

This is the main undo/redo state structure which is meant to populate whatever states that needs to be stored temporarily.

Definition at line 106 of file undoredomanager.h.

Member Data Documentation

◆ currentFrameIndex

int UndoSaveState::currentFrameIndex = 0

Definition at line 110 of file undoredomanager.h.

◆ keyframe

std::unique_ptr<KeyFrame> UndoSaveState::keyframe

Definition at line 112 of file undoredomanager.h.

◆ layerId

int UndoSaveState::layerId = 0

Definition at line 109 of file undoredomanager.h.

◆ layerType

Layer::LAYER_TYPE UndoSaveState::layerType = Layer::UNDEFINED

Definition at line 111 of file undoredomanager.h.

◆ recordType

UndoRedoRecordType UndoSaveState::recordType = UndoRedoRecordType::INVALID

Definition at line 108 of file undoredomanager.h.

◆ selectionState

SelectionSaveState UndoSaveState::selectionState = {}

Definition at line 113 of file undoredomanager.h.

◆ userState

UserSaveState UndoSaveState::userState = {}

Definition at line 115 of file undoredomanager.h.


The documentation for this struct was generated from the following file:
  • core_lib/src/managers/undoredomanager.h
Generated on Sat Apr 18 2026 09:47:37 for Pencil2D by doxygen 1.9.6 based on revision a8d9543b71875e180be8eb26117dfe66d34a0556