| 385 | } |
| 386 | |
| 387 | void PiuSVGImage_center(xsMachine* the) |
| 388 | { |
| 389 | PiuSVGImage* self = PIU(SVGImage, xsThis); |
| 390 | xsIntegerValue c = xsToInteger(xsArgc); |
| 391 | (*self)->cx = (c > 0) ? xsToNumber(xsArg(0)) : (xsNumberValue)(*self)->dataWidth / 2.0; |
| 392 | (*self)->cy = (c > 1) ? xsToNumber(xsArg(1)) : (xsNumberValue)(*self)->dataHeight / 2.0; |
| 393 | (*self)->transforming = 1; |
| 394 | PiuSVGImageInvalidate(self, NULL); |
| 395 | } |
| 396 | |
| 397 | void PiuSVGImage_get_cx(xsMachine* the) |
| 398 | { |
nothing calls this directly
no test coverage detected