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

Method localToGlobalCoord

Engine/source/gui/core/guiControl.cpp:1464–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462//-----------------------------------------------------------------------------
1463
1464Point2I GuiControl::localToGlobalCoord(const Point2I &src)
1465{
1466 Point2I ret = src;
1467 ret += getPosition();
1468 GuiControl *walk = getParent();
1469 while(walk)
1470 {
1471 ret += walk->getPosition();
1472 walk = walk->getParent();
1473 }
1474 return ret;
1475}
1476
1477//-----------------------------------------------------------------------------
1478

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 2

getPositionMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected