| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected