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

Method select_cell_fit

src/laybasic/laybasic/layLayoutViewBase.cc:5205–5225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5203}
5204
5205void
5206LayoutViewBase::select_cell_fit (const cell_path_type &path, int index)
5207{
5208 if (index >= 0 && int (m_cellviews.size ()) > index && (cellview_iter (index)->specific_path ().size () > 0 || cellview_iter (index)->unspecific_path () != path)) {
5209
5210 cellview_about_to_change_event (index);
5211
5212 set_min_hier_levels (0);
5213 cancel ();
5214 cellview_iter (index)->set_specific_path (lay::CellView::specific_cell_path_type ());
5215 cellview_iter (index)->set_unspecific_path (path);
5216 set_active_cellview_index (index);
5217 redraw ();
5218 zoom_fit ();
5219
5220 cellview_changed (index);
5221
5222 update_content ();
5223
5224 }
5225}
5226
5227void
5228LayoutViewBase::select_cell_fit (cell_index_type cell_index, int index)

Callers 3

pasteMethod · 0.80
menu_activatedMethod · 0.80
menu_activatedMethod · 0.80

Calls 9

redrawFunction · 0.85
zoom_fitFunction · 0.85
set_specific_pathMethod · 0.80
set_unspecific_pathMethod · 0.80
set_min_hier_levelsFunction · 0.70
cancelFunction · 0.70
sizeMethod · 0.45
cell_indexMethod · 0.45
set_cellMethod · 0.45

Tested by

no test coverage detected