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

Method set_layer_node_expanded

src/laybasic/laybasic/layLayoutViewBase.cc:2080–2093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2078}
2079
2080void
2081LayoutViewBase::set_layer_node_expanded (unsigned int index, const LayerPropertiesConstIterator &iter, bool ex)
2082{
2083 if (ex != iter->expanded ()) {
2084
2085 LayerPropertiesIterator non_const_iter (get_properties (index), iter.uint ());
2086 non_const_iter->set_expanded (ex);
2087
2088 if (index == current_layer_list ()) {
2089 layer_list_changed_event (8 /*expanded state needs update*/);
2090 }
2091
2092 }
2093}
2094
2095void
2096LayoutViewBase::set_properties (unsigned int index, const LayerPropertiesConstIterator &iter, const LayerProperties &props)

Callers 1

Calls 4

current_layer_listFunction · 0.85
expandedMethod · 0.80
set_expandedMethod · 0.80
get_propertiesFunction · 0.50

Tested by

no test coverage detected