Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aseprite/laf
/ pointFromScreen
Method
pointFromScreen
os/window.cpp:39–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
}
38
39
gfx::Point Window::pointFromScreen(const gfx::Point& screenPosition) const
40
{
41
gfx::Point res = screenPosition;
42
res -= contentRect().origin();
43
res /= scale();
44
return res;
45
}
46
47
void Window::queueEvent(os::Event& ev)
48
{
Callers
1
newDragEvent
Method · 0.80
Calls
1
origin
Method · 0.80
Tested by
no test coverage detected