33extern std::string
token;
107extern 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
PRIVATE void save(std::string path="")
PRIVATE void fromJson(json_t *rootJ)
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:88
@ BROWSER_SORT_UPDATED
Definition settings.hpp:89
@ BROWSER_SORT_LAST_USED
Definition settings.hpp:90
@ BROWSER_SORT_NAME
Definition settings.hpp:93
@ BROWSER_SORT_MOST_USED
Definition settings.hpp:91
@ BROWSER_SORT_BRAND
Definition settings.hpp:92
@ BROWSER_SORT_RANDOM
Definition settings.hpp:94
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
PRIVATE json_t * toJson()
KnobMode
Definition settings.hpp:58
@ KNOB_MODE_LINEAR
Definition settings.hpp:59
@ KNOB_MODE_ROTARY_ABSOLUTE
Definition settings.hpp:61
@ KNOB_MODE_ROTARY_RELATIVE
Definition settings.hpp:62
@ KNOB_MODE_SCALED_LINEAR
Definition settings.hpp:60
std::vector< NVGcolor > cableColors
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:100
bool enabled
Definition settings.hpp:101
bool favorite
Definition settings.hpp:102
double lastAdded
Definition settings.hpp:104
int added
Definition settings.hpp:103
The VCV JSON API returns the data structure {pluginSlug: [moduleSlugs] or true} where "true" represen...
Definition settings.hpp:117
bool subscribed
Definition settings.hpp:118
std::set< std::string > moduleSlugs
Definition settings.hpp:119