| 667 | } |
| 668 | |
| 669 | void PiuStyle_measure(xsMachine* the) |
| 670 | { |
| 671 | PiuStyle* self = PIU(Style, xsThis); |
| 672 | (void)xsToString(xsArg(0)); |
| 673 | if ((*self)->font == NULL) |
| 674 | PiuStyleLookupFont(self); |
| 675 | if ((*self)->font != NULL) { |
| 676 | PiuDimension width = PiuStyleGetWidth(self, &xsArg(0)); |
| 677 | PiuDimension height = PiuStyleGetHeight(self, &xsArg(0)); |
| 678 | xsResult = xsNewObject(); |
| 679 | xsDefine(xsResult, xsID_width, xsPiuDimension(width), xsDefault); |
| 680 | xsDefine(xsResult, xsID_height, xsPiuDimension(height), xsDefault); |
| 681 | } |
| 682 | } |
nothing calls this directly
no test coverage detected