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

Method create_plugin

src/laybasic/laybasic/layLayoutViewBase.cc:644–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644lay::Plugin *LayoutViewBase::create_plugin (const lay::PluginDeclaration *cls)
645{
646 lay::Plugin *p = cls->create_plugin (manager (), dispatcher (), this);
647 if (p) {
648
649 // unhook the plugin from the script side if created there (prevent GC from destroying it)
650 p->gsi::ObjectBase::keep ();
651
652 mp_plugins.push_back (p);
653 p->set_plugin_declaration (cls);
654
655 // enable editable functionality
656 if (p->editable_interface ()) {
657 enable (p->editable_interface (), cls->editable_enabled ());
658 }
659
660 update_event_handlers ();
661
662 }
663 return p;
664}
665
666Plugin *LayoutViewBase::get_plugin_by_name (const std::string &name) const
667{

Callers

nothing calls this directly

Calls 3

managerFunction · 0.70
dispatcherFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected