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

Function createWidget

MyGUIEngine/include/MyGUI_Gui.h:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 /** Same as Gui::createWidgetT but return T* instead of Widget* */
97 template<typename T>
98 T* createWidget(
99 std::string_view _skin,
100 const IntCoord& _coord,
101 Align _align,
102 std::string_view _layer,
103 std::string_view _name = {})
104 {
105 return static_cast<T*>(createWidgetT(T::getClassTypeName(), _skin, _coord, _align, _layer, _name));
106 }
107 /** Same as Gui::createWidgetT but return T* instead of Widget* */
108 template<typename T>
109 T* createWidget(

Callers 2

createLayoutMethod · 0.50
createWidgetMethod · 0.50

Calls 2

getClassTypeNameFunction · 0.85
IntCoordFunction · 0.50

Tested by

no test coverage detected