MCPcopy 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
39gfx::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
47void Window::queueEvent(os::Event& ev)
48{

Callers 1

newDragEventMethod · 0.80

Calls 1

originMethod · 0.80

Tested by

no test coverage detected