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

Method select

src/laybasic/laybasic/layEditable.cc:397–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void
398Editables::select (const db::DBox &box, lay::Editable::SelectionMode mode)
399{
400 if (box.is_point ()) {
401 select (box.center (), mode);
402 } else {
403
404 cancel_edits ();
405 clear_transient_selection ();
406 clear_previous_selection ();
407
408 for (iterator e = begin (); e != end (); ++e) {
409 if (m_enabled.find (&*e) != m_enabled.end ()) {
410 e->select (box, mode);
411 }
412 }
413
414 // send a signal to the observers
415 signal_selection_changed ();
416
417 }
418}
419
420void
421Editables::select (const db::DPoint &pt, lay::Editable::SelectionMode mode)

Callers 12

set_selectionMethod · 0.45
set_currentMethod · 0.45
menu_activatedMethod · 0.45
get_completer_cursorMethod · 0.45
eventFilterMethod · 0.45
mouse_click_eventMethod · 0.45
mouse_release_eventMethod · 0.45
enableMethod · 0.45
clear_selectionMethod · 0.45
begin_moveMethod · 0.45

Calls 15

clear_previous_selectionFunction · 0.85
signal_selection_changedFunction · 0.85
sortFunction · 0.85
is_pointMethod · 0.80
centerMethod · 0.80
selectFunction · 0.70
beginFunction · 0.70
endFunction · 0.70
findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected