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

Function assignWidget

MyGUIEngine/include/MyGUI_Widget.h:413–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411
412 template<typename T>
413 void assignWidget(T*& _widget, std::string_view _name)
414 {
415 _widget = nullptr;
416 for (const auto& iter : mWidgetChildSkin)
417 {
418 Widget* find = iter->findWidget(_name);
419 if (nullptr != find)
420 {
421 _widget = find->castType<T>(false);
422 break;
423 }
424 }
425 }
426
427 VectorWidgetPtr getSkinWidgetsByName(std::string_view _name) const;
428

Callers 15

initialiseMethod · 0.85
initialiseMethod · 0.85
initialiseMethod · 0.85
initialiseMethod · 0.85
initialiseMethod · 0.85
OpenSaveFileDialogMethod · 0.85
ContextMenuMethod · 0.85
setCanvasWidgetMethod · 0.85
initialiseOverrideMethod · 0.85
initialiseOverrideMethod · 0.85
SampleLayoutMethod · 0.85

Calls 1

findWidgetMethod · 0.80

Tested by 1

OnInitialiseMethod · 0.68