VCV Rack API v2
Loading...
Searching...
No Matches
common.hpp
Go to the documentation of this file.
1#pragma once
2#include <jansson.h>
3
4#include <common.hpp>
5#include <math.hpp>
6#include <ui/common.hpp>
7
8
9namespace rack {
10
11
14namespace app {
15
16
17// A 1HPx3U module should be 15x380 pixels. Thus the width of a module should be a factor of 15.
18static const float RACK_GRID_WIDTH = 15;
19static const float RACK_GRID_HEIGHT = 380;
22
23
24} // namespace app
25} // namespace rack
static const float RACK_GRID_HEIGHT
Definition common.hpp:19
static const math::Vec RACK_OFFSET
Definition common.hpp:21
static const math::Vec RACK_GRID_SIZE
Definition common.hpp:20
static const float RACK_GRID_WIDTH
Definition common.hpp:18
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
Vec mult(float s) const
Definition math.hpp:215