Convert from relative to pixel coordinates. @param _coord relative coordinates. */
| 32 | @param _coord relative coordinates. |
| 33 | */ |
| 34 | static IntCoord convertFromRelative(const FloatCoord& _coord, const IntSize& _view) |
| 35 | { |
| 36 | return { |
| 37 | int(_coord.left * _view.width), |
| 38 | int(_coord.top * _view.height), |
| 39 | int(_coord.width * _view.width), |
| 40 | int(_coord.height * _view.height)}; |
| 41 | } |
| 42 | |
| 43 | /* Convert from relative to pixel coordinates. |
| 44 | @param _coord relative coordinates. |
no outgoing calls
no test coverage detected