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

Method pixel_to_um

src/laybasic/laybasic/layViewObject.cc:1077–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077db::DPoint
1078ViewObjectUI::pixel_to_um (const db::Point &pt) const
1079{
1080 return m_trans.inverted () * db::DPoint (pt.x (), widget_height () - 1 - pt.y ());
1081}
1082
1083db::DPoint
1084ViewObjectUI::pixel_to_um (const db::DPoint &pt) const

Callers 3

dragEnterEventFunction · 0.80
dragMoveEventFunction · 0.80
dropEventFunction · 0.80

Calls 3

yMethod · 0.80
invertedMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected