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

Function DefineEngineMethod

Engine/source/gui/editor/guiMenuBar.cpp:1498–1505  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Console Methods -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1496// Console Methods
1497//-----------------------------------------------------------------------------
1498DefineEngineMethod(GuiMenuBar, attachToCanvas, void, (const char *canvas, S32 pos), , "(GuiCanvas, pos)")
1499{
1500 GuiCanvas* canv = dynamic_cast<GuiCanvas*>(Sim::findObject(canvas));
1501 if (canv)
1502 {
1503 canv->setMenuBar(object);
1504 }
1505}
1506
1507DefineEngineMethod(GuiMenuBar, removeFromCanvas, void, (), , "()")
1508{

Callers 1

guiMenuBar.cppFile · 0.70

Calls 3

setMenuBarMethod · 0.80
findObjectFunction · 0.50
getRootMethod · 0.45

Tested by

no test coverage detected