mirror of https://github.com/KLayout/klayout.git
Technology changed event for CellView
This commit is contained in:
parent
b31a64b367
commit
2168a72b9d
|
|
@ -1977,6 +1977,11 @@ static std::string get_technology (const lay::CellViewRef *cv)
|
|||
}
|
||||
}
|
||||
|
||||
static tl::Event &get_technology_changed_event (lay::CellViewRef *cv)
|
||||
{
|
||||
return (*cv)->technology_changed_event;
|
||||
}
|
||||
|
||||
static lay::CellViewRef get_active_cellview_ref ()
|
||||
{
|
||||
lay::LayoutView *view = lay::LayoutView::current ();
|
||||
|
|
@ -2183,6 +2188,12 @@ Class<lay::CellViewRef> decl_CellView ("lay", "CellView",
|
|||
"fashion, i.e. describing each instance in detail, not just by cell indexes. If "
|
||||
"the context and target cell are identical, the context path is empty."
|
||||
) +
|
||||
event_ext ("on_technology_changed", &get_technology_changed_event,
|
||||
"@brief An event indicating that the technology has changed\n"
|
||||
"This event is triggered when the CellView is attached to a different technology.\n"
|
||||
"\n"
|
||||
"This event has been introduced in version 0.27.\n"
|
||||
) +
|
||||
method_ext ("technology", &get_technology,
|
||||
"@brief Returns the technology name for the layout behind the given cell view\n"
|
||||
"This method has been added in version 0.23.\n"
|
||||
|
|
|
|||
Loading…
Reference in New Issue