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

Function add_line_style1

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static unsigned int add_line_style1 (lay::LayoutViewBase *view, const std::string &name, unsigned int data, unsigned int bits)
115{
116 lay::LineStyles styles (view->line_styles ());
117
118 lay::LineStyleInfo s;
119 s.set_name (name);
120 s.set_pattern (data, std::min (32u, bits));
121 unsigned int index = styles.add_style (s);
122
123 view->set_line_styles (styles);
124
125 return index;
126}
127
128static unsigned int add_line_style2 (lay::LayoutViewBase *view, const std::string &name, const std::string &str)
129{

Callers

nothing calls this directly

Calls 5

minFunction · 0.85
add_styleMethod · 0.80
set_nameMethod · 0.45
set_patternMethod · 0.45
set_line_stylesMethod · 0.45

Tested by

no test coverage detected