MCPcopy Create free account
hub / github.com/KLayout/klayout / get_rectangle

Function get_rectangle

src/db/db/gsiDeclDbShape.cc:672–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672static tl::Variant get_rectangle (const db::Shape *s)
673{
674 db::Shape::box_type b = s->rectangle ();
675 if (! b.empty ()) {
676 return tl::Variant (b);
677 } else {
678 return tl::Variant ();
679 }
680}
681
682static tl::Variant get_drectangle (const db::Shape *s)
683{

Callers

nothing calls this directly

Calls 3

rectangleMethod · 0.80
VariantClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected