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

Method mode

src/laybasic/laybasic/layLayoutViewBase.cc:5958–5975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5956}
5957
5958void
5959LayoutViewBase::mode (int m)
5960{
5961 if (m != m_mode) {
5962
5963 m_mode = m;
5964 mp_active_plugin = 0;
5965
5966 for (std::vector<lay::Plugin *>::iterator p = mp_plugins.begin (); p != mp_plugins.end (); ++p) {
5967 if ((*p)->plugin_declaration ()->id () == m) {
5968 mp_active_plugin = *p;
5969 mp_canvas->activate ((*p)->view_service_interface ());
5970 break;
5971 }
5972 }
5973
5974 }
5975}
5976
5977bool
5978LayoutViewBase::is_move_mode () const

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
idMethod · 0.45
activateMethod · 0.45

Tested by

no test coverage detected