MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuRoundRectDraw

Function PiuRoundRectDraw

modules/piu/Pebble/piuRoundRect.c:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void 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
96extern GContext *getPocoPebbleGContext(Poco poco);
97

Callers

nothing calls this directly

Calls 3

PiuColorsBlendFunction · 0.85
PiuRectangleSetFunction · 0.85
PiuViewDrawContentFunction · 0.70

Tested by

no test coverage detected