MCPcopy Create free account
hub / github.com/MyGUI/mygui / convertFromRelative

Function convertFromRelative

MyGUIEngine/include/MyGUI_CoordConverter.h:34–41  ·  view source on GitHub ↗

Convert from relative to pixel coordinates. @param _coord relative coordinates. */

Source from the content-addressed store, hash-verified

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.

Callers 8

Gui.hFile · 0.85
createWidgetRealTMethod · 0.85
setRealPositionMethod · 0.85
setRealSizeMethod · 0.85
setRealCoordMethod · 0.85
createWidgetMethod · 0.85
parseWidgetMethod · 0.85
onActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected