Loading [MathJax]/extensions/tex2jax.js
VCV Rack API v2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rack::history::CableColorChange Struct Reference

#include <history.hpp>

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

Public Member Functions

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

Public Attributes

int64_t cableId = -1
 
NVGcolor newColor = color::BLACK_TRANSPARENT
 
NVGcolor oldColor = color::BLACK_TRANSPARENT
 
- Public Attributes inherited from rack::history::Action
std::string name
 Name of the action, lowercase.
 

Constructor & Destructor Documentation

◆ CableColorChange()

rack::history::CableColorChange::CableColorChange ( )
inline

Member Function Documentation

◆ setCable()

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

◆ undo()

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

Reimplemented from rack::history::Action.

◆ redo()

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

Reimplemented from rack::history::Action.

Member Data Documentation

◆ cableId

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

◆ newColor

NVGcolor rack::history::CableColorChange::newColor = color::BLACK_TRANSPARENT

◆ oldColor

NVGcolor rack::history::CableColorChange::oldColor = color::BLACK_TRANSPARENT

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