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

Method getRoot

Engine/source/gui/core/guiControl.cpp:1922–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1920//-----------------------------------------------------------------------------
1921
1922GuiCanvas *GuiControl::getRoot()
1923{
1924 GuiControl *root = NULL;
1925 GuiControl *parent = getParent();
1926 while (parent)
1927 {
1928 root = parent;
1929 parent = parent->getParent();
1930 }
1931 if (root)
1932 return dynamic_cast<GuiCanvas*>(root);
1933 else
1934 return NULL;
1935}
1936
1937//-----------------------------------------------------------------------------
1938

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
acquireMethod · 0.45
on3DMouseDownMethod · 0.45
on3DMouseUpMethod · 0.45
onRender2DMethod · 0.45

Calls 1

getParentMethod · 0.45

Tested by

no test coverage detected