Extra "ports" of juce-based plugins using the distrho build system
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.

37 lines
621B

  1. --- Point.
  2. -- Is converted to a [JUCE Point](http://www.juce.com/api/classPoint.html)
  3. -- @classmod juce.Point
  4. --- Constuctor
  5. -- @param x
  6. -- @param y
  7. -- @within Constructors
  8. -- @constructor
  9. -- @function Point
  10. --- Constuctor
  11. -- @param args
  12. -- @param args.x
  13. -- @param args.y
  14. -- @within Constructors
  15. -- @constructor
  16. -- @function Point
  17. local Point = ffi.typeof("Point_float")
  18. local Point_mt = {
  19. -- operator '=='
  20. __eq = function(self, rhs)
  21. return self.x == rhs.x and
  22. self.y == rhs.y
  23. end;
  24. }
  25. ffi.metatype(Point, Point_mt)
  26. --- Point X position
  27. -- @simplefield x
  28. --- Point Y position
  29. -- @simplefield y
  30. return Point