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

Method cut

src/laybasic/laybasic/layEditable.cc:137–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void
138Editables::cut ()
139{
140 if (has_selection ()) {
141
142 cancel_edits ();
143
144 // this dummy operation will update the screen:
145 if (manager ()) {
146 manager ()->queue (this, new db::Op ());
147 }
148
149 db::Clipboard::instance ().clear ();
150 for (iterator e = begin (); e != end (); ++e) {
151 e->cut ();
152 }
153
154 }
155}
156
157void
158Editables::copy ()

Callers

nothing calls this directly

Calls 7

has_selectionFunction · 0.85
managerFunction · 0.70
instanceFunction · 0.70
beginFunction · 0.70
endFunction · 0.70
queueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected