MCPcopy Create free account
hub / github.com/MyGUI/mygui / step_attach_widget

Function step_attach_widget

UnitTests/UnitTest_AttachDetach/DemoKeeper.cpp:137–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 static void step_attach_widget()
138 {
139 MyGUI::Widget* widget1 = get_random(all_widgets);
140 MyGUI::Widget* widget2 = get_random(all_widgets);
141 if (!widget1 || !widget2)
142 return;
143
144 MyGUI::Widget* test = widget1;
145 do
146 {
147 if (test == widget2)
148 return;
149 test = test->getParent();
150 } while (test);
151
152 widget2->attachToWidget(widget1, get_type(), get_layer());
153 test_widgets();
154 }
155
156 static void step_attach_widget(int _count)
157 {

Callers 1

notifyFrameStartedMethod · 0.85

Calls 7

get_randomFunction · 0.85
get_typeFunction · 0.85
get_layerFunction · 0.85
test_widgetsFunction · 0.85
randomFunction · 0.85
attachToWidgetMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected