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

Method do_prop_changed

src/laybasic/laybasic/layLayoutViewBase.cc:4282–4301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4280}
4281
4282void
4283LayoutViewBase::do_prop_changed ()
4284{
4285 if (m_visibility_changed) {
4286
4287 // change visibility and redraw exposed layers
4288 std::vector<bool> visibility;
4289 for (lay::LayerPropertiesConstIterator l = begin_layers (); !l.at_end (); ++l) {
4290 if (! l->has_children ()) {
4291 visibility.push_back (l->visible (true /*real*/));
4292 }
4293 }
4294 mp_canvas->change_visibility (visibility);
4295
4296 m_visibility_changed = false;
4297
4298 }
4299
4300 update_content ();
4301}
4302
4303void
4304LayoutViewBase::set_view_ops ()

Callers

nothing calls this directly

Calls 6

visibleMethod · 0.80
begin_layersFunction · 0.70
at_endMethod · 0.45
has_childrenMethod · 0.45
push_backMethod · 0.45
change_visibilityMethod · 0.45

Tested by

no test coverage detected