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.

239 lines
9.9KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 3 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the LICENSE file.
  16. */
  17. #include <rack.hpp>
  18. using namespace rack;
  19. namespace rack {
  20. namespace app {
  21. Knob::Knob() {}
  22. Knob::~Knob() {}
  23. void Knob::initParamQuantity() {}
  24. void Knob::onHover(const HoverEvent& e) {}
  25. void Knob::onButton(const ButtonEvent& e) {}
  26. void Knob::onDragStart(const DragStartEvent& e) {}
  27. void Knob::onDragEnd(const DragEndEvent& e) {}
  28. void Knob::onDragMove(const DragMoveEvent& e) {}
  29. void Knob::onDragLeave(const DragLeaveEvent& e) {}
  30. void Knob::onHoverScroll(const HoverScrollEvent& e) {}
  31. void Knob::onLeave(const LeaveEvent& e) {}
  32. void LightWidget::draw(const DrawArgs& args) {}
  33. void LightWidget::drawLayer(const DrawArgs& args, int layer) {}
  34. void LightWidget::drawBackground(const DrawArgs& args) {}
  35. void LightWidget::drawLight(const DrawArgs& args) {}
  36. void LightWidget::drawHalo(const DrawArgs& args) {}
  37. ModuleLightWidget::~ModuleLightWidget() {}
  38. engine::Light* ModuleLightWidget::getLight(int colorId) { return nullptr; }
  39. engine::LightInfo* ModuleLightWidget::getLightInfo() { return nullptr; }
  40. void ModuleLightWidget::createTooltip() {}
  41. void ModuleLightWidget::destroyTooltip() {}
  42. void ModuleLightWidget::step() {}
  43. void ModuleLightWidget::onHover(const HoverEvent& e) {}
  44. void ModuleLightWidget::onEnter(const EnterEvent& e) {}
  45. void ModuleLightWidget::onLeave(const LeaveEvent& e) {}
  46. ModuleWidget::ModuleWidget() {}
  47. ModuleWidget::~ModuleWidget() {}
  48. plugin::Model* ModuleWidget::getModel() { return nullptr; }
  49. void ModuleWidget::setModel(plugin::Model* model) {}
  50. engine::Module* ModuleWidget::getModule() { return nullptr; }
  51. void ModuleWidget::setModule(engine::Module* module) {}
  52. widget::Widget* ModuleWidget::getPanel() { return nullptr; }
  53. void ModuleWidget::setPanel(widget::Widget* panel) {}
  54. void ModuleWidget::setPanel(std::shared_ptr<window::Svg> svg) {}
  55. void ModuleWidget::addParam(ParamWidget* param) {}
  56. void ModuleWidget::addInput(PortWidget* input) {}
  57. void ModuleWidget::addOutput(PortWidget* output) {}
  58. ParamWidget* ModuleWidget::getParam(int paramId) { return nullptr; }
  59. PortWidget* ModuleWidget::getInput(int portId) { return nullptr; }
  60. PortWidget* ModuleWidget::getOutput(int portId) { return nullptr; }
  61. std::vector<ParamWidget*> ModuleWidget::getParams() { return {}; }
  62. std::vector<PortWidget*> ModuleWidget::getPorts() { return {}; }
  63. std::vector<PortWidget*> ModuleWidget::getInputs() { return {}; }
  64. std::vector<PortWidget*> ModuleWidget::getOutputs() { return {}; }
  65. void ModuleWidget::draw(const DrawArgs& args) {}
  66. void ModuleWidget::drawLayer(const DrawArgs& args, int layer) {}
  67. void ModuleWidget::onHover(const HoverEvent& e) {}
  68. void ModuleWidget::onHoverKey(const HoverKeyEvent& e) {}
  69. void ModuleWidget::onButton(const ButtonEvent& e) {}
  70. void ModuleWidget::onDragStart(const DragStartEvent& e) {}
  71. void ModuleWidget::onDragEnd(const DragEndEvent& e) {}
  72. void ModuleWidget::onDragMove(const DragMoveEvent& e) {}
  73. void ModuleWidget::onDragHover(const DragHoverEvent& e) {}
  74. json_t* ModuleWidget::toJson() { return nullptr; }
  75. void ModuleWidget::fromJson(json_t* rootJ) {}
  76. bool ModuleWidget::pasteJsonAction(json_t* rootJ) { return false; }
  77. void ModuleWidget::copyClipboard() {}
  78. bool ModuleWidget::pasteClipboardAction() { return false; }
  79. void ModuleWidget::load(std::string filename) {}
  80. void ModuleWidget::loadAction(std::string filename) {}
  81. void ModuleWidget::loadTemplate() {}
  82. void ModuleWidget::loadDialog() {}
  83. void ModuleWidget::save(std::string filename) {}
  84. void ModuleWidget::saveTemplate() {}
  85. void ModuleWidget::saveTemplateDialog() {}
  86. bool ModuleWidget::hasTemplate() { return false; }
  87. void ModuleWidget::clearTemplate() {}
  88. void ModuleWidget::clearTemplateDialog() {}
  89. void ModuleWidget::saveDialog() {}
  90. void ModuleWidget::disconnect() {}
  91. void ModuleWidget::resetAction() {}
  92. void ModuleWidget::randomizeAction() {}
  93. void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) {}
  94. void ModuleWidget::disconnectAction() {}
  95. void ModuleWidget::cloneAction(bool cloneCables) {}
  96. void ModuleWidget::bypassAction(bool bypassed) {}
  97. void ModuleWidget::removeAction() {}
  98. void ModuleWidget::createContextMenu() {}
  99. math::Vec& ModuleWidget::dragOffset() { static math::Vec r; return r; }
  100. bool& ModuleWidget::dragEnabled() { static bool r; return r; }
  101. math::Vec& ModuleWidget::oldPos() { static math::Vec r; return r; }
  102. engine::Module* ModuleWidget::releaseModule() { return nullptr; }
  103. int MultiLightWidget::getNumColors() { return 0; }
  104. void MultiLightWidget::addBaseColor(NVGcolor baseColor) {}
  105. void MultiLightWidget::setBrightnesses(const std::vector<float>& brightnesses) {}
  106. ParamWidget::ParamWidget() {}
  107. ParamWidget::~ParamWidget() {}
  108. engine::ParamQuantity* ParamWidget::getParamQuantity() { return nullptr; }
  109. void ParamWidget::createTooltip() {}
  110. void ParamWidget::destroyTooltip() {}
  111. void ParamWidget::step() {}
  112. void ParamWidget::draw(const DrawArgs& args) {}
  113. void ParamWidget::onButton(const ButtonEvent& e) {}
  114. void ParamWidget::onDoubleClick(const DoubleClickEvent& e) {}
  115. void ParamWidget::onEnter(const EnterEvent& e) {}
  116. void ParamWidget::onLeave(const LeaveEvent& e) {}
  117. void ParamWidget::createContextMenu() {}
  118. void ParamWidget::resetAction() {}
  119. PortWidget::PortWidget() {}
  120. PortWidget::~PortWidget() {}
  121. engine::Port* PortWidget::getPort() { return nullptr; }
  122. engine::PortInfo* PortWidget::getPortInfo() { return nullptr; }
  123. void PortWidget::createTooltip() {}
  124. void PortWidget::destroyTooltip() {}
  125. void PortWidget::createContextMenu() {}
  126. void PortWidget::deleteTopCableAction() {}
  127. void PortWidget::step() {}
  128. void PortWidget::draw(const DrawArgs& args) {}
  129. void PortWidget::onButton(const ButtonEvent& e) {}
  130. void PortWidget::onEnter(const EnterEvent& e) {}
  131. void PortWidget::onLeave(const LeaveEvent& e) {}
  132. void PortWidget::onDragStart(const DragStartEvent& e) {}
  133. void PortWidget::onDragEnd(const DragEndEvent& e) {}
  134. void PortWidget::onDragDrop(const DragDropEvent& e) {}
  135. void PortWidget::onDragEnter(const DragEnterEvent& e) {}
  136. void PortWidget::onDragLeave(const DragLeaveEvent& e) {}
  137. SliderKnob::SliderKnob() {}
  138. void SliderKnob::onHover(const HoverEvent& e) {}
  139. void SliderKnob::onButton(const ButtonEvent& e) {}
  140. SvgKnob::SvgKnob() {}
  141. void SvgKnob::setSvg(std::shared_ptr<window::Svg> svg) {}
  142. void SvgKnob::onChange(const ChangeEvent& e) {}
  143. SvgPort::SvgPort() {}
  144. void SvgPort::setSvg(std::shared_ptr<window::Svg> svg) {}
  145. SvgScrew::SvgScrew() {}
  146. void SvgScrew::setSvg(std::shared_ptr<window::Svg> svg) {}
  147. SvgSlider::SvgSlider() {}
  148. void SvgSlider::setBackgroundSvg(std::shared_ptr<window::Svg> svg) {}
  149. void SvgSlider::setHandleSvg(std::shared_ptr<window::Svg> svg) {}
  150. void SvgSlider::setHandlePos(math::Vec minHandlePos, math::Vec maxHandlePos) {}
  151. void SvgSlider::setHandlePosCentered(math::Vec minHandlePosCentered, math::Vec maxHandlePosCentered) {}
  152. void SvgSlider::onChange(const ChangeEvent& e) {}
  153. }
  154. namespace widget {
  155. FramebufferWidget::FramebufferWidget() {}
  156. FramebufferWidget::~FramebufferWidget() {}
  157. void FramebufferWidget::setDirty(bool dirty) {}
  158. int FramebufferWidget::getImageHandle() { return 0; }
  159. NVGLUframebuffer* FramebufferWidget::getFramebuffer() { return nullptr; }
  160. math::Vec FramebufferWidget::getFramebufferSize() { return {}; }
  161. void FramebufferWidget::deleteFramebuffer() {}
  162. void FramebufferWidget::step() {}
  163. void FramebufferWidget::draw(const DrawArgs& args) {}
  164. void FramebufferWidget::render(math::Vec scale, math::Vec offsetF, math::Rect clipBox) {}
  165. void FramebufferWidget::drawFramebuffer() {}
  166. void FramebufferWidget::onDirty(const DirtyEvent& e) {}
  167. void FramebufferWidget::onContextCreate(const ContextCreateEvent& e) {}
  168. void FramebufferWidget::onContextDestroy(const ContextDestroyEvent& e) {}
  169. SvgWidget::SvgWidget() {}
  170. void SvgWidget::wrap() {}
  171. void SvgWidget::setSvg(std::shared_ptr<window::Svg> svg) {}
  172. void SvgWidget::draw(const DrawArgs& args) {}
  173. Widget::~Widget() {}
  174. math::Rect Widget::getBox() { return {}; }
  175. void Widget::setBox(math::Rect box) {}
  176. math::Vec Widget::getPosition() { return {}; }
  177. void Widget::setPosition(math::Vec pos) {}
  178. math::Vec Widget::getSize() { return {}; }
  179. void Widget::setSize(math::Vec size) {}
  180. widget::Widget* Widget::getParent() { return nullptr; }
  181. bool Widget::isVisible() { return false; }
  182. void Widget::setVisible(bool visible) {}
  183. void Widget::requestDelete() {}
  184. math::Rect Widget::getChildrenBoundingBox() { return {}; }
  185. math::Rect Widget::getVisibleChildrenBoundingBox() { return {}; }
  186. bool Widget::isDescendantOf(Widget* ancestor) { return false; }
  187. math::Vec Widget::getRelativeOffset(math::Vec v, Widget* ancestor) { return {}; }
  188. float Widget::getRelativeZoom(Widget* ancestor) { return 0.0f; }
  189. math::Rect Widget::getViewport(math::Rect r) { return {}; }
  190. bool Widget::hasChild(Widget* child) { return false; }
  191. void Widget::addChild(Widget* child) {}
  192. void Widget::addChildBottom(Widget* child) {}
  193. void Widget::addChildBelow(Widget* child, Widget* sibling) {}
  194. void Widget::addChildAbove(Widget* child, Widget* sibling) {}
  195. void Widget::removeChild(Widget* child) {}
  196. void Widget::clearChildren() {}
  197. void Widget::step() {}
  198. void Widget::draw(const DrawArgs& args) {}
  199. void Widget::drawLayer(const DrawArgs& args, int layer) {}
  200. void Widget::drawChild(Widget* child, const DrawArgs& args, int layer) {}
  201. }
  202. namespace window {
  203. Svg::~Svg() {}
  204. void Svg::loadFile(const std::string& filename) {}
  205. void Svg::loadString(const std::string& str) {}
  206. math::Vec Svg::getSize() { return {}; }
  207. int Svg::getNumShapes() { return 0; }
  208. int Svg::getNumPaths() { return 0; }
  209. int Svg::getNumPoints() { return 0; }
  210. void Svg::draw(NVGcontext* vg) {}
  211. std::shared_ptr<Svg> Svg::load(const std::string& filename) { return {}; }
  212. }
  213. }