You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.hpp 601B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <jansson.h>
  3. #include <common.hpp>
  4. #include <math.hpp>
  5. #include <ui/common.hpp>
  6. namespace rack {
  7. /** Rack's custom UI widgets that control the Rack state and engine.
  8. */
  9. namespace app {
  10. // A 1HPx3U module should be 15x380 pixels. Thus the width of a module should be a factor of 15.
  11. static const float RACK_GRID_WIDTH = 15;
  12. static const float RACK_GRID_HEIGHT = 380;
  13. static const math::Vec RACK_GRID_SIZE = math::Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  14. static const math::Vec RACK_OFFSET = RACK_GRID_SIZE.mult(math::Vec(2000, 100));
  15. } // namespace app
  16. } // namespace rack