MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / windowToScreen

Method windowToScreen

source/x11/xwindow.cpp:373–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void XWindow::windowToScreen(S32& x, S32& y) {
374 XWindowPtr p = shared_from_this();
375
376 while (p) {
377 x += p->left;
378 y += p->top;
379 p = p->parent;
380 }
381}
382
383void XWindow::screenToWindow(S32& x, S32& y) {
384 XWindowPtr p = shared_from_this();

Callers 3

mouseMoveMethod · 0.80
mouseButtonMethod · 0.80
x11_TranslateCoordinatesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected