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

Method attachElement

components/lua_ui/adapter.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 void LuaAdapter::attachElement()
51 {
52 if (!mElement.get())
53 return;
54 if (!mElement->mRoot)
55 throw std::logic_error("Attempting to use a destroyed UI Element");
56 mContainer->setChildren({ mElement->mRoot });
57 mElement->mRoot->updateCoord();
58 mContainer->updateCoord();
59 }
60
61 void LuaAdapter::detachElement()
62 {

Callers

nothing calls this directly

Calls 3

setChildrenMethod · 0.80
getMethod · 0.45
updateCoordMethod · 0.45

Tested by

no test coverage detected