VCV Rack API v2
Loading...
Searching...
No Matches
rack::history::ComplexAction Struct Reference

Batches multiple actions into one. More...

#include <history.hpp>

Inheritance diagram for rack::history::ComplexAction:
[legend]
Collaboration diagram for rack::history::ComplexAction:
[legend]

Public Member Functions

 ~ComplexAction ()
 
void undo () override
 
void redo () override
 
void push (Action *action)
 
bool isEmpty ()
 
- Public Member Functions inherited from rack::history::Action
virtual ~Action ()
 

Public Attributes

std::vector< Action * > actions
 Ordered by time occurred.
 
- Public Attributes inherited from rack::history::Action
std::string name
 Name of the action, lowercase.
 

Detailed Description

Batches multiple actions into one.

Constructor & Destructor Documentation

◆ ~ComplexAction()

rack::history::ComplexAction::~ComplexAction ( )

Member Function Documentation

◆ undo()

void rack::history::ComplexAction::undo ( )
overridevirtual

Reimplemented from rack::history::Action.

◆ redo()

void rack::history::ComplexAction::redo ( )
overridevirtual

Reimplemented from rack::history::Action.

◆ push()

void rack::history::ComplexAction::push ( Action * action)

◆ isEmpty()

bool rack::history::ComplexAction::isEmpty ( )

Member Data Documentation

◆ actions

std::vector<Action*> rack::history::ComplexAction::actions

Ordered by time occurred.

Undoing will replay them backwards.


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