MCPcopy Create free account
hub / github.com/OpenMW/openmw / create

Method create

components/lua_ui/element.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 }
280
281 void Element::create(uint64_t depth)
282 {
283 if (mState == New)
284 {
285 assert(!mRoot);
286 mRoot = createWidget(layout(), true, depth);
287 mLayer = setLayer(mRoot, layout());
288 updateRootCoord(mRoot);
289 mState = Created;
290 checkWarnings();
291 }
292 }
293
294 void Element::update()
295 {

Callers 1

pluckElementRootFunction · 0.45

Calls 3

createWidgetFunction · 0.85
setLayerFunction · 0.85
updateRootCoordFunction · 0.85

Tested by

no test coverage detected