| 77 | } |
| 78 | |
| 79 | void PiuRoundRectDraw(void* it, PiuView* view, PiuRectangle area) |
| 80 | { |
| 81 | PiuRoundRect* self = it; |
| 82 | PiuSkin* skin = (*self)->skin; |
| 83 | if (skin) { |
| 84 | PiuColorRecord color; |
| 85 | PiuState state = (*self)->state; |
| 86 | if (state < 0) state = 0; |
| 87 | else if (3 < state) state = 3; |
| 88 | PiuColorsBlend((*skin)->data.color.fill, state, &color); |
| 89 | (*self)->fillColor = GColorFromRGBA(color.r, color.g, color.b, color.a).argb; |
| 90 | PiuRectangleRecord bounds; |
| 91 | PiuRectangleSet(&bounds, 0, 0, (*self)->bounds.width, (*self)->bounds.height); |
| 92 | PiuViewDrawContent(view, PiuRoundRectDrawAux, it, 0, 0, bounds.width, bounds.height); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | extern GContext *getPocoPebbleGContext(Poco poco); |
| 97 |
nothing calls this directly
no test coverage detected