MCPcopy Create free account
hub / github.com/defold/defold / ClearLayouts

Function ClearLayouts

engine/gui/src/gui.cpp:1211–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209 }
1210
1211 void ClearLayouts(HScene scene)
1212 {
1213 scene->m_LayoutId = DEFAULT_LAYOUT;
1214 scene->m_Layouts.SetSize(0);
1215 scene->m_Layouts.Push(DEFAULT_LAYOUT);
1216 scene->m_LayoutsNodeDescs.SetCapacity(0);
1217 }
1218
1219 Result AddLayout(HScene scene, const char* layout_id)
1220 {

Callers 3

NewSceneFunction · 0.70
FinalSceneFunction · 0.70
CompGuiOnReloadFunction · 0.50

Calls 3

SetSizeMethod · 0.45
PushMethod · 0.45
SetCapacityMethod · 0.45

Tested by

no test coverage detected