DISTRHO Plugin Framework
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.

194 lines
5.2KB

  1. /*
  2. * DISTRHO Plugin Framework (DPF)
  3. * Copyright (C) 2012-2024 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any purpose with
  6. * or without fee is hereby granted, provided that the above copyright notice and this
  7. * permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  10. * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
  11. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  12. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  13. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #include "Color.hpp"
  17. #include "SubWidgetPrivateData.hpp"
  18. #include "TopLevelWidgetPrivateData.hpp"
  19. #include "WidgetPrivateData.hpp"
  20. #include "WindowPrivateData.hpp"
  21. START_NAMESPACE_DGL
  22. // --------------------------------------------------------------------------------------------------------------------
  23. static void notImplemented(const char* const name)
  24. {
  25. d_stderr2("stub function not implemented: %s", name);
  26. }
  27. // --------------------------------------------------------------------------------------------------------------------
  28. // Color
  29. void Color::setFor(const GraphicsContext&, bool)
  30. {
  31. notImplemented("Color::setFor");
  32. }
  33. // --------------------------------------------------------------------------------------------------------------------
  34. // Line
  35. template<typename T>
  36. void Line<T>::draw(const GraphicsContext& context, T)
  37. {
  38. notImplemented("Line::draw");
  39. }
  40. template<typename T>
  41. void Line<T>::draw()
  42. {
  43. notImplemented("Line::draw");
  44. }
  45. template class Line<double>;
  46. template class Line<float>;
  47. template class Line<int>;
  48. template class Line<uint>;
  49. template class Line<short>;
  50. template class Line<ushort>;
  51. // --------------------------------------------------------------------------------------------------------------------
  52. // Circle
  53. template<typename T>
  54. void Circle<T>::draw(const GraphicsContext&)
  55. {
  56. notImplemented("Circle::draw");
  57. }
  58. template<typename T>
  59. void Circle<T>::drawOutline(const GraphicsContext&, T)
  60. {
  61. notImplemented("Circle::drawOutline");
  62. }
  63. template<typename T>
  64. void Circle<T>::draw()
  65. {
  66. notImplemented("Circle::draw");
  67. }
  68. template<typename T>
  69. void Circle<T>::drawOutline()
  70. {
  71. notImplemented("Circle::drawOutline");
  72. }
  73. template class Circle<double>;
  74. template class Circle<float>;
  75. template class Circle<int>;
  76. template class Circle<uint>;
  77. template class Circle<short>;
  78. template class Circle<ushort>;
  79. // --------------------------------------------------------------------------------------------------------------------
  80. // Triangle
  81. template<typename T>
  82. void Triangle<T>::draw(const GraphicsContext&)
  83. {
  84. notImplemented("Triangle::draw");
  85. }
  86. template<typename T>
  87. void Triangle<T>::drawOutline(const GraphicsContext&, T)
  88. {
  89. notImplemented("Triangle::drawOutline");
  90. }
  91. template<typename T>
  92. void Triangle<T>::draw()
  93. {
  94. notImplemented("Triangle::draw");
  95. }
  96. template<typename T>
  97. void Triangle<T>::drawOutline()
  98. {
  99. notImplemented("Triangle::drawOutline");
  100. }
  101. template class Triangle<double>;
  102. template class Triangle<float>;
  103. template class Triangle<int>;
  104. template class Triangle<uint>;
  105. template class Triangle<short>;
  106. template class Triangle<ushort>;
  107. // --------------------------------------------------------------------------------------------------------------------
  108. // Rectangle
  109. template<typename T>
  110. void Rectangle<T>::draw(const GraphicsContext&)
  111. {
  112. notImplemented("Rectangle::draw");
  113. }
  114. template<typename T>
  115. void Rectangle<T>::drawOutline(const GraphicsContext&, T)
  116. {
  117. notImplemented("Rectangle::drawOutline");
  118. }
  119. template<typename T>
  120. void Rectangle<T>::draw()
  121. {
  122. notImplemented("Rectangle::draw");
  123. }
  124. template<typename T>
  125. void Rectangle<T>::drawOutline()
  126. {
  127. notImplemented("Rectangle::drawOutline");
  128. }
  129. template class Rectangle<double>;
  130. template class Rectangle<float>;
  131. template class Rectangle<int>;
  132. template class Rectangle<uint>;
  133. template class Rectangle<short>;
  134. template class Rectangle<ushort>;
  135. // --------------------------------------------------------------------------------------------------------------------
  136. void SubWidget::PrivateData::display(uint, uint, double)
  137. {
  138. }
  139. // --------------------------------------------------------------------------------------------------------------------
  140. void TopLevelWidget::PrivateData::display()
  141. {
  142. }
  143. // --------------------------------------------------------------------------------------------------------------------
  144. void Window::PrivateData::renderToPicture(const char*, const GraphicsContext&, uint, uint)
  145. {
  146. notImplemented("Window::PrivateData::renderToPicture");
  147. }
  148. // --------------------------------------------------------------------------------------------------------------------
  149. const GraphicsContext& Window::PrivateData::getGraphicsContext() const noexcept
  150. {
  151. GraphicsContext& context((GraphicsContext&)graphicsContext);
  152. return context;
  153. }
  154. // --------------------------------------------------------------------------------------------------------------------
  155. END_NAMESPACE_DGL