"mapFromGlobal"
The property allows to convert the global coordinates into panel relative coordinates.
Synopsis
shape.mapFromGlobal(int gx, int gy, int&x, int &y);
Parameter
| Parameter | Description |
|---|---|
| gx | x global coordinate |
| gy | y global coordinate |
| x | x panel coordinate |
| y | y panel coordinate |
Description
This function is the reverse of "mapToGlobal". It takes global coordinates and results in non-scaled panel coordinates relative to the top-left corner of the shape bounding box.
In this context, non-scaled panel coordinates means that the current zoom factor of the panel is not applied, i.e. the coordinates are the same regardless of the zoom factor.
Assignment
All Shapes
