window
Measured in pixels, with (0,0) being at the top left of the window, the Y axis pointing downwards. This system is used for raw mouse events from the Glok
GUI toolkit. If a class is derived from class Mode
, then it is using these coordinates.
Glok
automatically scales the user interface when using high DPI devices, so its coordinates are actually logical pixels
s. e.g. My screen is 3840 actually pixels wide, but Glok
tells me it is 1940 logical pixels wide. Mouse events come in steps of 0.5 logical pixels
.
StageView and ActView convert between window and world coordinates using StageOrActView.sceneToWorld and StageOrActView.worldToScene matrices.