| 112 | } |
| 113 | |
| 114 | void PiuQRCodeDraw(void* it, PiuView* view, PiuRectangle area) |
| 115 | { |
| 116 | PiuQRCode* self = it; |
| 117 | if ((*self)->buffer) { |
| 118 | PiuSkin* skin = (*self)->skin; |
| 119 | if (skin) { |
| 120 | PiuColorRecord color; |
| 121 | PiuState state = (*self)->state; |
| 122 | if (state < 0) state = 0; |
| 123 | else if (3 < state) state = 3; |
| 124 | PiuColorsBlend((*skin)->data.color.fill, state, &color); |
| 125 | (*self)->fillColor = PocoMakeColor((*view)->poco, color.r, color.g, color.b); |
| 126 | (*self)->fillBlend = color.a; |
| 127 | PiuColorsBlend((*skin)->data.color.stroke, state, &color); |
| 128 | (*self)->strokeColor = PocoMakeColor((*view)->poco, color.r, color.g, color.b); |
| 129 | (*self)->strokeBlend = color.a; |
| 130 | } |
| 131 | else { |
| 132 | (*self)->fillColor = PocoMakeColor((*view)->poco, 255, 255, 255); |
| 133 | (*self)->fillBlend = 255; |
| 134 | (*self)->strokeColor = PocoMakeColor((*view)->poco, 0, 0, 0); |
| 135 | (*self)->strokeBlend = 255; |
| 136 | } |
| 137 | PiuViewDrawContent(view, PiuQRCodeDrawAux, it, 0, 0, (*self)->bounds.width, (*self)->bounds.height); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void PiuQRCodeDrawAux(void* it, PiuView* view, PiuCoordinate x, PiuCoordinate y, PiuDimension sw, PiuDimension sh) |
| 142 | { |
nothing calls this directly
no test coverage detected