37extern std::string 
token;
 
  113extern std::map<std::string, std::map<std::string, ModuleInfo>> 
moduleInfos;
 
 
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:32
 
Process-scope globals, most of which are persisted across launches.
Definition settings.hpp:17
 
PRIVATE void save(std::string path="")
 
PRIVATE void fromJson(json_t *rootJ)
 
std::string lastPatchDirectory
 
std::string language
ISO 639-1 language code for string translations.
 
bool mouseWheelZoom
Mouse wheel zooms instead of pans.
 
math::Vec windowPos
Position in window in pixels.
 
float knobLinearSensitivity
 
ModuleInfo * getModuleInfo(const std::string &pluginSlug, const std::string &moduleSlug)
Returns a ModuleInfo if exists for the given slugs.
 
PRIVATE void load(std::string path="")
 
float knobScrollSensitivity
 
bool isModuleWhitelisted(const std::string &pluginSlug, const std::string &moduleSlug)
 
math::Vec windowSize
Size of window in pixels.
 
float cableTension
Straightness of cables in the range [0, 1].
 
std::string settingsPath
Path to settings.json.
 
BrowserSort
Definition settings.hpp:94
 
@ BROWSER_SORT_UPDATED
Definition settings.hpp:95
 
@ BROWSER_SORT_LAST_USED
Definition settings.hpp:96
 
@ BROWSER_SORT_NAME
Definition settings.hpp:99
 
@ BROWSER_SORT_MOST_USED
Definition settings.hpp:97
 
@ BROWSER_SORT_BRAND
Definition settings.hpp:98
 
@ BROWSER_SORT_RANDOM
Definition settings.hpp:100
 
float pixelRatio
Ratio between UI pixel and physical screen pixel.
 
std::list< std::string > recentPatchPaths
 
std::map< std::string, PluginWhitelist > moduleWhitelist
 
float frameRateLimit
Maximum screen redraw frequency in Hz, or 0 for unlimited.
 
std::string uiTheme
Name of UI theme, specified in ui::refreshTheme().
 
std::vector< std::string > cableLabels
 
std::string lastSelectionDirectory
 
PRIVATE json_t * toJson()
 
KnobMode
Definition settings.hpp:62
 
@ KNOB_MODE_LINEAR
Definition settings.hpp:63
 
@ KNOB_MODE_ROTARY_ABSOLUTE
Definition settings.hpp:65
 
@ KNOB_MODE_ROTARY_RELATIVE
Definition settings.hpp:66
 
@ KNOB_MODE_SCALED_LINEAR
Definition settings.hpp:64
 
std::vector< NVGcolor > cableColors
 
bool restart
Requests to restart the application on exit.
 
float autosaveInterval
Interval between autosaves in seconds.
 
bool safeMode
Launches Rack without loading plugins or the autosave patch.
 
std::map< std::string, std::map< std::string, ModuleInfo > > moduleInfos
pluginSlug -> (moduleSlug -> ModuleInfo)
 
float cableOpacity
Opacity of cables in the range [0, 1].
 
bool windowMaximized
Whether the window is maximized.
 
std::string token
vcvrack.com user token
 
bool allowCursorLock
Allows rack to hide and lock the cursor position when dragging knobs etc.
 
bool invertZoom
Reverse the zoom scroll direction.
 
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
 
2-dimensional vector of floats, representing a point on the plane for graphics.
Definition math.hpp:189
 
Definition settings.hpp:106
 
bool enabled
Definition settings.hpp:107
 
bool favorite
Definition settings.hpp:108
 
double lastAdded
Definition settings.hpp:110
 
int added
Definition settings.hpp:109
 
The VCV JSON API returns the data structure {pluginSlug: [moduleSlugs] or true} where "true" represen...
Definition settings.hpp:123
 
bool subscribed
Definition settings.hpp:124
 
std::set< std::string > moduleSlugs
Definition settings.hpp:125