MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / localToGlobalCoord

Method localToGlobalCoord

Engine/source/gui/core/guiControl.cpp:1479–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477//-----------------------------------------------------------------------------
1478
1479Point2I GuiControl::localToGlobalCoord(const Point2I &src)
1480{
1481 Point2I ret = src;
1482 ret += getPosition();
1483 GuiControl *walk = getParent();
1484 while(walk)
1485 {
1486 ret += walk->getPosition();
1487 walk = walk->getParent();
1488 }
1489 return ret;
1490}
1491
1492//-----------------------------------------------------------------------------
1493

Callers 15

onRenderMethod · 0.80
guiControl.cppFile · 0.80
onMouseDraggedMethod · 0.80
onMouseDownMethod · 0.80
onRenderMethod · 0.80
moveSelectionToCtrlMethod · 0.80
getSelectionBoundsMethod · 0.80
registerSnapMethod · 0.80
doGuideSnapMethod · 0.80
doSnappingMethod · 0.80
getCursorMethod · 0.80

Calls 3

getPositionFunction · 0.85
getPositionMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected