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

Method goto_window

src/laybasic/laybasic/layLayoutViewBase.cc:4122–4133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4120}
4121
4122void
4123LayoutViewBase::goto_window (const db::DPoint &p, double s)
4124{
4125 if (s > 1e-6) {
4126 db::DBox b (p.x () - s * 0.5, p.y () - s * 0.5, p.x () + s * 0.5, p.y () + s * 0.5);
4127 zoom_box (b);
4128 } else {
4129 db::DBox b (box ());
4130 b.move (p - b.center ());
4131 zoom_box (b);
4132 }
4133}
4134
4135void
4136LayoutViewBase::redraw_layer (unsigned int index)

Callers 1

cm_goto_positionMethod · 0.80

Calls 5

yMethod · 0.80
centerMethod · 0.80
boxFunction · 0.70
xMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected