| 166 | } |
| 167 | |
| 168 | void PiuSVGImageDictionary(xsMachine* the, void* it) |
| 169 | { |
| 170 | PiuSVGImage* self = it; |
| 171 | xsBooleanValue boolean; |
| 172 | if (xsFindBoolean(xsArg(1), xsID_clip, &boolean)) { |
| 173 | if (boolean) |
| 174 | (*self)->flags |= piuClip; |
| 175 | else |
| 176 | (*self)->flags &= ~piuClip; |
| 177 | } |
| 178 | if (xsFindResult(xsArg(1), xsID_path)) { |
| 179 | if (xsTypeOf(xsResult) == xsIntegerType) { |
| 180 | (*self)->id = xsToInteger(xsResult); |
| 181 | } |
| 182 | else { |
| 183 | xsSlot* path = PiuString(xsResult); |
| 184 | (*self)->path = path; |
| 185 | } |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | void PiuSVGImageDraw(void* it, PiuView* view, PiuRectangle area) |
| 190 | { |
no outgoing calls
no test coverage detected