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

Function add_stipple2

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static unsigned int add_stipple2 (lay::LayoutViewBase *view, const std::string &name, const std::string &s)
76{
77 lay::DitherPattern pattern (view->dither_pattern ());
78
79 lay::DitherPatternInfo p;
80 p.from_string (s);
81 p.set_name (name);
82 unsigned int index = pattern.add_pattern (p);
83
84 view->set_dither_pattern (pattern);
85
86 return index;
87}
88
89static std::string get_stipple (lay::LayoutViewBase *view, unsigned int index)
90{

Callers

nothing calls this directly

Calls 5

dither_patternMethod · 0.80
add_patternMethod · 0.80
from_stringMethod · 0.45
set_nameMethod · 0.45
set_dither_patternMethod · 0.45

Tested by

no test coverage detected