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

Function get_random

UnitTests/UnitTest_AttachDetach/DemoKeeper.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 static MyGUI::Widget* get_random(MyGUI::VectorWidgetPtr& _mass)
49 {
50 if (_mass.empty())
51 return nullptr;
52 return _mass.at(random((int)_mass.size()));
53 }
54
55 static std::string_view get_skin()
56 {

Callers 8

step_detach_layerFunction · 0.85
step_attach_layerFunction · 0.85
step_detach_widgetFunction · 0.85
step_attach_widgetFunction · 0.85
step_destroy_widgetFunction · 0.85
step_create_widgetFunction · 0.85
step_change_skinFunction · 0.85
step_change_typeFunction · 0.85

Calls 3

randomFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected