| 49 | } |
| 50 | |
| 51 | void PiuBehaviorOnDraw(void* it, PiuRectangle area) |
| 52 | { |
| 53 | PiuContent* content = it; |
| 54 | if ((*content)->behavior) { |
| 55 | xsBeginHost((*content)->the); |
| 56 | xsVars(2); |
| 57 | xsVar(0) = xsReference((*content)->behavior); |
| 58 | if (xsFindResult(xsVar(0), xsID_onDraw)) { |
| 59 | xsVar(1) = xsReference((*content)->reference); |
| 60 | (void)xsCallFunction5(xsResult, xsVar(0), xsVar(1), xsPiuCoordinate(area->x), xsPiuCoordinate(area->y), xsPiuDimension(area->width), xsPiuDimension(area->height)); |
| 61 | } |
| 62 | xsEndHost((*content)->the); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | void PiuBehaviorOnFitID(void* it, xsIdentifier id, PiuDimension dimension) |
| 67 | { |