Lomse library. API documentation  0.30.0
UndoElement Class Reference

#include <lomse_command.h>

Detailed Description

Class UndoElement holds the necessary information to perform an undo/redo operation.

Public Member Functions

 UndoElement (DocCommand *cmd, DocCursorState state, SelectionState sel)
 
 ~UndoElement ()
 

Public Attributes

DocCommandpCmd
 
DocCursorState cursorState
 
SelectionState selState
 

Constructor & Destructor Documentation

◆ UndoElement()

UndoElement::UndoElement ( DocCommand cmd,
DocCursorState  state,
SelectionState  sel 
)
inline

Constructor.

◆ ~UndoElement()

UndoElement::~UndoElement ( )
inline

destructor

Member Data Documentation

◆ cursorState

DocCursorState UndoElement::cursorState

Cursor state before executing the command.

◆ pCmd

DocCommand* UndoElement::pCmd

ptr. to executed command object.

◆ selState

SelectionState UndoElement::selState

SelectionSet before executing the command.