Rectangle.lua 226 B

123456789101112
  1. class "Rectangle"
  2. function Rectangle:Rectangle()
  3. if self.__ptr == nil then
  4. self.__ptr = Polycore.Rectangle()
  5. end
  6. end
  7. function Rectangle:setRect(x, y, w, h)
  8. return Polycore.Rectangle_setRect(self.__ptr, x, y, w, h)
  9. end