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

Method getRoot

Engine/source/gui/core/guiControl.cpp:1937–1950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1935//-----------------------------------------------------------------------------
1936
1937GuiCanvas *GuiControl::getRoot()
1938{
1939 GuiControl *root = NULL;
1940 GuiControl *parent = getParent();
1941 while (parent)
1942 {
1943 root = parent;
1944 parent = parent->getParent();
1945 }
1946 if (root)
1947 return dynamic_cast<GuiCanvas*>(root);
1948 else
1949 return NULL;
1950}
1951
1952//-----------------------------------------------------------------------------
1953

Callers 15

copySketchupTextureFunction · 0.45
getDomCOLLADAMethod · 0.45
readColladaFileMethod · 0.45
resolveImagePathMethod · 0.45
_loadLegacyMethod · 0.45
createTextureMethod · 0.45
_onFileChangedMethod · 0.45
createMethod · 0.45
on3DMouseDownMethod · 0.45
on3DMouseUpMethod · 0.45
onRender2DMethod · 0.45

Calls 1

getParentMethod · 0.45

Tested by

no test coverage detected