MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / AddUIComponent

Method AddUIComponent

ZEngine/src/ImguiLayer.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void ImguiLayer::AddUIComponent(const Ref<Components::UI::UIComponent>& component) {
78 m_ui_components.push_back(component);
79
80 if (!component->HasParentLayer()) {
81 auto last = std::prev(std::end(m_ui_components));
82 (*last)->SetParentLayer(shared_from_this());
83 }
84 }
85
86 void ImguiLayer::AddUIComponent(Ref<Components::UI::UIComponent>&& component) {
87 if (!component->HasParentLayer()) {

Callers 1

InitializeMethod · 0.80

Calls 2

HasParentLayerMethod · 0.80
SetParentLayerMethod · 0.80

Tested by

no test coverage detected