MCPcopy Create free account
hub / github.com/dborth/fceugx / Insert

Method Insert

source/gui/gui_window.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void GuiWindow::Insert(GuiElement* e, u32 index)
42{
43 if (e == NULL || index > (_elements.size() - 1))
44 return;
45
46 Remove(e);
47 _elements.insert(_elements.begin()+index, e);
48 e->SetParent(this);
49}
50
51void GuiWindow::Remove(GuiElement* e)
52{

Callers 1

MenuGameFunction · 0.80

Calls 3

beginMethod · 0.80
SetParentMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected