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

Method begin

src/laybasic/laybasic/laySelector.cc:304–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void
305SelectionService::begin (const db::DPoint &pos)
306{
307 if (mp_box) {
308 delete mp_box;
309 }
310
311 m_p1 = pos;
312 m_p2 = pos;
313 mp_box = new lay::RubberBox (ui (), m_color, pos, pos);
314 mp_box->set_stipple (6); // coarse hatched
315
316 ui ()->grab_mouse (this, true);
317}
318
319// ----------------------------------------------------------------------------
320

Callers

nothing calls this directly

Calls 3

uiFunction · 0.70
set_stippleMethod · 0.45
grab_mouseMethod · 0.45

Tested by

no test coverage detected