Loading [MathJax]/jax/output/HTML-CSS/config.js
VCV Rack API v2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rack::history::CableAdd Struct Reference

#include <history.hpp>

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

Public Member Functions

void setCable (app::CableWidget *cw)
 
bool isCable (app::CableWidget *cw) const
 
void undo () override
 
void redo () override
 
 CableAdd ()
 
- Public Member Functions inherited from rack::history::Action
virtual ~Action ()
 

Public Attributes

int64_t cableId = -1
 
int64_t inputModuleId = -1
 
int inputId = -1
 
int64_t outputModuleId = -1
 
int outputId = -1
 
NVGcolor color = color::BLACK_TRANSPARENT
 
- Public Attributes inherited from rack::history::Action
std::string name
 Name of the action, lowercase.
 

Constructor & Destructor Documentation

◆ CableAdd()

rack::history::CableAdd::CableAdd ( )
inline

Member Function Documentation

◆ setCable()

void rack::history::CableAdd::setCable ( app::CableWidget * cw)

◆ isCable()

bool rack::history::CableAdd::isCable ( app::CableWidget * cw) const

◆ undo()

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

Reimplemented from rack::history::Action.

Reimplemented in rack::history::InverseAction< CableAdd >.

◆ redo()

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

Reimplemented from rack::history::Action.

Reimplemented in rack::history::InverseAction< CableAdd >.

Member Data Documentation

◆ cableId

int64_t rack::history::CableAdd::cableId = -1

◆ inputModuleId

int64_t rack::history::CableAdd::inputModuleId = -1

◆ inputId

int rack::history::CableAdd::inputId = -1

◆ outputModuleId

int64_t rack::history::CableAdd::outputModuleId = -1

◆ outputId

int rack::history::CableAdd::outputId = -1

◆ color

NVGcolor rack::history::CableAdd::color = color::BLACK_TRANSPARENT

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