MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / _attach_child

Function _attach_child

ogsr_engine/xrGame/ScriptXMLInit.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using namespace luabind;
23
24void _attach_child(CUIWindow* _child, CUIWindow* _parent)
25{
26 if (!_parent)
27 return;
28
29 CUIScrollView* _parent_scroll = smart_cast<CUIScrollView*>(_parent);
30 if (_parent_scroll)
31 _parent_scroll->AddWindow(_child, true);
32 else
33 _parent->AttachChild(_child);
34}
35
36CScriptXmlInit::CScriptXmlInit() {}
37

Callers 15

InitFrameMethod · 0.85
InitFrameLineMethod · 0.85
InitLabelMethod · 0.85
InitEditBoxMethod · 0.85
InitEditBoxExMethod · 0.85
InitStaticMethod · 0.85
InitAnimStaticMethod · 0.85
InitScrollViewMethod · 0.85
InitCheckMethod · 0.85
InitSpinNumMethod · 0.85
InitSpinFltMethod · 0.85
InitComboBoxMethod · 0.85

Calls 2

AddWindowMethod · 0.80
AttachChildMethod · 0.80

Tested by

no test coverage detected