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

Method screenToWindow

source/x11/xwindow.cpp:383–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void XWindow::screenToWindow(S32& x, S32& y) {
384 XWindowPtr p = shared_from_this();
385
386 while (p) {
387 x -= p->left;
388 y -= p->top;
389 p = p->parent;
390 }
391}
392
393void XWindow::setTextProperty(KThread* thread, XTextProperty* name, Atom property, bool trace) {
394 setProperty(property, name->encoding, name->format, name->byteLen(thread->memory), name->value);

Callers 5

getWindowFromPointMethod · 0.80
x11_TranslateCoordinatesFunction · 0.80
x11_QueryPointerFunction · 0.80
getMousePosMethod · 0.80
setMousePosMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected