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.

113 lines
3.0KB

  1. /*
  2. * DISTRHO Plugin Framework (DPF)
  3. * Copyright (C) 2012-2019 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 "../Geometry.hpp"
  17. #include "../Cairo.hpp"
  18. START_NAMESPACE_DGL
  19. // -----------------------------------------------------------------------
  20. static void notImplemented(const char *name)
  21. {
  22. d_stderr2("cairo function not implemented: %s", name);
  23. }
  24. // -----------------------------------------------------------------------
  25. // Line
  26. template<typename T>
  27. void Line<T>::draw()
  28. {
  29. notImplemented("Line::draw");
  30. }
  31. // -----------------------------------------------------------------------
  32. // Circle
  33. template<typename T>
  34. void Circle<T>::_draw(const bool outline)
  35. {
  36. notImplemented("Circle::draw");
  37. }
  38. // -----------------------------------------------------------------------
  39. // Triangle
  40. template<typename T>
  41. void Triangle<T>::_draw(const bool outline)
  42. {
  43. notImplemented("Triangle::draw");
  44. }
  45. // -----------------------------------------------------------------------
  46. // Rectangle
  47. template<typename T>
  48. void Rectangle<T>::_draw(const bool outline)
  49. {
  50. notImplemented("Rectangle::draw");
  51. }
  52. // -----------------------------------------------------------------------
  53. // Possible template data types
  54. template class Point<double>;
  55. template class Point<float>;
  56. template class Point<int>;
  57. template class Point<uint>;
  58. template class Point<short>;
  59. template class Point<ushort>;
  60. template class Size<double>;
  61. template class Size<float>;
  62. template class Size<int>;
  63. template class Size<uint>;
  64. template class Size<short>;
  65. template class Size<ushort>;
  66. template class Line<double>;
  67. template class Line<float>;
  68. template class Line<int>;
  69. template class Line<uint>;
  70. template class Line<short>;
  71. template class Line<ushort>;
  72. template class Circle<double>;
  73. template class Circle<float>;
  74. template class Circle<int>;
  75. template class Circle<uint>;
  76. template class Circle<short>;
  77. template class Circle<ushort>;
  78. template class Triangle<double>;
  79. template class Triangle<float>;
  80. template class Triangle<int>;
  81. template class Triangle<uint>;
  82. template class Triangle<short>;
  83. template class Triangle<ushort>;
  84. template class Rectangle<double>;
  85. template class Rectangle<float>;
  86. template class Rectangle<int>;
  87. template class Rectangle<uint>;
  88. template class Rectangle<short>;
  89. template class Rectangle<ushort>;
  90. // -----------------------------------------------------------------------
  91. END_NAMESPACE_DGL