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

Function wheelEvent

src/laybasic/laybasic/layViewObject.cc:454–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452 }
453
454 void wheelEvent (QWheelEvent *e)
455 {
456 BEGIN_PROTECTED
457
458 db::DPoint p;
459#if QT_VERSION < 0x60000
460 int delta = e->delta ();
461 p = db::DPoint (e->pos ().x (), e->pos ().y ());
462 bool horizontal = (e->orientation () == Qt::Horizontal);
463#else
464 int delta = e->angleDelta ().y ();
465 p = db::DPoint (e->position ().x (), e->position ().y ());
466 bool horizontal = false;
467#endif
468
469 e->ignore ();
470
471 mp_view->send_wheel_event (delta, horizontal, p, qt_to_buttons (e->buttons (), e->modifiers ()));
472
473 END_PROTECTED
474 }
475
476 void mousePressEvent (QMouseEvent *e)
477 {

Callers 15

cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85
cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85
cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85
cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85
cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85
cbs_wheelEvent_1718_0Method · 0.85
wheelEventMethod · 0.85

Calls 7

qt_to_buttonsFunction · 0.85
deltaMethod · 0.80
yMethod · 0.80
send_wheel_eventMethod · 0.80
xMethod · 0.45
posMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected