| 516 | } |
| 517 | |
| 518 | void PiuTextDictionary(xsMachine* the, void* it) |
| 519 | { |
| 520 | PiuText* self = it; |
| 521 | if (xsFindResult(xsArg(1), xsID_blocks)) { |
| 522 | xsVar(0) = xsResult; |
| 523 | PiuTextBegin(self); |
| 524 | PiuTextBuild(self, 0, 0); |
| 525 | PiuTextEnd(self); |
| 526 | } |
| 527 | else if (xsFindResult(xsArg(1), xsID_string)) { |
| 528 | PiuTextBegin(self); |
| 529 | PiuTextBeginNode(self, piuTextNodeBeginBlockKind, NULL, NULL); |
| 530 | PiuTextConcat(self, PiuString(xsResult)); |
| 531 | PiuTextEndNode(self, piuTextNodeEndBlockKind); |
| 532 | PiuTextEnd(self); |
| 533 | } |
| 534 | else if (xsFindResult(xsArg(1), xsID_contents)) { |
| 535 | xsVar(0) = xsResult; |
| 536 | PiuTextBegin(self); |
| 537 | PiuTextBuild(self, 0, 0); |
| 538 | PiuTextEnd(self); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | void PiuTextDraw(void* it, PiuView* view, PiuRectangle area) |
| 543 | { |
no test coverage detected