| 352 | } |
| 353 | |
| 354 | void PiuTextBeginNode(PiuText* self, PiuTextKind kind, PiuStyle* style, PiuTextLink* link) |
| 355 | { |
| 356 | xsMachine *the = (*self)->the; |
| 357 | PiuTextBuffer* nodeBuffer = (*self)->nodeBuffer; |
| 358 | PiuTextOffset nodeOffset = (PiuTextOffset)(*nodeBuffer)->current; |
| 359 | PiuTextNodeBegin nodeBegin; |
| 360 | PiuTextBufferGrow(the, nodeBuffer, sizeof(PiuTextNodeBeginRecord)); |
| 361 | nodeBegin = NODE(nodeOffset); |
| 362 | nodeBegin->kind = kind; |
| 363 | nodeBegin->parentOffset = (*self)->nodeOffset; |
| 364 | nodeBegin->style = style; |
| 365 | if (link) { |
| 366 | (*self)->nodeLink = link; |
| 367 | (*link)->container = (PiuContainer*)self; |
| 368 | } |
| 369 | nodeBegin->link = (*self)->nodeLink; |
| 370 | (*self)->nodeOffset = nodeOffset; |
| 371 | } |
| 372 | |
| 373 | void PiuTextBind(void* it, PiuApplication* application, PiuView* view) |
| 374 | { |
no test coverage detected