Rectangle.js 543 B

1234567891011121314151617181920212223242526
  1. function Rectangle() {
  2. }
  3. Rectangle.prototype.setRect = function(x,y,w,h) {
  4. Polycode.Rectangle_setRect(this.__ptr, x,y,w,h)
  5. }
  6. Rectangle.prototype.Clipped = function(rect) {
  7. Polycode.Rectangle_Clipped(this.__ptr, rect)
  8. }
  9. Rectangle.prototype.minX = function() {
  10. Polycode.Rectangle_minX(this.__ptr)
  11. }
  12. Rectangle.prototype.maxX = function() {
  13. Polycode.Rectangle_maxX(this.__ptr)
  14. }
  15. Rectangle.prototype.minY = function() {
  16. Polycode.Rectangle_minY(this.__ptr)
  17. }
  18. Rectangle.prototype.maxY = function() {
  19. Polycode.Rectangle_maxY(this.__ptr)
  20. }