MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / roundedRect

Method roundedRect

dep/agg/src/agg2d.cpp:770–780  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

768
769//------------------------------------------------------------------------
770void Agg2D::roundedRect(double x1, double y1, double x2, double y2, double r)
771{
772 m_path.remove_all();
773 agg::rounded_rect rc(x1, y1, x2, y2, r);
774 rc.normalize_radius();
775 rc.approximation_scale(worldToScreen(1.0) * g_approxScale);
776 // JME audit
777 //m_path.add_path(rc, 0, false);
778 m_path.concat_path(rc,0);
779 drawPath(FillAndStroke);
780}
781
782
783

Callers

nothing calls this directly

Calls 6

normalize_radiusMethod · 0.80
concat_pathMethod · 0.80
rectMethod · 0.80
remove_allMethod · 0.45
approximation_scaleMethod · 0.45
radiusMethod · 0.45

Tested by

no test coverage detected