| 88 | } |
| 89 | |
| 90 | static DoubleCoord convertToRelativeD(const IntCoord& _coord, const IntSize& _view) |
| 91 | { |
| 92 | return { |
| 93 | _coord.left / (double)_view.width, |
| 94 | _coord.top / (double)_view.height, |
| 95 | _coord.width / (double)_view.width, |
| 96 | _coord.height / (double)_view.height}; |
| 97 | } |
| 98 | }; |
| 99 | |
| 100 | } // namespace MyGUI |