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

Method SetName

ZEngine/src/UIComponent.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 UIComponent::UIComponent(const Ref<Layers::ImguiLayer>& layer, std::string_view name, bool visibility) : m_parent_layer(layer), m_name(name.data()), m_visibility(visibility) {}
8
9 void UIComponent::SetName(std::string_view name) {
10 std::string_view current(m_name);
11 if (current.compare(name) != 0) {
12 m_name = name.data();
13 }
14 }
15
16 void UIComponent::SetVisibility(bool visibility) {
17 m_visibility = visibility;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected